The Recargas module lets your staff sell prepaid mobile credit (recargas) to customers and manage the underlying operator balances that fund those sales. Supported carriers are Tigo, Entel, and Viva — represented by theDocumentation 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.
OperadoraNombre enum. There are two distinct operations: a Recarga Cliente (retail top-up) decrements the operator’s virtual balance pool, and an Inyección Operadora (wholesale balance injection) replenishes that pool from the active cash register.
Core Types
Operations
- Recarga Cliente (Top-Up)
- Inyección Operadora (Wholesale Injection)
Sell prepaid mobile credit to a customer. The operator’s virtual balance (
Validation: The form checks whether
saldo_actual) is decremented by monto. The cash-register session receives a corresponding INGRESO.Required fields:| Field | Type | Description |
|---|---|---|
operadora | OperadoraNombre | Target carrier: Tigo, Entel, or Viva. |
numero_cliente | string | Customer’s mobile phone number. |
monto | number | Top-up amount in Bolivianos. |
id_caja_sesion | number | ID of the currently open cash-register session. |
monto > saldo_actual for the selected operator. If so, an inline warning banner appears and the submit button is disabled until the operator’s balance is sufficient.SaldosCards Component
TheSaldosCards component renders a balance card for each operator retrieved from GET /recargas/operadoras/saldos. Each card displays the operator name, the current saldo_actual formatted in Bolivianos, and a brand-colored background: blue for Tigo, orange for Entel, and green for Viva.
RecargasOperacion Page
The main operations page at/recargas/operacion is composed from three blocks:
SaldosCards
Displays current virtual balances for all three operators fetched via
RecargasService.getSaldos(). Refreshes after every successful transaction.FormRecargaCliente
Left-panel form. Renders a carrier selector, phone number field, amount input with quick-select buttons (Bs. 10 / 20 / 50 / 100), and a submit button that calls
RecargasService.createRecargaCliente().History Pages
Completed records are available in two separate history views:| Page | Route | Data source |
|---|---|---|
| Client top-up history | /recargas/historial-clientes | GET /recargas/historial/clientes → RecargaCliente[] |
| Operator injection history | /recargas/historial-inyecciones | GET /recargas/historial/inyecciones → InyeccionOperadora[] |
REST Endpoints
URL Routes
| Page | Path |
|---|---|
| Operations panel | /recargas/operacion |
| Client top-up history | /recargas/historial-clientes |
| Operator injection history | /recargas/historial-inyecciones |