Sales plan group creation
| Event Group | Event Identification |
|---|---|
| sellingplan | sellingplan/create |
Create a sales program group
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
- app_id stringSales channel idExample:
c41ac9e6736785502d2333d1b1153aca795075c4 - description stringDescriptionExample:
This is a description - id stringSales plan group idExample:
14056200245844372441100009 - merchant_code stringShow the name to the sellerExample:
Subscription plan group default name - name stringSales program group nameExample:
Subscription plan group default name - options arrayList of sales program group optionsExample:
["[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"] - position integerDisplay locationExample:
1 - product_variant_ids arrayList of variant IDs.Example:
["[\"18065954560435138250532015\"]"] - products arrayBangding id list for bindingExample:
["[\"16057039432335097907370282\"]"] selling_plansobject[]
Sales program listbilling_policyobject
Billing strategypolicy_type stringStrategy type , RECURRING : periodic billing strategyExample:RECURRINGrecurringobject
Periodic billing strategy contentinterval stringBilling frequency unit , DAY、MONTH、WEEK、YEARExample:DAYinterval_count integerBilling intervalExample:10max_cycles integerMaximum billing cycleExample:1min_cycles integerMinimum billing cycleExample:1description stringSales plan descriptionExample:This is a descriptionid stringSales plan idExample:14156213099368001129110062name stringSales program nameExample:delivery every 1 weeksoptions arrayList of sales program optionsExample:["[\"Delivery every 10 days\"]\n"]position integerDisplay position , the smaller the more frontExample:1pricing_policiesobject[]
Price policyfixedobject
Fixed price policy contentadjustment_type stringDiscount type , FIXED_AMOUNT : minus , PERCENTAGE : discountExample:FIXED_AMOUNTadjustment_valueobject
Discount valuefixed_value stringDeduction fixed amountExample:10percentage stringSubtraction percentageExample:10policy_type stringStrategy type , FIXED : fixed price strategyExample:FIXED
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?