Create a company location catalog
| Event Group | Event Identification |
|---|---|
| company | company/create |
Message to create a company location catalog.
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
company_location_catalogobject
Information of the company location catalogadjustment_type integerThe type of percentage adjustment, with a value of1for decreasing the price and a value of2for increasing the price.Example:1adjustment_value integerThe adjustment value based onadjustment_type, formatted as a percentage.- When decreasing the price, the value is limited to 0-100.
- When increasing the price, the value is limited to 0-10,000.
Example:10auto_add_product booleanWhether newly added products should automatically be included in the catalog.Example:truecatalog_id stringThe ID of company location catalog.Example:6505476185111667646company_locations_count integerTotal number of company location in the catalogExample:10created_at stringCreate time of the catalogExample:2023-04-06T18:18:42.883+0800currency_code stringCurrency codeExample:USDindividual_price_products_count integerNumber of individually priced productsExample:5products_count integerTotal number of published products in the catalogExample:20status stringThe status of the specified catalog, with a value of1representing active status and a value of2representing draft status.Example:1title stringThe title of company location catalog.Example:This is a catalogupdated_at stringUpdate time of the catalogExample:2023-04-06T18:18:42.883+0800
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?