DX STF Client API

<back to all web services

GetCreditNoteByType

Credit Note Requests

Credit Note

Requires Authentication
The following routes are available for this service:
GET/api/creditNote/type/{Type}Get paged credit note response by type
GetCreditNoteByType Parameters:
NameParameterData TypeRequiredDescription
SearchTermquerystringYesNot used
RequestedPagequeryintNoRequested page number, starting at 1
NumberOfRecordsPerPagequeryintNoNumber of records to return on a page
TypepathstringYesCredit Note type to be returned
PagedQueryResult<T> Parameters:
NameParameterData TypeRequiredDescription
StartIndexformlongNo
EndIndexformlongNo
NumberOfRecordsReturnedformintNo
TotalNumberOfPagesformintNo
TotalNumberOfRecordsformlongNo
ResultsformList<ResultItem<ClaimMessage>>Yes

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/creditNote/type/{Type} HTTP/1.1 
Host: stf-api-uat.data-xchange.co.za 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"startIndex":0,"endIndex":0,"numberOfRecordsReturned":0,"totalNumberOfPages":0,"totalNumberOfRecords":0,"results":[{}]}