Delete Invoice
Changed onDeletes a draft or void invoice. A deleted invoice no longer appears in invoice or payment lists, and its ID returns a 404. Deleting can't be undone. invoice:create can delete only a draft that has no payment_method_id and was never sent as a quote. Void an open invoice before you delete it. A draft with a scheduled send or charge must be unscheduled first. A draft renewal invoice can't be deleted, and neither can a void invoice that collected money or still awaits a bank wire. The invoice's deletable field is true when this call can delete it.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The invoice's pay_ ID.
Headers
Pins the request to a dated API version.
Response
invoice deleted
Always true.
The ID of the deleted invoice, prefixed pay_.
Example response
{
"deleted": true,
"id": "pay_xxxxxxxxxxxxxx"
}Changes
- info
the security scope
invoice:updatewas added to the endpoint's security schemebearerAuth - info
the security scope
invoice:createwas removed from the endpoint's security schemebearerAuth
- info
- info
the security scope
invoice:updatewas added to the endpoint's security schemebearerAuth
1 more change in this revision
- info