Overview
TheGET /api/balance endpoint returns the authenticated account’s balance in MXN centavos (integers). There are two fields:
availableCentavos— balance available to send SPEI cash-outpendingCentavos— blocked balance (cash-out in processing, cash-in confirming)
Endpoint
GET /api/balance
Headers
Request
Response (200)
4873490 centavos = $48,734.90 MXN.
Response Structure
Available balance in MXN centavos. Use this value to validate before a cash-out.
Pending balance in MXN centavos. Includes cash-out in processing and cash-in waiting for final settlement confirmation.
Always
MXN in the México scope.Node.js Example
Validation Before Cash-Out
Even validating the balance beforehand, the cash-out may fail with
400 if another concurrent cash-out consumes the balance. Treat the 400 error as “insufficient balance” at the call time.Response Codes
| Code | Meaning |
|---|---|
200 | Balance queried |
401 | Invalid or missing token |
502 | account-ms unavailable |
Next Steps
SPEI Cash-Out
Send a SPEI transfer using the available balance