curl --request GET \
--url https://lojinha.dev/api/v1/:customer/addresses \
--header 'Authorization: Bearer <token>'
{
"addresses": [
{
"id": "96c0e914-0094-4694-b735-a54633f8dfbc",
"customerId": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"alias": "Casa",
"zipcode": "87045-700",
"street": "Praça Pioneiro Antônio Laurentino Tavares",
"state": "PR",
"city": "Maringá",
"country": "Brasil",
"neightborhood": "Jd. América",
"number": "200",
"complement": "Casa Azul",
"createdAt": "2023-07-24T14:46:19.941Z",
"updatedAt": null,
"deletedAt": null
}
],
"total": 1
}
Recupera todos os endereços de um cliente
curl --request GET \
--url https://lojinha.dev/api/v1/:customer/addresses \
--header 'Authorization: Bearer <token>'
{
"addresses": [
{
"id": "96c0e914-0094-4694-b735-a54633f8dfbc",
"customerId": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"alias": "Casa",
"zipcode": "87045-700",
"street": "Praça Pioneiro Antônio Laurentino Tavares",
"state": "PR",
"city": "Maringá",
"country": "Brasil",
"neightborhood": "Jd. América",
"number": "200",
"complement": "Casa Azul",
"createdAt": "2023-07-24T14:46:19.941Z",
"updatedAt": null,
"deletedAt": null
}
],
"total": 1
}
ID
ou externalId
do clienteShow child attributes
{
"addresses": [
{
"id": "96c0e914-0094-4694-b735-a54633f8dfbc",
"customerId": "7b16fb4f-6c54-4f7c-a751-3027b451b4ed",
"alias": "Casa",
"zipcode": "87045-700",
"street": "Praça Pioneiro Antônio Laurentino Tavares",
"state": "PR",
"city": "Maringá",
"country": "Brasil",
"neightborhood": "Jd. América",
"number": "200",
"complement": "Casa Azul",
"createdAt": "2023-07-24T14:46:19.941Z",
"updatedAt": null,
"deletedAt": null
}
],
"total": 1
}