Collection creation
| Event Group | Event Identification |
|---|---|
| categories | categories/create |
Collection creation
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
collectionobject
Category informationbannerobject
Category banneralt stringPicture altExample:This is a image altsrc stringImages srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngbody_html stringDescriptionExample:This is a descriptioncollection_type stringCategory type, custom, smartExample:smartcreated_at stringCreation timeExample:2021-09-03T14:11:54+00:00disjunctive booleanThe relationship between the conditions of the intelligent classification box and the Product is fixed . true : Product meets any conditions and can be incorporated into this intelligent classification ; false : Product must meet all conditions and must be fully compliant to be incorporated into this intelligent classificationExample:truehandle stringCategory handleExample:collection-handleid stringCategory idExample:12248721639068681442230282imageobject
Classification imagesalt stringPicture altExample:This is a image altsrc stringImages 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 launch range , 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 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:equalsrelation stringConditionsExample:truesort_order stringProduct name , sort 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-desctemplate_path stringTheme templateExample:templates/sortation/detail.jsontitle stringHeadlineExample: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?