curl --request GET \
--url https://lojinha.dev/api/v1/customers/:id \
--header 'Authorization: Bearer <token>'
{
"customer": {
"id": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"externalId": null,
"email": "wallacebatistaoliveira+customer@gmail.com",
"createdAt": "2023-07-24T13:57:53.652Z",
"updatedAt": null,
"deletedAt": null
}
}
Retorna o cliente
curl --request GET \
--url https://lojinha.dev/api/v1/customers/:id \
--header 'Authorization: Bearer <token>'
{
"customer": {
"id": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"externalId": null,
"email": "wallacebatistaoliveira+customer@gmail.com",
"createdAt": "2023-07-24T13:57:53.652Z",
"updatedAt": null,
"deletedAt": null
}
}
id
ou externalId
{
"customer": {
"id": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"externalId": null,
"email": "wallacebatistaoliveira+customer@gmail.com",
"createdAt": "2023-07-24T13:57:53.652Z",
"updatedAt": null,
"deletedAt": null
}
}