POST v1/draftInvoices/PostReadyCharges?customerId={customerId}
Documentation for 'PostReadyCharges'.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
customerId | Documentation for 'customerId'. |
Define this parameter in the request URI. |
options | Documentation for 'options'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
Click to beautify!
{ "invoiceCollectOptions": { "paymentMethod": 0, "paymentMethodId": 1, "useAnyAvailableFundsFirst": true, "rollbackOnFailedPayment": true } }
application/xml, text/xml
Sample:
Click to beautify!
<PostReadyCharges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Dto.Post"> <InvoiceCollectOptions> <PaymentMethod>UseDefaultPaymentMethod</PaymentMethod> <PaymentMethodId>1</PaymentMethodId> <RollbackOnFailedPayment>true</RollbackOnFailedPayment> <UseAnyAvailableFundsFirst>true</UseAnyAvailableFundsFirst> </InvoiceCollectOptions> </PostReadyCharges>
application/x-www-form-urlencoded
Sample:
Click to beautify!
Sample not available.