Skip to content

FISCALISTO / API / REFERENCE

invoice.cancellation_failed · Events

Open in ChatGPTOpen in ClaudeOpen in Cursor

Fiscalisto stopped requesting a cancellation SAT didn't accept (cancellation.status failed, the reason in cancellation.error): the CFDI stays valid. Request it again with POST /v1/invoices/{id}/cancel; on a replacement, with reason 01 and the new one in substitution. It arrives at your webhooks as a POST signed with Standard Webhooks (headers webhook-id, webhook-timestamp and webhook-signature).

Request body

application/json
  1. body

Something that happened in your account: the whole object as it ended up. It is sent to your webhooks signed (Standard Webhooks).

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

object*string

What kind of object it is («invoice», «customer»…).

type*string

What happened: invoice.stamped, invoice.failed, invoice.canceled, invoice.cancellation_pending, invoice.cancellation_rejected, invoice.cancellation_failed, invoice.paid, invoice.partially_paid, retention.stamped, retention.failed, retention.canceled, invoice_batch.completed, payroll_batch.completed, customer_data_request.completed, sat_download.completed, sat_download.failed, sat_declaration.created, sat_declaration.updated, sat_refresh.completed, sat_refresh.failed, ticket.invoiced, ticket.included_in_global, recurring_invoice.failed, quote.viewed, quote.accepted, quote.changes_requested, quote.rejected, quote.withdrawn, sales_order.confirmed, sales_order.customer_confirmed, sales_order.delivered, sales_order.paid, sales_order.canceled, supplier_invoice.received, supplier_invoice.approved, supplier_invoice.rejected, supplier_invoice.scheduled, supplier_invoice.paid, portal_supplier.approved, payout.approved, payout.paid, payout.partially_paid, payout.failed, payout.canceled, payout_transfer.succeeded, payout_transfer.failed, payout_transfer.returned, issuer.ready, balance.low, usage.high, test_clock.ready or rule.matched.

api_version*string

The API version the object was built with.

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

created_at*string

When it was created, ISO 8601 with Mexico City time (-06:00).

Formatdate-time
data*

What changed, in data.object: the whole receipt (or batch), as its GET returns it.

Response body

Answer 2xx in less than 15 seconds; if not, it's retried for 3 days.

This is how it reaches your webhook

{  "id": "evt_0PKhIdhYuAGwzmMQYfkc",  "object": "event",  "type": "invoice.cancellation_failed",  "api_version": "2026-10-24",  "livemode": false,  "created_at": "2026-10-24T10:15:42-06:00",  "data": {    "object": {      "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg",      "object": "invoice",      "livemode": false,      "issuer": "iss_OufpKqnrvx9p",      "branch": null,      "cost_center": null,      "type": "I",      "status": "valid",      "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718",      "series": null,      "folio": "1",      "date": "2026-10-24T10:15:42",      "customer": {        "tax_id": "ICV060329BY0",        "legal_name": "INMOBILIARIA CVA",        "tax_system": "601",        "zip": "33826"      },      "use": "G03",      "payment_form": "03",      "payment_method": "PUE",      "payment_terms": null,      "notes": null,      "currency": "MXN",      "exchange_rate": null,      "items": [        {          "description": "Mensualidad",          "product_key": "86121700",          "unit_key": "E48",          "unit_name": "Unidad de servicio",          "sku": "MEN-1",          "quantity": 2,          "unit_price": 2500,          "taxability": "02",          "iva": "0.16"        }      ],      "subtotal": 5000,      "discount": 0,      "taxes": {        "iva": 800,        "ieps": 0,        "iva_withheld": 0,        "isr_withheld": 0,        "local_transferred": 0,        "local_withheld": 0      },      "total": 5800,      "payment_status": "paid",      "amount_due": 0,      "amount_paid": 5800,      "paid_on": null,      "due_date": null,      "related": null,      "cancellation": {        "status": "failed",        "motive": "01",        "substitution": "6F2C3A1B-8D4E-4F5A-9B7C-2E1D0F3A4B5C",        "canceled_at": null,        "next_attempt_at": null,        "error": "El SAT rechazó la firma de la solicitud de cancelación. Fiscalisto la pidió de nuevo durante 24 horas y no pasó."      },      "email": null,      "error": null,      "recurring_invoice": null,      "tickets": [],      "origin": {        "type": "api",        "name": "Tienda en línea"      },      "created_at": "2026-10-24T10:15:42-06:00",      "metadata": {}    }  }}

Was this page helpful?