Customer enabled
Event Group | Event Identification |
---|---|
customers | customers/enable |
Customer enable
Request Headers
- X-Shopline-Topic string requiredEvent operation identificationExample:
orders/edited
- X-Shopline-Hmac-Sha256 string requiredSignatureExample:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string requiredShop domainExample:
shophub.myshopline.com
- X-Shopline-Shop-Id string requiredShop IDExample:
1610418123456
- X-Shopline-Merchant-Id string requiredMerchant IDExample:
2000001234
- X-Shopline-API-Version string requiredVersionExample:
v20210901
- X-Shopline-Webhook-Id string requiredMessage IDExample:
b54557e48a5fbf7d70bcd043
Request Body
- accepts_marketing booleanSubscription mail or notExample:
true
- accepts_marketing_updated_at stringMailbox subscription timeExample:
2022-12-16T11:06:11+08:00
- accepts_mobile_marketing booleanAccept telemarketing or notExample:
true
- accepts_mobile_marketing_updated_at stringTelephone subscription time (see IOS8601 for the format)Example:
2022-12-16T11:06:11+08:00
addressesobject[]
Address information listaddress1 stringAddress 1Example:""
address2 stringAddress 2Example:""
city stringCityExample:Guangzhou
company stringCompanyExample:Alibaba
country stringCountryExample:China
country_code stringCountry codeExample:23424
customer_id stringCustomer idExample:200043535
default booleanDefault address or notExample:true
first_name stringNameExample:Three
id stringAddress IDExample:SL201423432534534
last_name stringLast nameExample:Zhang
phone stringPhone numberExample:008613987854391
province stringProvinceExample:Guangdong
province_code stringProvincial encodingExample:303924
zip stringZip codeExample:241000
- asid stringFB login IDExample:
""
- birthday stringCustomer birthday Format: YYYYMMDDExample:
19900823
- created_at stringCreation timeExample:
2022-12-16T11:06:11+08:00
- currency stringCurrencyExample:
CNY
default_addressobject
Default addressaddress1 stringAddress 1Example:""
address2 stringAddress 2Example:""
city stringCityExample:Guangzhou
company stringCompanyExample:""
country stringCountryExample:China
country_code stringCountry codeExample:""
customer_id stringCustomer idExample:20034353
default booleanDefault address or notExample:true
first_name stringNameExample:Three
id stringAddress IDExample:SL20123432325435
last_name stringLast nameExample:Zhang
phone stringPhone numberExample:008613989456732
province stringProvinceExample:Guangdong
province_code stringProvincial encodingExample:""
zip stringZip codeExample:241000
- email stringMailboxExample:
234682346@163.com
email_marketing_consentobject
E-mail marketing subscription informationconsent_collected_from stringSubscription information sourceExample:""
consent_updated_at stringSubscription change timeExample:2022-12-16T11:06:11+08:00
opt_in_level integerSubscription method ( 0 : unknown ; 1 : single_opt_in ; 2 : confirmed_opt_in )Example:1
state integerSubscription status ( 0 : cancelled subscription ; 1 : on subscription ; 2 : not on subscription ; 3 : on-subscription confirmation )Example:1
- email_subscribe_flag integerMailbox subscription status 0 : cancelled subscription , 1 : already available , 2 : not availableExample:
2
- first_name stringNameExample:
Three
- gender stringGender : male / female / others/secretExample:
male
- id stringCustomer idExample:
20098324
- language stringCustomer languageExample:
EN
- last_name stringLast nameExample:
Zhang
- last_order_id stringRecent order numberExample:
342523532535
- mobile_subscribe_flag integerMobile phone subscription status 0 : cancelled subscription , 1 : already available , 2 : not availableExample:
1
- multipass_identifier stringMultipass logoExample:
Test
- nick_name stringUser nicknameExample:
Zhang san
- note stringNotesExample:
Hi
- orders_count longOrder quantityExample:
243
- phone stringPhone numberExample:
008613987857435
sms_marketing_consentobject
Sms marketing subscription informationconsent_collected_from stringSubscription information sourceExample:""
consent_updated_at stringSubscription change timeExample:2022-12-16T11:06:11+08:00
opt_in_level integerSubscription method ( 0 : unknown ; 1 : single_opt_in ; 2 : confirmed_opt_in )Example:1
state integerSubscription status ( 0 : cancelled subscription ; 1 : on subscription ; 2 : not availableExample:1
- social_customer stringSocial media user IDExample:
"'
- state stringCustomer status [ 0 : disabled account , 1 : to enable account , 2 : invited account , 3 : valid account ]Example:
2
- tags stringCustomer tagExample:
Test
- total_spent stringTotal cost amountExample:
4353535
- updated_at stringUpdate timeExample:
2022-12-16T11:06:11+08:00
- verified_email booleanVerify if e-mail or notExample:
true
Response
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?