Overview
SPEI cash-in generates a disposable CLABE that the payer uses to make a SPEI transfer from their banking app. When NTX Pay receives the settlement, you are notified on thecash_in webhook with the transaction.cash_in.settled event.
Characteristics:
- CLABE valid for a single transfer (one-time use)
- Asynchronous confirmation (seconds to minutes)
- Expires in ~24 hours if unpaid (you receive the
transaction.cash_in.expiredwebhook)
Endpoint
POST /api/spei/cash-in
Headers
Request
Response (201)
destinationClabe (and/or the checkoutUrl) to the end payer.
The transactionId (UUID) is the unique transaction identifier — it is the same value delivered in webhooks; use it to correlate events and look up the transaction.
Response Fields
Request Fields
Amount in MXN centavos. **Minimum:
1000 centavos ($10.00 MXN)** — partner bank floor; below that the API returns `400` with code `CASHIN_MIN_AMOUNT`. E.g. `50000` = $500.00 MXN.Unique external identifier (up to 100 characters). Use it to correlate with your system. Recommended for idempotency.
Payment Flow
Transaction States
On the webhook, the settlement arrives as
transaction.cash_in.settled with status: LIQUIDATED — see the full payload.
Idempotency
Resend the same request with the sameexternalId to guarantee a network failure does not create two charges. On duplication, NTX Pay returns the existing charge.
Testing in the Sandbox
In the sandbox, settlement is simulated within seconds — no issuing bank required. Control the outcome with theX-Sandbox-Scenario header:
Next Steps
cash_in Webhook
Confirmation webhook payload
SPEI Cash-Out
Send SPEI transfers