Skip to main content

When it fires

The cash_in webhook type receives the lifecycle events of a charge created via POST /api/spei/cash-in:
The return of an already settled cash-in (transaction.cash_in.returned) is delivered on the refund_in webhook type, not on cash_in.

Payload

  • destinationClabe — the disposable CLABE issued when the charge was created
  • sourceClabe — the payer’s CLABE (when provided by the network)
  • amount — amount in MXN cents
  • Reference fields (reference, voucher) may be null depending on the flow

Headers

Expected Response

Respond 200 OK in under 10 seconds. On any status other than 2xx, NTX Pay retries up to 5 times with exponential backoff.

Processing

Mark the order as paid only when event is transaction.cash_in.settled (or status: LIQUIDATED):
For the complete handler with HMAC validation and dedupe in Node.js, Python, Java, and Go, see Implementation.