Version: 202201
Get Address List
GET/openapi/2022-01/customers/:customer_id/addresses
Retrieve a list of all address with pagination.
Request
Path Parameters
customer_id stringrequired
Cusomer's ID
Query Parameters
limit int32
Limit per page, maximum: 250
Default value:
10page int32
Page number
Default value:
1Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
addresses object[]
idstring
Example:
2490dc6a-d511-4e5e-bbcb-d58e913243adcustomer_idstring
Example:
2dd957e3-2051-4cdf-8584-9c0046b4d1aefirst_namestring
Example:
Ryanlast_namestring
Example:
zhangcompanystring
Example:
ABC Limitedcitystring
Example:
SAN JOSEprovincestring
Example:
New Mexicocountrystring
Example:
United Stateszipstring
Example:
87036province_codestring
Example:
NMcountry_codestring
Example:
USgenderstring
Example:
malephonestring
Example:
+8615015570043phone_area_codestring
Example:
+86areastring
Example:
Bay areaemailstring
Example:
[email protected]namestring
Example:
Ryan zhangaddress1string
Example:
1 Rue des Carrieresaddress2string
Example:
Suite 1234country_namestring
Example:
United Statesdefaultboolean
Default value:
trueExample:
true{
"addresses": [
{
"id": "2490dc6a-d511-4e5e-bbcb-d58e913243ad",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "Ryan",
"last_name": "zhang",
"company": "ABC Limited",
"city": "SAN JOSE",
"province": "New Mexico",
"country": "United States",
"zip": "87036",
"province_code": "NM",
"country_code": "US",
"gender": "male",
"phone": "+8615015570043",
"phone_area_code": "+86",
"area": "Bay area",
"name": "Ryan zhang",
"address1": "1 Rue des Carrieres",
"address2": "Suite 1234",
"country_name": "United States",
"default": true
}
]
}
{
"addresses": [
{
"id": "2490dc6a-d511-4e5e-bbcb-d58e913243ad",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "Ryan",
"last_name": "zhang",
"company": "ABC Limited",
"city": "SAN JOSE",
"province": "New Mexico",
"country": "United States",
"zip": "87036",
"province_code": "NM",
"country_code": "US",
"gender": "male",
"phone": "+8615015570043",
"phone_area_code": "+86",
"area": "Bay area",
"name": "Ryan zhang",
"address1": "1 Rue des Carrieres",
"address2": "Suite 1234",
"country_name": "United States",
"default": true
}
]
}
400
- application/json
- Schema
- Example
- Result
Schema
- oneOf
- object
- object
errorsstring[]
{
"errors": [
""
]
}
{
"errors": [
"Exceeds maximum limit of 250"
]
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Record not found"
]
}
{
"errors": [
"Record not found"
]
}