Check customer information via email
POST https://{handle}.myshopline.com/admin/openapi/v20260301/customers/query_user_by_email.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 .Query customer details via email.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
- email string requiredUser mailboxExample:
*******@example.com
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
customerobject
Customer detailsaccepts_marketing booleanMail subscription or notExample:trueaccepts_marketing_updated_at stringEmail subscription time (see IOS8601 for the format)Example:2022-05-31T15:32:46+08:00accepts_mobile_marketing booleanAccept telemarketing or notExample:trueaccepts_mobile_marketing_updated_at stringTelephone subscription time (see IOS8601 for the format)Example:2022-05-31T15:32:46+08:00addressesobject[]
Address information listaddress1 stringAddress 1Example:7720 Cherokee Roadaddress2 stringAddress 2Example:Apartmentcity stringCityExample:Hagermancompany stringCompanyExample:C****country stringCountryExample:United Statescountry_code stringCountry codeExample:UScustomer_id stringCustomer idExample:2277270272default booleanDefault address or notfirst_name stringNameExample:S*****id stringAddress IDExample:SL201UA5006511321220969539last_name stringLast nameExample:T*****phone stringTelephone numberExample:0086158****4475province stringProvinceExample:Kentuckyprovince_code stringProvincial encodingExample:KYprovince_code_v2 stringThe province code(ISO-3166-2 format) of the address.zip stringZip codeExample:40202asid stringFB login IDExample:***********9455birthday stringCustomer birthday Format: YYYYMMDDExample:19970102created_at stringCreation time (see IOS8601 for the format)Example:2022-09-07T10:53:31+08:00currency stringCurrencyExample:USDdefault_addressobject
Default addressaddress1 stringAddress 1Example:7720 Cherokee Roadaddress2 stringAddress 2Example:Apartment 2city stringCityExample:Hagermancompany stringCompanyExample:C****country stringCountryExample:United Statescountry_code stringCountry codeExample:UScustomer_id stringCustomer idExample:2277270272default booleanDefault address or notfirst_name stringNameExample:T*****id stringAddress IDExample:SL201UA5006511323520969534last_name stringLast nameExample:S*****phone stringTelephone numberExample:0086158****4475province stringProvinceExample:Kentuckyprovince_code stringProvincial encodingExample:KYprovince_code_v2 stringThe province code(ISO-3166-2 format) of the address.Example:KYzip stringZip codeExample:40202email stringMailExample:******@example.comemail_subscribe_flag integerMailbox subscription status 0 : cancelled subscription , 1 : already available , 2 : not availableExample:1first_name stringUser nameExample:S*****gender stringGender : male / female / others/secretExample:femaleid stringCustomer idExample:2277270272language stringCustomer languageExample:enlast_name stringUser last nameExample:T*****last_order_id stringRecent order numberExample:2005473211984312275741mobile_subscribe_flag integerMobile phone subscription status 0 : cancelled subscription , 1 : already available , 2 : not availablenick_name stringNicknameExample:S***** T*****note stringRemarkExample:markorders_count longOrder quantityExample:12phone stringPhone numberExample:0086158****4475social_customer arraySocial media user IDExample:["************5231"]state integerCustomer status [ 0 : disabled account , 1 : to enable account , 2 : invited account , 3 : valid account ]Example:2tags stringCustomer tagExample:loyaltotal_spent stringTotal cost amountExample:100updated_at stringUpdate time (see IOS8601 for the format)Example:2022-09-07T10:53:31+08:00verified_email booleanVerify if e-mail or not
API Explorer
Debugger
Was this article helpful to you?