Listado de clientes
GET /customers
El listado de clientes se puede realizar utilizando los siguientes filtros:
- Correo electrónico (email)
- Identificador del cliente (customerId)
- Limitar los resultados (limit)
1. Obtener el cliente con el correo electrónico jose.silva@email.com.
- Solicitud
- Respuesta
GET /customers?email=jose.silva@email.com
{
"apiVersion": "1.0",
"date": "2021-12-07T18:01:19+01:00",
"success": true,
"data": [
{
"uuid": "e2343605-cf46-43de-b20b-9b7d1c95a9b2",
"customerId": "1",
"firstName": "José",
"lastName": "Silva",
"email": "jose.silva@email.com",
"phoneNumber": "351#961234567",
"createdAt": "2021-12-07T18:01:19+00:00"
}
]
}
2. Obtener los dos primeros clientes.
- Solicitud
- Respuesta
GET /customers?limit=2
{
"apiVersion": "1.0",
"date": "2021-12-07T18:01:19+05:00",
"success": true,
"data": [
{
"uuid": "e2343605-cf46-43de-b20b-9b7d1c95a9b2",
"customerId": "1",
"firstName": "José",
"lastName": "Silva",
"email": "jose.silva@email.com",
"phoneNumber": "351#961234567",
"createdAt": "2021-12-07T18:01:19+00:00"
},
{
"uuid": "g2343605-cf46-43de-b20b-9b7d1c95a9b2",
"customerId": "2",
"firstName": "Maria",
"lastName": "José",
"email": "maria.jose@email.com",
"phoneNumber": "351#917894584",
"createdAt": "2021-12-07T18:01:19+01:00"
}
]
}