operation delete api v1 invoices parameter.md
Delete an unpaid invoice
DELETE /api/v1/invoices/{invoice}
Permanently deletes an invoice. This cannot be undone. Attempts to delete invoices that have been paid will fail.
Servers
- Production server: https://api.1099policy.com (Production server)
Parameters
Path parameters
- invoice (string)
The ID of the desired invoice (e.g.,in_4RviYgc2Wt).
Responses
200
A successfully deleted invoice. Otherwise, this call returns an error, such as if the invoice has already been deleted.
Body: application/json (object)
deleted (boolean)
deleted_at (integer)
Unix timestamp (seconds since epoch) of when the invoice was deleted.id (string)
The invoice ID.object (string)