Customer listing
GET /customers
The customer list can be made using the following filters:
- Email (email)
- Customer identifier (customerId)
- Limit the results (limit)
1. Obtain the customer with the email jose.silva@email.com.
- Request
- Response
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. Obtain the first two customers.
- Request
- Response
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"
}
]
}