The Recargas module handles two distinct operations: client top-ups (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Eleazarguitar18/kantuta_pos_front/llms.txt
Use this file to discover all available pages before exploring further.
RecargaCliente) — where a customer’s mobile number is recharged from the corresponding operator’s available balance — and operator balance injections (InyeccionOperadora) — where new airtime credit is loaded into an operator’s pool to replenish depleted stock. Both operations are tied to an active SesionCaja and tracked with full audit history. The OperadoraSaldo resource lets you query each operator’s current available balance before processing a top-up.
TypeScript Interfaces and Enums
Endpoints
Get Operator Balances
GET /recargas/operadoras/saldos — Returns the current available balance for each configured operator (Tigo, Entel, Viva). Check this before processing a top-up to avoid rejections due to insufficient operator credit.
OperadoraSaldo[]
Unique operator record ID.
Operator name. One of:
"Tigo", "Entel", or "Viva".Current available credit balance for this operator’s pool.
Whether the operator is active and available for transactions.
Create a Client Top-Up
POST /recargas/cliente — Processes a mobile top-up for a customer. Deducts the specified amount from the corresponding operator’s balance pool and records the transaction against the active session.
Target mobile operator. Must be one of the
OperadoraNombre enum values: "Tigo", "Entel", or "Viva".The customer’s mobile phone number to recharge (e.g.,
"76543210").Top-up amount in local currency. Must be greater than
0.ID of the currently active cashier session.
RecargaCliente
Create an Operator Balance Injection
POST /recargas/inyeccion — Injects (adds) credit into an operator’s balance pool. Used when the system’s available balance for an operator runs low and needs to be replenished. The injection cost is recorded as an outflow against the active session’s cash.
Operator receiving the balance injection. One of:
"Tigo", "Entel", or "Viva".Amount of credit to inject into the operator’s pool.
ID of the active session from which the cash outflow originates.
InyeccionOperadora
Get Client Top-Up History
GET /recargas/historial/clientes — Returns the full history of client top-up transactions.
RecargaCliente[]
Get Operator Injection History
GET /recargas/historial/inyecciones — Returns the full history of operator balance injections.
InyeccionOperadora[]
Operator Names Reference
| Enum Value | String Value | Description |
|---|---|---|
OperadoraNombre.TIGO | "Tigo" | Tigo mobile network (Bolivia) |
OperadoraNombre.ENTEL | "Entel" | Entel mobile network (Bolivia) |
OperadoraNombre.VIVA | "Viva" | Viva mobile network (Bolivia) |
Always use the string values from the
OperadoraNombre enum when sending requests. Sending a raw string that does not match one of the three defined values may result in a validation error from the backend.