Cancel an invoice

Cancel an invoice

This endpoint allows you to cancel an invoice if you need to do so, by updating its status and optionally setting a reason for the cancelation.

The response will leave the invoice in a "Cancel Process" status. A webhook with the changing event to the status "Canceled" will confirm this action.

Path Params
string
required

Id of the invoice

Body Params
string
required
Defaults to cancel process

Status of the invoice. It should be "cancel process"

string

Mandatory for MX. Reason for the cancelation of the invoice

string

Mandatory for MX. If cancel_reason='01', then need to add new invoice number

Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json