The Clients API provides full lifecycle management for the credit customers registered in Credith. A client is a person (or entity) who may purchase goods on installment credit. Clients are identified system-wide by a unique national identity number (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/RoyGeova07/Credith/llms.txt
Use this file to discover all available pages before exploring further.
dni), which is also used as the key to look up their active payment plan. Client records are not required for CASH bills, but are mandatory when creating an INSTALLMENT bill — the clientId must be present in the customer object and the client must not already have an open plan.
None of the Clients endpoints require authentication.
GET /api/clients
Returns a paginated list of all clients, ordered by name ascending. Supports optional filtering by DNI.
Query parameters
Maximum number of client records to return.
Number of records to skip (for pagination).
Optional exact-match filter on
dni. Useful for quick client lookups at point-of-sale.GET /api/clients/:id
Returns a single client record by its UUID.
Path parameter
UUID of the client to retrieve.
| Status | Cause |
|---|---|
404 | Client not found |
POST /api/clients
Creates a new client. The name field is the only required field. If a dni is provided it must be unique across all clients in the system.
The
dni is the lookup key used by GET /api/payment-plan/:dni to retrieve a client’s active installment plan. Register an accurate DNI to ensure seamless credit tracking.Full name of the client. Cannot be blank.
National identity number (up to 25 characters). Must be globally unique if provided. Example:
"0801-1990-12345".Client phone number (up to 25 characters). Example:
"9999-9999".Client’s physical address. Example:
"Tegucigalpa, Honduras".| Status | Cause |
|---|---|
400 | name is missing/blank, or a client with the same dni already exists |
PUT /api/clients/:id
Updates one or more fields on an existing client. Only fields included in the request body are modified. To clear a field, explicitly pass null or an empty string as appropriate.
When dni is provided and differs from the client’s current value, uniqueness is re-validated against all other clients.
Path parameter
UUID of the client to update.
Updated full name. Cannot be set to an empty string.
Updated DNI. Must be unique if changed and non-empty.
Updated phone number.
Updated address.
| Status | Cause |
|---|---|
400 | name set to empty string, or updated dni conflicts with another client |
404 | Client not found |
DELETE /api/clients/:id
Permanently (hard) deletes a client record. This operation does not cascade to payment plans — associated installment plans remain in the database for historical reporting.
Path parameter
UUID of the client to delete.
| Status | Cause |
|---|---|
404 | Client not found |
Client data model
Auto-generated UUIDv4 primary key.
Full name of the client. Required and non-null.
National identity number. Maximum 25 characters. Unique index enforced (
idx_client_dni_unique). Used as the path parameter for GET /api/payment-plan/:dni.Client contact phone number. Maximum 25 characters.
Client physical address.
Whether the client account is considered active. Defaults to
true. This field is managed internally and is not accepted as an input by any write endpoint — there is no API route to activate or deactivate a client.Timestamp when the record was created.
Timestamp of the last update.
Soft-delete timestamp. Set by
DELETE /api/clients/:id — records with a non-null value here are excluded from all normal queries.