Theme create
Event Group | Event Identification |
---|---|
themes | themes/create |
Theme create
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
- create_at stringTopic creation time (ISO 8601)Example:
2022-07-19T13:12:26+0800
- id stringTheme idExample:
619f3dd6f7742b5a41db32b1
- name stringTheme nameExample:
Arise
- original_theme_id stringOfficial theme template id , if the theme is not derived from the official theme , it is return lolExample:
612f228e9286d074924cf9ad
- role stringTheme status. Valid enumeration values include: ● published: The topic has been published and can be viewed by customers ● unpublished: The topic is to be published and cannot be viewed by customers ● development: The topic is in development status and is used for developmentExample:
published
- store_id stringstore IDExample:
11234567893
- theme_type_version stringTheme version identifierExample:
2.1
- update_at stringTheme recent update time ( ISO 8601 )Example:
2022-07-19T13:12:26+0800
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?