GET | /SalesOrders/{InvoiceID}/Payments | Retrieves a list of payments for a sales order |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
InvoiceID | path | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /SalesOrders/{InvoiceID}/Payments HTTP/1.1 Host: api.jiwa.com.au Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"HistoryNo":0,"PaymentType":{"PaymentTypeID":"String","Name":"String","Code":"String","ItemNo":0,"IsEnabled":false,"IsDefault":false,"IsCreditCard":false,"IsPOS":false,"GeneralLedgerAccount":{"LedgerID":"String","AccountNo":"String","Description":"String"}},"AmountPaid":0,"PaymentDate":"0001-01-01T00:00:00.0000000","ProcessPayment":false,"AuthorisationStatus":"NoAuthorisationNeeded","PaymentGatewayReturnCode":0,"Processed":false,"CardExpiry":"0001-01-01T00:00:00.0000000","PaymentID":"String","PaymentRef":"String","AuthorisationNumber":"String","PaymentGatewayReturnMessage":"String","CardNumber":"String","CardHolder":"String","BankName":"String","BSBN":"String","BankAcc":"String","AccountName":"String"}]