The Clients API manages the people and organizations that receive field service work orders. Each client record stores contact details, document identification, and a unique client code used across the system. All write operations require authentication.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 unless otherwise stated. Include
Authorization: Bearer <token> in every request header.List active clients
GET /api/clientes
Returns a paginated list of all clients where vigente = true.
Query parameters
Zero-based page index.
Number of records per page.
Response fields
Array of client objects for the current page.
Total number of active clients.
Total number of pages.
Current page index (zero-based).
Page size used for this response.
Get client by ID
GET /api/clientes/{id}
Returns a single client record.
Path parameters
The numeric ID of the client.
Create a client
POST /api/clientes
Creates a new active client record. The codigoCliente value must be unique across all clients.
Request body
Full name (individual) or company name.
Client category. One of:
PERSONA, EMPRESA, OTRO.Document type. One of:
RUC, DNI, CE, OTRO.Document number. Must match the format expected for the selected
tipoDocumento.Unique internal code for this client (e.g.,
CLI001).Primary service address.
Contact phone number.
Email address.
Name of the representative or point of contact. Recommended for
EMPRESA clients.Update a client
PUT /api/clientes/{id}
Updates an existing client’s information. All fields are accepted; only provided fields are updated.
Path parameters
The numeric ID of the client to update.
Request body
Same fields as Create a client. All fields are optional on update.Delete a client
DELETE /api/clientes/{id}
Soft-deletes a client by setting vigente = false. The record is retained in the database and will no longer appear in list responses.
Path parameters
The numeric ID of the client to deactivate.
Enumerations
TipoCliente
| Value | Description |
|---|---|
PERSONA | Individual person |
EMPRESA | Company or organization |
OTRO | Other client type |
TipoDocumento
| Value | Description |
|---|---|
RUC | Registro Único de Contribuyentes (11 digits) |
DNI | Documento Nacional de Identidad (8 digits) |
CE | Carné de Extranjería |
OTRO | Other document type |