Customer information list query
GET https://{handle}.myshopline.com/admin/openapi/v20220601/v2/customers.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 list query v 2
Query Parameters
- created_at_max stringReturn object created before a certain time ( format see ISO8601 )Example:
2022-04-13T21:13:20+08:00
- created_at_min stringReturn object created after a certain time ( format see ISO8601 )Example:
2022-04-13T21:13:20+08:00
- fields stringLimit the fields of the returned objectExample:
id
- ids stringCustomer ids , different customers id separated by commaExample:
4201825024
- limit integerQuery of query quantity , default 50 , can not exceed 250Example:
10
- page_info stringThe encrypted request parameters are used for the previous page and the next page, and the field is directly parsed and accessed.Example:
eyJxdWVyeVBhcmFtU3RyaW5nIjoie1wic2l6ZVwiOjEsXCJzb3J0XCI6W1widWlkOmRlc2NcIl0sXCJzdG9yZUlkXCI6XCIxNjM5NjQwNTgxMzQ2XCIsXCJ1aWRcIjpcIjBcIixcInVwZGF0ZVRpbWVcIjpcIlwifSIsInNpbmNlSWRMaXN0IjpbIjU1NTUiXSwicGFnZSI6Miwic2l6ZSI6MSwiaW5pdFNvcnQiOlsidWlkOmRlc2MiXSwic29ydCI6WyJ1aWQ6ZGVzYyJdLCJkaXJlY3Rpb24iOiJuZXh0In0
- since_id stringStart position for data query ( customer id value )Example:
4201825024
- updated_at_max stringReturn object updated before a certain time ( format see ISO8601 )Example:
2022-04-13T21:13:20+08:00
- updated_at_min stringReturn object updated after a certain time ( format see ISO8601 )Example:
2022-04-13T21:13:20+08:00
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
- 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-04-13T21:13:20+08:00
accepts_mobile_marketing booleanAccept telemarketing or notExample:true
accepts_mobile_marketing_updated_at stringPhone subscription time ( format see ISO8601 )Example:2022-04-13T21:13:20+08:00
addressesobject[]
Customer address 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 available , 3 : on-request confirmation , 5 : invalid ( status record after personal information is deleted )Example:1
first_name stringUser nicknameExample:Bob
gender stringGender : male / female / others/secretExample:female
id stringCustomer idExample:4201825054
language stringCustomer languageExample:en
last_name stringUser last nameExample: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.