版本:202201
查询地址列表
GET/openapi/2022-01/customers/:customer_id/addresses
分页返回地址列表。
请求
Path参数
customer_id string必填
顾客 ID。
Query参数
limit int32
Limit per page, maximum: 250
默认值:
10page int32
Page number
默认值:
1响应
- 200
- 400
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
addresses object[]
idstring
示例:
2490dc6a-d511-4e5e-bbcb-d58e913243adcustomer_idstring
示例:
2dd957e3-2051-4cdf-8584-9c0046b4d1aefirst_namestring
示例:
Ryanlast_namestring
示例:
zhangcompanystring
示例:
ABC Limitedcitystring
示例:
SAN JOSEprovincestring
示例:
New Mexicocountrystring
示例:
United Stateszipstring
示例:
87036province_codestring
示例:
NMcountry_codestring
示例:
USgenderstring
示例:
malephonestring
示例:
+8615015570043phone_area_codestring
示例:
+86areastring
示例:
Bay areaemailstring
namestring
示例:
Ryan zhangaddress1string
示例:
1 Rue des Carrieresaddress2string
示例:
Suite 1234country_namestring
示例:
United Statesdefaultboolean
默认值:
true示例:
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
- 数据结构
- 示例
- Result
数据结构
- oneOf
- object
- object
errorsstring[]
{
"errors": [
""
]
}
{
"errors": [
"Exceeds maximum limit of 250"
]
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Record not found"
]
}
{
"errors": [
"Record not found"
]
}