Cancel an invoice
Cancels an unpaid invoice.
DELETE/invoices/{invoiceId}
System information
- API key
- Required
- Rate limit
- ∞
Response fields
| Parameter | Type | Description |
|---|---|---|
| uuid | string | Invoice UUID. |
| projectUuid | string | Project UUID. |
| coinCode | string | Cryptocurrency code. |
| networkCode | string | Blockchain network code. |
| coinName | string | Cryptocurrency name. |
| networkName | string | Network name. |
| networkPrefix | string | Token standard in the network, for example TRC-20. |
| amount | string | Amount to pay in cryptocurrency. |
| sourceAmount | string | Invoice amount in the source currency. |
| sourceCurrency | string | Invoice source currency. |
| sourceRate | string | Conversion rate from the source currency to cryptocurrency. |
| status | string | Invoice status, see “Statuses”. |
| confirmedAmount | string | Paid and confirmed amount. |
| unconfirmedAmount | string | Received but not yet confirmed amount. |
| remainingAmount | string | Amount left to pay. |
| overpaidAmount | string | Overpaid amount. |
Possible errors
| HTTP | Code | Description |
|---|---|---|
| 404 | INVOICE_NOT_FOUND | Invoice not found. |
| 400 | INVOICE_CANCELLATION_NOT_ALLOWED | The invoice cannot be cancelled. |