Skip to content
API reference/Client billing

Delete a draft invoice

Try it

Deletes a DRAFT invoice for good. A sent invoice can only be voided.

DELETE/api/v1/invoices/{invoice_id}

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the invoices:write scope — write, send, mark paid and void client invoices; run monthly invoices; start and stop card autopay.

invoices:writeDeletesIdempotency-Key optionalMCP tool: delete_invoice

Parameters

Named placeholders go in the path; the rest in the query string.

invoice_idstringPath · required
The invoice's id.1 to 100 characters

Response

200 with JSON on success (schema on the right). Errors use the standard envelope; a retry with the same Idempotency-Key gets the first answer back (how retries work).

curl
curl -X DELETE 'https://websites.workflowcorp.com/api/v1/invoices/INVOICE_ID' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"
Example arguments
{
  "invoice_id": "INVOICE_ID"
}
Response schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "id",
    "deleted"
  ],
  "additionalProperties": false
}