Delete a draft invoice
Deletes a draft. A finalized invoice cannot be deleted; void it instead.
Deletes a draft. A finalized invoice cannot be deleted; void it instead.
Authorization
api-key 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"}Update an invoice PATCH
Updates a draft. On a finalized invoice only payment methods, partial payment settings, delivery and metadata can change.
Download an invoice PDF GET
Returns the invoice as a PDF file. It always shows the invoice as it is now, including payments received. Pass language to get it in another language.