post https://api.reepay.com/v1/customer//invoice
A one-time invoice can be created on demand for a customer by providing a number of order lines. The invoice can later be settled using a customer payment method or using a manual transfer e.g. bank transfer. The creation and settlement can also be done in one operation by either supplying a settle payment method or a manual transfer to the create operation. The result of the creation is an invoice with state pending
if not settled directly, or state settled
or failed
depending on the result of the immediate settle attempt.
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
9 | 404 | Customer not found |
11 | 400 | Duplicate handle provided |
76 | 400 | Payment method not provided and settle requested |
40 | 404 | Payment method provided not found |