What it does
POST /api/spei/cash-in generates a disposable CLABE bound to your sandbox account. Any SPEI transfer received at that CLABE triggers a cash_in webhook to the configured URL.
In sandbox, confirmation is simulated ~1 second after CLABE creation (instead of waiting for a real transfer). This lets you test the entire cash-in flow without depending on a real issuing bank.
Example
Response (201)
clabe to display to the end payer (your company’s customer). In sandbox this CLABE is fictitious, but the transaction.clabe field arriving in the webhook will be the same.
Expected webhook
After ~1 second (defaultsuccess scenario):
Test scenarios
| Scenario | Webhook |
|---|---|
| Default | CONFIRMED |
error:invalid-clabe | FAILED |
error:duplicate-external-id | FAILED |
delayed:5s | CONFIRMED after 5s |
Next steps
Cash-out
How to send SPEI in sandbox.
Webhooks
Understanding webhook delivery in sandbox.