Version: 202201
Customer Details
GET/openapi/2022-01/customers/:id
Retrieve details of a specific customer using its unique identifier.
Request
Path Parameters
id stringrequired
Customer's ID
Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
customer 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:
0first_order_atstring
Example:
2024-04-17T09:05:06Zlast_order_atstring
Example:
2024-04-17T09:05:06Ztotal_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{
"customer": {
"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,
"first_order_at": "2024-04-17T09:05:06Z",
"last_order_at": "2024-04-17T09:05:06Z",
"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
}
]
}
}
{
"customer": {
"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,
"first_order_at": "2024-04-17T09:05:06Z",
"last_order_at": "2024-04-17T09:05:06Z",
"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": [
""
]
}
{
"errors": [
""
]
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"record not found"
]
}
{
"errors": [
"record not found"
]
}