Customer information retrieval
GET https://{handle}.myshopline.com/admin/openapi/v20220901/customers/v2/search.json
handle
: The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com
, the store handle is open001
.Customer information check v 2
Query Parameters
- fields stringLimit the fields of the returned objectExample:
id
- limit integerQuery of query quantity , default 50 , can not exceed 250Example:
10
- order integerSort rules default order by user creation time
- page_info stringThe input parameter after encryption , including all of the picnic conditions parameter , for the previous page , take the page , directly take the field of accessExample:
eyJxdWVyeVBhcmFtU3RyaW5nIjoie1wic2l6ZVwiOjUwLFwic29ydFwiOltcInVpZDpkZXNjXCJdLFwic3RvcmVJZFwiOlwiMTYzOTY0MDU4MTM0NlwiLFwidWlkXCI6XCIwXCIsXCJ1cGRhdGVUaW1lXCI6XCJcIn0iLCJzaW5jZUlkTGlzdCI6WyI0MjAxNzk5MTAzIl0sInBhZ2UiOjIsInNpemUiOjUwLCJpbml0U29ydCI6WyJ1aWQ6ZGVzYyJdLCJzb3J0IjpbInVpZDpkZXNjIl0sImRpcmVjdGlvbiI6Im5le
- query stringQuery conditions , support ( accepts_marketing , email_subscribe_flag , customer_date , customer_first_name , customer_id , tags ,Orders_count , order_date , state , total_spent , updated_at , verified_email ) different fields are divided by a number ; separated , the field and the field value are separated by a colon : separated .Example : customer_id : 1 ; orders_count : 2Example:
email_subscribe_flag:1
- query_param stringThe fuzzy prompt condition search range includes mobile phones number , mailbox , customer name , common address informationExample:
130
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Response
- 200
- 401
- 422
- 429
For more information about status codes, see Http status code.
Response Headers
link
Contain the request parameters of the previous page and the next pagetraceId
traceId
Response Body
customersobject[]
Customer listaccepts_marketing booleanMail subscription or notExample:true
accepts_marketing_updated_at stringMail subscription time ( format see ISO8601 )Example:2022-05-31T15:32:46+08:00
accepts_mobile_marketing booleanExample:true
accepts_mobile_marketing_updated_at stringPhone subscription time ( format see ISO8601 )Example:2022-05-31T15:32:46+08:00
addressesobject[]
Address information listaddress1 stringAddress 1Example:7720 Cherokee Road
address2 stringAddress 2Example:Apartment 2
city stringCityExample:Hagerman
company stringCompanyExample:Joy
country stringCountryExample:United States
country_code stringCountry codeExample:US
customer_id stringCustomer idExample:4201825054
default booleanDefault address or notExample:true
first_name stringNameExample:Bob
id stringAddress IDExample:207119551
last_name stringLast nameExample:Norman
phone stringTelephone numberExample:008615834564475
province stringSaveExample:Kentucky
province_code stringProvincial encodingExample:KY
zip stringZip codeExample:40202
asid stringFB login IDExample:481007156599455
birthday stringExample:19970102
created_at stringCreate time ( format see ISO8601 )Example:2022-09-07T10:53:31+08:00
currency stringCurrencyExample:USD
default_addressobject
Default addressaddress1 stringAddress 1Example:7720 Cherokee Road
address2 stringAddress 2Example:Apartment 2
city stringCityExample:Hagerman
company stringCompanyExample:Joy
country stringCountryExample:United States
country_code stringCountry codeExample:US
customer_id stringcustomer idExample:4201825054
default booleanDefault address or notExample:true
first_name stringnameExample:Bob
id stringAddress IDExample:207119551
last_name stringLast nameExample:Norman
phone stringTelephone numberExample:008615834564475
province stringProvinceExample:Kentucky
province_code stringProvincial encodingExample:KY
zip stringZip codeExample:40202
email stringMailboxExample:123@qq.com
email_subscribe_flag integerMailbox subscription status 0 : cancelled subscription , 1 : already available , 2 : not availableExample:1
first_name stringUser nicknameExample:Bob
gender stringExample:female
id stringCustomer idExample:4201825054
language stringExample:en
last_name stringExample:Norman
last_order_id stringRecent order numberExample:2005473211984312275741
mobile_subscribe_flag integerMobile phone subscription status 0 : cancelled subscription , 1 : already available , 2 : not availablenick_name stringNicknameExample:BobNorman
note stringNotesExample:Placed an order that had a fraud warning
orders_count longOrder quantityExample:12
phone stringPhone numberExample:008615834564475
social_customer arraySocial media user IDExample:[6612273988815231]
state integerCustomer status [ 0 : disabled account , 1 : to enable account , 2 : invited account , 3 : valid account ]Example:2
tags stringCustomer tagExample:loyal
total_spent stringTotal cost amountExample:100
updated_at stringUpdate time ( format see ISO8601 )Example:2022-09-07T10:53:31+08:00
verified_email booleanVerify if e-mail or not
API Explorer
Debugger
Examples
Was this article helpful to you?
Error loading component.