JiwaAPI

<back to all web services

SalesOrderPaymentsProcessPOSTRequest

Requires Authentication
The following routes are available for this service:
POST/SalesOrders/{InvoiceID}/Payments/ProcessReceipts a sales order's unprocessed payments now, before the order is invoiced, as activated Cash Book receipts banked to a holding ledger.
SalesOrderPaymentsProcessPOSTRequest Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDpathstringNo
HoldingLedgerAccountNobodystringNo
SalesOrderPaymentsProcessed Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDformstringNo
InvoiceNoformstringNo
PaymentsformList<SalesOrderPaymentReceipt>No
SalesOrderPaymentReceipt Parameters:
NameParameterData TypeRequiredDescription
PaymentIDformstringNo
PaymentTypeNameformstringNo
AmountformdecimalNo
ProcessedformboolNo
OnHoldingformboolNo
ReferenceformstringNo
GatewayReferenceformstringNo
ReceiptBatchNoformstringNo
ReceiptActivatedformboolNo
ReceiptTransIDformstringNo
ReceiptAllocatedAmountformdecimalNo
SettlementBatchNoformstringNo

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

HTTP + CSV

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

POST /SalesOrders/{InvoiceID}/Payments/Process HTTP/1.1 
Host: api.redpoint.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"InvoiceID":"String","HoldingLedgerAccountNo":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"InvoiceID":"String","InvoiceNo":"String","Payments":[{"PaymentID":"String","PaymentTypeName":"String","Reference":"String","GatewayReference":"String","ReceiptBatchNo":"String","ReceiptTransID":"String","SettlementBatchNo":"String"}]}