Obtener un cliente por ID

Devuelve el detalle completo de un cliente específico del negocio actual.

Autenticación requerida: Este endpoint requiere autenticación Bearer Token. Usar el campo tokenCurrent obtenido del servicio de login (/login) en el header: Authorization: Bearer {tokenCurrent}

Permiso requerido: CL_POST (Crear/Editar)

Comportamiento:

  • El cliente debe pertenecer al negocio autenticado.
  • Si el negocio tiene configurado compartir clientes con el negocio padre, también se busca en el negocio padre.
  • Retorna null si el cliente no existe (sin error 404).

Ejemplo de Uso

GET /clients/507f1f77bcf86cd799439021
Authorization: Bearer tu_token_aqui
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID único del cliente (MongoDB ObjectId)

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json