Skip to main content
GET
/
api
/
v1
/
clientes
/
{id}
Get Client by ID
curl --request GET \
  --url https://api.example.com/api/v1/clientes/{id}
{
  "id": 123,
  "dni": "<string>",
  "nombreCompleto": "<string>",
  "correo": "<string>",
  "telefono": "<string>"
}

Endpoint

GET /api/v1/clientes/{id}
Retrieve detailed information about a specific client using their unique identifier.

Path Parameters

id
number
required
The unique identifier of the client

Response

Returns a client object:
id
number
Unique client identifier
dni
string
National ID number (DNI) - 8 digits
nombreCompleto
string
Client’s full name
correo
string
Client’s email address (used for notifications and tracking)
telefono
string
Client’s phone number - 9 digits

Example Request

curl -X GET http://localhost:8080/api/v1/clientes/1

Example Response

{
  "id": 1,
  "dni": "12345678",
  "nombreCompleto": "María García",
  "correo": "[email protected]",
  "telefono": "987654321"
}

Error Responses

Client Not Found

{
  "error": "ClienteNotFoundException",
  "message": "Cliente no encontrado con id: 999"
}
This endpoint throws ClienteNotFoundException if the client with the specified ID does not exist.

Use Cases

  • Display client details in admin dashboard
  • Verify client information before creating shipments
  • Client profile management
  • Integration with customer service systems

Build docs developers (and LLMs) love