Delete an unpaid invoice

DELETE /api/v1/invoices/{invoice_id}

Permanently deletes an invoice. This cannot be undone. Attempts to delete invoices that have been paid will fail.

application/json

Body

  • invoice string Required

    The ID of the desired invoice.

Responses

  • 200 application/json

    A successfully deleted invoice. Otherwise, this call returns an error, such as if the invoice has already been deleted.

    Hide response attributes Show response attributes object
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)"
}