Delete an invoice
Deletes a draft or voided invoice. Invoices in any other status can't be deleted.
Authorization
X-API-Key X-Publishable-Key X-API-Key<token>
In: header
X-Publishable-Key<token>
In: header
Path Parameters
publicId*string
Public ID of the invoice.
Response Body
application/json
curl -X DELETE "https://example.com/v1/invoices/inv_9Pq3Xw7Rt2"{ "deleted": true}Get an invoice GET
Retrieves an invoice by its public ID.
Update an invoice PUT
Updates a draft invoice. Only the fields you send are changed. Finalized invoices can't be updated. To change an invoice's status, use the dedicated endpoints (such as finalize) rather than this one. The amounts are calculated from the invoice's line items and adjustments, so they can't be set here.