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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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.wagga.redpoint.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

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

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