Version: 202201
Customer List
GET/openapi/2022-01/customers
Retrieve a list of all customers with pagination.
Request
Query Parameters
ids string
ID list, separate with comma, e.g. 701670d5-4afd-40b5-8d4f-7e0e55683849,da1bb9af-2489-40df-a15e-f54abdf7fd86
limit int32
Record count in every page, maximum: 250
Default value:
10page int32
Page number
Default value:
1created_at_min string
Filter customer created at after date, e.g. 2016-01-18T23:41:00Z
created_at_max string
Filter customer created_at before date, e.g. 2016-01-18T23:41:00Z
updated_at_min string
Filter customer last updated at after, e.g. 2016-01-18T23:41:00Z
updated_at_max string
Filter customer last updated at before date, e.g. 2016-01-18T23:41:00Z
email string
Filter by email, e.g. [email protected]
contact string
Filter by contact,e.g., [email protected]
Responses
- 200
- 400
- 406
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- Array [
- ]
- ]
customers object[]
idstring
Example:
2dd957e3-2051-4cdf-8584-9c0046b4d1aefirst_namestring
Example:
ryanlast_namestring
Example:
zhangnamestring
Example:
ryan zhangemailstring
Example:
[email protected]phonestring
Example:
+8615014471143phone_area_code
contact_typestring
Example:
emailaccepts_marketingboolean
Default value:
trueExample:
truesource
free_taxboolean
Default value:
trueExample:
falseregisteredboolean
Default value:
trueExample:
falseorders_countinteger
Default value:
0Example:
0last_order_at
total_spentstring
Example:
0.00tagsstring
Example:
New Customercreated_atstring
Example:
2024-04-17T11:10:33Zupdated_atstring
Example:
2024-04-17T11:10:33Zsubscribed_flaginteger
Default value:
0Example:
5sms_subscribed_flaginteger
Default value:
0Example:
5accepts_sms_marketingboolean
Default value:
trueExample:
truedefault_address object
idstring
Example:
9ffa8dc0-25b8-4424-832e-bab46fcfeb20customer_idstring
Example:
2dd957e3-2051-4cdf-8584-9c0046b4d1aefirst_namestring
Example:
testlast_namestring
Example:
testcompanystring
Example:
citystring
Example:
深圳provincestring
Example:
countrystring
Example:
Aland lslandszipstring
Example:
515300province_codestring
Example:
country_codestring
Example:
AXgenderstring
Example:
phonestring
Example:
+86 150 1447 1143phone_area_code
areastring
Example:
emailstring
Example:
[email protected]namestring
Example:
test testaddress1string
Example:
6 三聖街address2string
Example:
1111country_namestring
Example:
Aland lslandsdefaultboolean
Default value:
trueExample:
trueaddresses object[]
idstring
Example:
9ffa8dc0-25b8-4424-832e-bab46fcfeb20customer_idstring
Example:
2dd957e3-2051-4cdf-8584-9c0046b4d1aefirst_namestring
Example:
testlast_namestring
Example:
testcompanystring
Example:
citystring
Example:
深圳provincestring
Example:
countrystring
Example:
Aland lslandszipstring
Example:
515300province_codestring
Example:
country_codestring
Example:
AXgenderstring
Example:
phonestring
Example:
+86 150 1447 1143phone_area_code
areastring
Example:
emailstring
Example:
[email protected]namestring
Example:
test testaddress1string
Example:
6 三聖街address2string
Example:
1111country_namestring
Example:
Aland lslandsdefaultboolean
Default value:
trueExample:
true{
"customers": [
{
"id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "ryan",
"last_name": "zhang",
"name": "ryan zhang",
"phone": "+8615014471143",
"phone_area_code": {},
"contact_type": "email",
"accepts_marketing": true,
"source": {},
"free_tax": false,
"registered": false,
"orders_count": 0,
"last_order_at": {},
"total_spent": "0.00",
"tags": "New Customer",
"created_at": "2024-04-17T11:10:33Z",
"updated_at": "2024-04-17T11:10:33Z",
"subscribed_flag": 5,
"sms_subscribed_flag": 5,
"accepts_sms_marketing": true,
"default_address": {
"id": "9ffa8dc0-25b8-4424-832e-bab46fcfeb20",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "test",
"last_name": "test",
"company": "",
"city": "深圳",
"province": "",
"country": "Aland lslands",
"zip": "515300",
"province_code": "",
"country_code": "AX",
"gender": "",
"phone": "+86 150 1447 1143",
"phone_area_code": {},
"area": "",
"name": "test test",
"address1": "6 三聖街",
"address2": "1111",
"country_name": "Aland lslands",
"default": true
},
"addresses": [
{
"id": "9ffa8dc0-25b8-4424-832e-bab46fcfeb20",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "test",
"last_name": "test",
"company": "",
"city": "深圳",
"province": "",
"country": "Aland lslands",
"zip": "515300",
"province_code": "",
"country_code": "AX",
"gender": "",
"phone": "+86 150 1447 1143",
"phone_area_code": {},
"area": "",
"name": "test test",
"address1": "6 三聖街",
"address2": "1111",
"country_name": "Aland lslands",
"default": true
}
]
}
]
}
{
"customers": [
{
"id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "ryan",
"last_name": "zhang",
"name": "ryan zhang",
"phone": "+8615014471143",
"phone_area_code": null,
"contact_type": "email",
"accepts_marketing": true,
"source": null,
"free_tax": false,
"registered": false,
"orders_count": 0,
"last_order_at": null,
"total_spent": "0.00",
"tags": "New Customer",
"created_at": "2024-04-17T11:10:33Z",
"updated_at": "2024-04-17T11:10:33Z",
"subscribed_flag": 5,
"sms_subscribed_flag": 5,
"accepts_sms_marketing": true,
"default_address": {
"id": "9ffa8dc0-25b8-4424-832e-bab46fcfeb20",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "test",
"last_name": "test",
"company": "",
"city": "深圳",
"province": "",
"country": "Aland lslands",
"zip": "515300",
"province_code": "",
"country_code": "AX",
"gender": "",
"phone": "+86 150 1447 1143",
"phone_area_code": null,
"area": "",
"name": "test test",
"address1": "6 三聖街",
"address2": "1111",
"country_name": "Aland lslands",
"default": true
},
"addresses": [
{
"id": "9ffa8dc0-25b8-4424-832e-bab46fcfeb20",
"customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
"first_name": "test",
"last_name": "test",
"company": "",
"city": "深圳",
"province": "",
"country": "Aland lslands",
"zip": "515300",
"province_code": "",
"country_code": "AX",
"gender": "",
"phone": "+86 150 1447 1143",
"phone_area_code": null,
"area": "",
"name": "test test",
"address1": "6 三聖街",
"address2": "1111",
"country_name": "Aland lslands",
"default": true
}
]
}
]
}
400
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Exceeds maximum limit of 250"
]
}
{
"errors": [
"Exceeds maximum limit of 250"
]
}
406
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Created at max time format error"
]
}
{
"errors": [
"Created at max time format error",
"Updated at min time format error",
"Updated at max time format error"
]
}