Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Alejandrin08/Hackathon-SPEI/llms.txt
Use this file to discover all available pages before exploring further.
Before submitting a transaction, the frontend evaluates the transfer with
POST /ai/risk. If the returned risk level is medium or high, the user is shown a ConfirmDialog before the transfer is submitted.List transactions
GET /api/ledger/transactions
Returns all transactions for the authenticated user.
Response
Unique transaction identifier (UUID).
UUID of the sender’s account.
UUID of the beneficiary who received the transfer.
Full name of the beneficiary at the time of the transaction.
Transfer amount. Must be greater than zero.
Current transaction status, e.g.,
"completed", "pending", "failed".SPEI tracking reference number, if available.
ISO 8601 timestamp of when the transaction was created.
Response
Create transaction
POST /api/ledger/transactions
Creates a new SPEI transfer from the authenticated user’s account to a saved beneficiary.
Request body
UUID of the account to debit.
UUID of the saved beneficiary to credit. The beneficiary must already exist — see Beneficiaries.
Transfer amount. Must be greater than zero (
0.01 minimum).Error responses
| Status | Description |
|---|---|
400 | Insufficient funds, missing fields, or invalid amount. |
401 | Invalid or missing bearer token. |
Response (200 OK)
