When it fires
Thecash_out event fires in two scenarios:
- Success — the SPEI cash-out sent via
POST /api/spei/cash-outwas settled at Banxico (status: CONFIRMED) - Failure — the SPEI network or the provider rejected the transfer (
status: FAILED)
Payload (confirmed)
Payload (failure)
status: FAILED, the blocked balance is automatically released.
Headers
| Header | Value |
|---|---|
X-NTXPay-Event | cash_out |
X-NTXPay-Signature | sha256=<hmac> |
X-NTXPay-Timestamp | Unix epoch |
X-NTXPay-Delivery | UUID |
Behavior
- At-least-once: you may receive
CONFIRMEDmore than once. Deduplicate bytransaction.id. - Failure after success: doesn’t happen. A transaction won’t move from
CONFIRMEDtoFAILED. - Reversal: if the counterparty (beneficiary) returns, you receive a separate
refund_inevent, withtransaction.type = "refund_in"linked by theexternalId.