Add product collection to sales channels
| Event Group | Event Identification |
|---|---|
| collection_listings | collection_listings/add |
Sales channel classification add notifications
Request Headers
- X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
collection_listingobject
Collection informationbannerobject
Collection banneralt stringImage altExample:This is a image altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngbody_html stringCollection descriptionExample:This is a descriptioncollection_type stringCollection type : custom- manual , smart- smartExample:customcreated_at stringCreation timeExample:2021-09-03T14:11:54+00:00disjunctive 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:truehandle stringCollection HandleExample:collection-handleid stringidExample:12253400918743462093302234imageobject
Collection imagescolumn stringImage altExample:This is a image altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngpublished_at stringTime to post to online storesExample:2021-09-03T14:11:54+00:00published_scope stringSet the sales channel , when the value is " web " , it means online storesExample:webrulesobject[]
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_definitioncondition stringConditionsExample:truerelation 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:equalssort_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 , old update time → new : updated-asExample:updated-desctemplate_path stringTheme templateExample:templates/sortation/detail.jsontitle stringCollection titleExample:This is a titleupdated_at stringUpdate timeExample:2021-09-03T14:11:54+00:00
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?