The Agentes API manages external financial service operations processed through the POS — commonly known as “agente bancario” (banking agent) services. These are third-party financial transactions where the store acts as an authorized agent for banks and mobile money services (e.g., Tigo Money, BCP, Banco Unión, Soli). Customers can deposit or withdraw cash, or perform QR transfers, and the store charges a commission for facilitating the service. Every agent transaction is linked to an active cash register session, keeping the session’s theoretical balance accurate.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Eleazarguitar18/kantuta_pos_back/llms.txt
Use this file to discover all available pages before exploring further.
All endpoints require a valid
Authorization: Bearer <access_token> header.Create an Agent Transaction
Request Body
Name of the bank or financial service provider (e.g.,
"TIGO_MONEY", "BCP", "BANCO_UNION", "SOLI"). This is a free-form string — use consistent naming conventions for clean reporting.Type of financial operation. One of:
DEPOSITO— customer deposits cash into their account via the store.RETIRO— customer withdraws cash from their account via the store.TRANSFERENCIA_QR— customer performs a QR-code transfer through the store’s terminal.
The transaction amount (what the customer deposits or receives). Minimum
1.Commission amount charged to the client for using the agent service. Optional; defaults to
0 if not provided.The bank’s official reference or voucher number for this operation. Must be unique across all agent transactions.
ID of the active cash register session where this transaction is being processed.
ID of the user recording the transaction (audit trail).
Example Request
Response — TransaccionAgente
Unique identifier of the agent transaction.
Bank or service name as provided in the request.
Operation type:
DEPOSITO, RETIRO, or TRANSFERENCIA_QR.Transaction amount.
Commission charged to the client. Defaults to
0 if not specified.Commission paid by the bank to the store for processing the transaction. This field is managed separately (e.g., updated in bulk reconciliation) and defaults to
0 at creation.Bank reference or voucher number. Unique across all records.
Optional path to a stored receipt or voucher image uploaded separately.
ISO 8601 timestamp of when the transaction was registered.
ID of the session this transaction belongs to.
List All Agent Transactions
Get a Single Agent Transaction
Path Parameters
The numeric ID of the transaction.
Delete (Void) an Agent Transaction
Path Parameters
The numeric ID of the transaction to void.
TypeScript Interface
Commission Fields Explained
comision_cliente vs comision_banco: These are two distinct income streams for the store.comision_cliente— set at creation time — is what the customer pays the store for facilitating the service (e.g., BOB 5 for a Tigo Money deposit).comision_banco— defaults to0at creation — is what the bank pays the store as a fee for acting as its authorized agent. This is typically settled in bulk by the bank at the end of the month and updated separately.