| POST | /SalesOrders/{InvoiceID}/Payments/Process | Receipts a sales order's unprocessed payments now, before the order is invoiced, as activated Cash Book receipts banked to a holding ledger. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceID | path | string | No | |
| HoldingLedgerAccountNo | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceID | form | string | No | |
| InvoiceNo | form | string | No | |
| Payments | form | List<SalesOrderPaymentReceipt> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PaymentID | form | string | No | |
| PaymentTypeName | form | string | No | |
| Amount | form | decimal | No | |
| Processed | form | bool | No | |
| OnHolding | form | bool | No | |
| Reference | form | string | No | |
| GatewayReference | form | string | No | |
| ReceiptBatchNo | form | string | No | |
| ReceiptActivated | form | bool | No | |
| ReceiptTransID | form | string | No | |
| ReceiptAllocatedAmount | form | decimal | No | |
| SettlementBatchNo | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}]}