Delete an unpaid invoice
Permanently deletes an invoice. This cannot be undone. Attempts to delete invoices that have been paid will fail.
DELETE
/api/v1/invoices/{invoice_id}
curl \
-X DELETE https://api.1099policy.com/api/v1/invoices/{invoice_id} \
-H "Content-Type: application/json" \
-d '{"invoice":"in_4RviYgc2Wt"}'
Request example
{
"invoice": "in_4RviYgc2Wt"
}
Response examples (200)
{
"id": "in_4RviYgc2Wt",
"object": "invoice",
"deleted": true,
"deleted_at": "(utcnow)"
}