Find Addresses By Customer ID
GET {{baseUrl}}/addresses/customer/:userId
Description
Retrieve a list of addresses associated with a specific customer.
Request
- Headers:
- Content-Type: application/json
- Accept: /
- URL:
- Raw URL:
{{baseUrl}}/addresses/customer/:userId - Host:
{{baseUrl}} - Path: /addresses/customer/:userId
- Raw URL:
Response
- Code: 200
HEADERS
- tenantId:
<string>(Required) - Accept:
*/*
PARAMS
- pageNo:
<integer> - pageSize:
<integer> - userId:
<string>(Required)
Sample Request
curl --location -g '{{baseUrl}}/addresses/customer/:userId?pageNo=<integer>&pageSize=<integer>&userId=<string>' \
--header 'tenantId: <string>' \
--header 'Accept: */*'
Sample Response
{
"message": "<string>",
"data": [
{
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"state": "<string>",
"city": "<string>",
"address": "<string>",
"customerId": "<string>",
"tenantId": "<string>"
},
{
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"state": "<string>",
"city": "<string>",
"address": "<string>",
"customerId": "<string>",
"tenantId": "<string>"
}
],
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /addresses/customer/:userId \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!