FISCALISTO / API / REFERENCE
Webhooks
Addresses on your server that receive the events, signed.
Guide to Webhooks: what each endpoint is for, step by step and with examples.
The object WebhookEndpoint
- WebhookEndpoint
An address on your server that receives events.
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
sandbox*|The sandbox (sbx_…) it belongs to, or null if it belongs to the account. See /v1/sandboxes.
url*stringhttps address on your server that receives the notices.
description*|What it is for, for you.
events*array<string>Events you want to receive, or ["*"] for all (the default). The list with when each one arrives: Event types.
status*stringenabled: delivering. failing: its deliveries fail (it turns off after 5 days like that). disabled: off.
"enabled""failing""disabled"disabled_reason?|Why it turned off: failing (its deliveries failed 5 days in a row), gone (your server answered 410 Gone) or manual (you turned it off).
failing_since?|Since when deliveries have been failing, or null.
previous_secret_expires_at*|Until when the previous secret also signs (after rotating it), or null.
api_version*|The API version of its events; null: the account's.
created_at*|When it was created, ISO 8601 with Mexico City time (-06:00).
secret?stringSigning secret (whsec_…). It only comes when it is created or rotated: save it to verify signatures.
Example WebhookEndpoint
{ "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": [ "invoice.stamped" ], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4"}The object WebhookTest
- WebhookTest
A test event sent to your webhook, and what your server answered.
object*stringWhat kind of object it is («invoice», «customer»…).
event*The event that was sent, as your server received it.
delivery*How it went: ok if it answered 2xx, the code, the error and the start of its response.
Example WebhookTest
{ "object": "webhook_test", "event": { "id": "evt_0PKhIdhYuAGwzmMQYfkc", "object": "event", "type": "invoice.stamped", "api_version": "2026-10-24", "livemode": false, "created_at": "2026-10-24T10:15:42-06:00", "data": { "object": { "id": "inv_OufpKqnrvx9p28SINJVjjWKYRhojBTJb8P", "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", "currency": "MXN", "exchange_rate": null, "items": [ { "description": "Consultoría", "product_key": "80101500", "unit_key": "E48", "unit_name": "Unidad de servicio", "quantity": 1, "unit_price": 1000, "taxability": "02", "iva": "0.16" } ], "subtotal": 1000, "discount": 0, "taxes": { "iva": 160, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 1160, "payment_status": "paid", "amount_due": 0, "amount_paid": 1160, "related": null, "cancellation": null, "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": {} } } }, "delivery": { "ok": true, "status": 200, "error": null, "response_body": "{\"received\":true}", "duration_ms": 182 }}The object WebhookDelivery
- WebhookDelivery
What happened with an event on a webhook: its last attempt, how many it has had and when the next one goes.
object*stringWhat kind of object it is («invoice», «customer»…).
id*stringThe last attempt (whd_…). Use it in starting_after for the next page.
webhook_endpoint*stringThe webhook (whe_…).
event*stringThe event (evt_…). Resend it with POST /v1/events/{id}/resend.
event_type*|The event type (invoice.stamped…).
succeeded*booleantrue if your server answered 2xx on the last attempt.
status*|The HTTP code your server answered; null if it couldn't connect.
error*|What failed (timeout, DNS, or the start of its response); null if it arrived.
duration_ms*integerHow long your server took to answer the last attempt.
-9007199254740991 <= value <= 9007199254740991attempts*integerHow many times it has been sent to this webhook, resends included.
-9007199254740991 <= value <= 9007199254740991resent*booleantrue if the last attempt was a resend (POST /v1/events/{id}/resend).
test*booleantrue if it is a test event (POST /v1/webhook_endpoints/{id}/test); it isn't retried.
created_at*stringWhen the last attempt was.
date-timenext_retry_at*|When the next automatic retry goes; null if it arrived or there are no more.
Example WebhookDelivery
{ "object": "webhook_delivery", "id": "whd_48213", "webhook_endpoint": "whe_0q1Vmmw52sbDpmtsKD1E", "event": "evt_0PKhIdhYuAGwzmMQYfkc", "event_type": "invoice.stamped", "succeeded": false, "status": 503, "error": "Respondió 503.", "duration_ms": 1840, "attempts": 3, "resent": false, "test": false, "created_at": "2026-11-14T10:40:12-06:00", "next_retry_at": "2026-11-14T12:40:12-06:00"}The object WebhookRecovery
- WebhookRecovery
The events a webhook didn't receive, sent again: since when they were looked for, how many went out and, if more than 1,000 were left, where to continue from.
object*stringWhat kind of object it is («invoice», «customer»…).
endpoint*stringThe webhook (whe_…) they were sent to.
since*stringSince when they were looked for: the since you sent, or when the webhook was created if that's later.
events*integerHow many events went out again. 0: none were missing.
-9007199254740991 <= value <= 9007199254740991next_since*|If more than 1,000 were left: call again with this since. null: all of them went out.
Example WebhookRecovery
{ "object": "webhook_recovery", "endpoint": "whe_8Kq2ZtR4mNw1Lp0sXc7V", "since": "2026-11-20T09:00:00-06:00", "events": 42, "next_since": null}Was this page helpful?