post https://api.reepay.com/v1/invoice//cancel
An invoice with all transactions with no or only failed transaction can be cancelled. No further attempts to fulfill the invoice will be made. If the invoice is dunning the dunning process will be cancelled. If accounting_invoice_enabled
is set to true at Invoice Configuration, then a credit note for cancelled invoice will be created.
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
31 | 404 | Invoice not found |
29 | 400 | Invoice already settled |
30 | 400 | Invoice has active transactions. All transactions must be failed, cancelled or pending |