Delete Offline Invoice
DELETE /invoices/{environment}/offline/{id}​
Deletes an offline invoice that has an error status. Invoices with other statuses cannot be deleted.
Path Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
environment | string | ✅ | test, demo or prod |
id | string (uuid) | ✅ | Offline invoice ID |
Response 200​
{
"message": "Offline invoice deleted.",
"id": "uuid"
}
| Field | Type | Description |
|---|---|---|
message | string | Confirmation message |
id | string (uuid) | ID of the deleted invoice |
Error Codes​
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 404 | Invoice not found |
| 409 | Invoice does not have error status — cannot be deleted |