docs

Delete a draft invoice

Deletes a draft. A finalized invoice cannot be deleted; void it instead.

DELETE
/invoices/{id}

Deletes a draft. A finalized invoice cannot be deleted; void it instead.

AuthorizationBearer <token>

API key for merchant integrations. Send as Authorization: Bearer <your key>.

In: header

Path Parameters

id*string

Invoice ID

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/invoices/string"
{  "error": {    "type": "authentication_error",    "code": "authentication_required",    "message": "No valid API key provided.",    "doc_url": "https://docs.xpay.app/integrate/errors/api-error-codes#authentication_required"  },  "request_id": "req_abc123def456"}