Skip to main content
POST
/
v1
/
tax-invoices
/
{id}
/
cancel
Cancel tax invoice
curl --request POST \
  --url https://api.quentli.com/v1/tax-invoices/{id}/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "motive": "02",
    "substituteTaxInvoiceId": "txi_1234567890abcdefghij"
  }
}
'
{
  "canceledTaxInvoice": {
    "id": "txi_1234567890abcdefghij",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "status": "VALID",
    "customerId": "cus_1234567890abcdefghij",
    "type": "TAX_INVOICE_PUE",
    "currency": "MXN",
    "totalAmount": 150000,
    "organizationId": "org_1234567890abcdefghij",
    "issueDate": null,
    "invoiceId": null,
    "paymentId": null,
    "uuid": null,
    "verificationUrl": null,
    "folio": null,
    "failureReason": null,
    "cancellationStatus": "none",
    "cancellationMotive": null,
    "cancelRequestedAt": null,
    "canceledAt": null,
    "canceledById": null,
    "cancellationSubstitution": null,
    "satType": "I",
    "paymentForm": "03",
    "paymentMethod": "PUE",
    "usage": "G03",
    "exchangeRate": null,
    "pdfId": null,
    "xmlId": null,
    "createdByUserId": null,
    "createdByCustomerId": null,
    "substituteTaxInvoiceId": null
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Path Parameters

id
string
required

Identifier of the tax invoice.

Body

application/json

Request body for canceling a tax invoice (id is provided in the URL path).

input
object
required

Response

Tax invoice canceled

Canceled tax invoice.

canceledTaxInvoice
object
required

Mexican fiscal invoice generated for an invoice or payment.