Delete an unpaid invoice

View as Markdown
DELETE /api/v1/invoices/{invoice}

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

Path parameters

  • invoice string Required

    The ID of the desired invoice (e.g., in_4RviYgc2Wt).

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
    • deleted boolean
    • deleted_at integer

      Unix timestamp (seconds since epoch) of when the invoice was deleted.

    • id string

      The invoice ID.

    • object string

      Default value is invoice.

DELETE /api/v1/invoices/{invoice}
curl \
 --request DELETE 'https://api.1099policy.com/api/v1/invoices/in_4RviYgc2Wt'
Response examples (200)
{
  "id": "in_4RviYgc2Wt",
  "object": "invoice",
  "deleted": true,
  "deleted_at": 1640995200
}