Changes in product collection in sales channels
Event Group | Event Identification |
---|---|
collection_listings | collection_listings/update |
Sales channel classification change event
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
collection_listingobject
Category informationbannerobject
Collection banneralt stringImage altExample:This is a image alt
src stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
body_html stringCollection descriptionExample:This is a description
collection_type stringCollection type : custom- manual , smart- smartExample:smart
created_at stringCreation timeExample:2021-09-03T14:11:54+00:00
disjunctive stringThe relationship between the conditions of the intelligent collection box and the Product is fixed . true : Product meets any conditions and can be incorporated into this intelligent collection ; false : Product must meet all conditions and must be fully compliant to be incorporated into this intelligent collectionExample:true
handle stringCollection HandleExample:collection-handle
id stringidExample:12253400918743462093302233
imageobject
Collection imagescolumn stringImage altExample:This is a image alt
src stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
published_at stringTime to post to the online storeExample:2021-09-03T14:11:54+00:00
published_scope stringSet the sales channel , when the value is " web " , it means online storesExample:web
rulesobject[]
Smartly add conditioncolumn stringConditions variable , title : title , selling price : sale_price , original price : compared_at_price , tag : tag , inventory : inventory , supplier : vendor ,Weight : variant_weight , specification name : variant_title , created time : created_at , sales : sales , browsing : view , purchase : add_to_cart ,Custom type : type , standardized product type : product_taxonomy_node_id , field of origin : product_metafield_definitionExample:product_metafield_definition
condition stringConditionsExample:true
relation stringThe if-else statement is equal to : equals , not equal to : not_equals , the beginning is : starts_with , the end is : ends_with , including : contains , not included : not_contains ,Greater than : greater_than , less than : less_thanExample:equals
sort_order stringSort by , hot sale : best-selling , product name from a-z : alpha-asc , product name from z-a : alpha-desc , new update time → old : updated-desc ,Update time old → new : updated-asc , custom : manualExample:updated-desc
template_path stringTheme templateExample:templates/sortation/detail.json
title stringCollection titleExample:This is a title
updated_at stringUpdate timeExample:2021-09-03T14:11:54+00:00
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?