Creates a collections payment promise that records a customer's commitment to pay by promised_on. The response is a list with one promise for each covered invoice.
To cover one invoice, pass invoice_id and an amount equal to that invoice's amount due. That invoice must not already have an active promise. Without invoice_id, open invoices are covered oldest due date first, and invoices that already have an active promise are skipped. amount must equal the combined amount due of the invoices covered in that order. Any other amount is rejected. If open invoices span more than one currency, pass currency_code.
Each covered invoice's active reminder sequence is paused until you resume it. It does not resume when the promise ends. Without invoice_id, the request is rejected when the customer has more than 200 open invoices or active promises.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
Amount the customer promises to pay, in the currency's smallest unit (for example, cents).
With invoice_id, it must equal that invoice's amount due. Without invoice_id, it must equal the combined amount due of whole open invoices, taken oldest due date first. Any other amount is rejected.
Returns
One collections_payment_promise resource for each covered invoice.