| POST | /Debtors/{DebtorID}/Receipts | Records a debtor's card payment as an activated Cash Book receipt, allocated to the invoices named or to the oldest charges. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DebtorID | path | string | No | |
| Amount | body | decimal | No | |
| Reference | body | string | No | |
| GatewayReference | body | string | No | |
| Remark | body | string | No | |
| PaymentTypeName | body | string | No | |
| BankLedgerAccountNo | body | string | No | |
| AllocateTo | body | List<string> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DebtorID | form | string | No | |
| ReceiptDebtorID | form | string | No | |
| CBBatchID | form | string | No | |
| BatchNo | form | string | No | |
| Activated | form | bool | No | |
| TransID | form | string | No | |
| Reference | form | string | No | |
| GatewayReference | form | string | No | |
| Amount | form | decimal | No | |
| AllocatedAmount | form | decimal | No | |
| BatchDate | form | DateTime? | No | |
| Allocations | form | List<DebtorReceiptAllocation> | No | |
| Created | form | bool | No | |
| SettlementBatchNo | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TransID | form | string | No | |
| InvoiceNo | form | string | No | |
| Amount | form | decimal | 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 /Debtors/{DebtorID}/Receipts HTTP/1.1
Host: api.redpoint.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"DebtorID":"String","Reference":"String","GatewayReference":"String","Remark":"String","PaymentTypeName":"String","BankLedgerAccountNo":"String","AllocateTo":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"DebtorID":"String","ReceiptDebtorID":"String","CBBatchID":"String","BatchNo":"String","TransID":"String","Reference":"String","GatewayReference":"String","BatchDate":"0001-01-01T00:00:00.0000000","Allocations":[{"TransID":"String","InvoiceNo":"String"}],"SettlementBatchNo":"String"}