The Payments API records financial transactions associated with work orders (pendientes). Each payment captures the amount, method, date, and the client, employee, and work order it relates to. This provides a full audit trail of what was collected in the field.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CLINTONARMANDO/apiregistropendientes/llms.txt
Use this file to discover all available pages before exploring further.
All endpoints require a valid Bearer token. Include
Authorization: Bearer <token> in every request header.List active payments
GET /api/pagos
Returns a paginated list of payments where vigente = true.
Query parameters
Zero-based page index.
Number of records per page.
Response fields
Unique payment ID.
The employee who recorded the payment. See EmpleadoResponse for field details.
The client who made the payment. See ClienteResponse for field details.
ID of the associated work order.
Payment amount.
Payment date in
YYYY-MM-DD format.Payment method. One of:
BCP, EFECTIVO, LOS_ANDES, OTRO.Reference number or note (e.g., bank transaction ID).
true if the payment record is active.Create a payment
POST /api/pagos
Records a new payment for a work order.
Request body
ID of the employee recording the payment.
ID of the client making the payment.
ID of the work order this payment applies to.
Payment amount as a decimal (e.g.,
150.00).Payment date in
YYYY-MM-DD format.Payment method. One of:
BCP, EFECTIVO, LOS_ANDES, OTRO.Reference string for the transaction (e.g., a bank operation number or receipt ID). Optional but recommended for non-cash payments.
Update a payment
PUT /api/pagos/{id}
Updates an existing payment record (e.g., to correct the amount or add a reference).
Path parameters
Numeric ID of the payment to update.
Delete a payment
DELETE /api/pagos/{id}
Soft-deletes a payment by setting vigente = false. The record is retained for audit purposes.
Path parameters
Numeric ID of the payment to deactivate.
Get payments for a work order
GET /api/pagos/pendiente/{pendienteId}
Returns all payment records associated with a specific work order.
Path parameters
The ID of the work order to retrieve payments for.
Enumerations
MetodoPago
| Value | Description |
|---|---|
BCP | Banco de Crédito del Perú transfer |
EFECTIVO | Cash payment |
LOS_ANDES | Caja Los Andes transfer |
OTRO | Other payment method |