Skip to content

Cancels an invoice

Request

PUT {{baseURL}}/pay-int-api/invoices/{{invoiceId}}/cancel

This endpoint cancels an invoice.

Only invoices in published (Due, Past Due) status and not paid can be canceled.

Care must be taken to complete all the fields with the existing information.

See Also:
To retrieve an invoice by ID, see GET /pay-int-api/invoices/{invoiceId}.
To update an invoice, see PUT /pay-int-api/invoices/{invoiceId}.
To mark an invoice as paid, see PUT /pay-int-api/invoices/{invoiceId}/mark-as-paid.
To publish an invoice, see POST /pay-int-api/invoices/publish.

Security
Bearer
Path
invoiceIdstring, (uuid)required

The identifier of the invoice to cancel.

Example:9be2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f70
Headers
x-api-versionstring

Specifies the API version to use for the request.

Example: 1.0

Example:1.0
// Language is not supported.

Responses

Invoice cancelled successfully.

Response
No content