Add Product to sales channels
Event Group | Event Identification |
---|---|
product_listings | product_listings/add |
Add Product to sales channels
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
product_listingobject
Product informationbody_html stringProduct descriptionExample:This is a description
created_at stringProduct create timeExample:2023-03-02T18:18:42.883+0800
handle stringGlobal unique Product handleExample:proudct-handle
id stringProduct IDExample:16058287356753559620272670
imagesobject[]
Product main image listingalt stringPicture altExample:This is a image alt
src stringImage URLExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
optionsobject[]
Option listid stringOption idExample:16158288104774469113452670
name stringOption nameExample:Color
product_id stringDuiying id correspondingExample:16058287356753569620272670
values arrayList of options valueExample:["Red", "Green", "White"]
values_images mapOption value chartExample:[object Object]
product_behavior stringProduct behaviorExample:RISK,HIDDEN
product_category stringProduct polymer typeExample:Electronic
product_type stringProduct typeExample:Electronic
published_at stringTime to post to online storesExample:2023-03-02T18:18:42.883+0800
published_scope stringLaunch range , " web " means online storesExample:web
spu stringSize s puExample:S000000001
status stringProduct status : active- on shelf , draft- off shelf , archived- filingExample:active
subtitle stringProduct summaryExample:This is a subtitle
tags stringTag , multiple separated by ','Example:tag1,tag2
template_path stringTheme templateExample:templates/products/detail.json
title stringProduct titleExample:This is a title
updated_at stringProduct update timeExample:2023-03-02T18:18:42.883+0800
variantsobject[]
Style listbarcode stringBar codeExample:B0000000001
compare_at_price stringOriginal priceExample:1
id stringStyle idExample:18058288104774469113432670
imageobject
Style chartalt stringPicture altExample:This is a image alt
src stringImages srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
inventory_policy stringAllows oversold , continue or not : allowed , deny : not allowedExample:continue
inventory_quantity integerSuoyou summary of all locationsExample:1
inventory_tracker booleanTrack inventory or notExample:true
option1 stringValue for the first option that this style corresponds toExample:Red
option2 stringValue for the second option that this style corresponds toExample:L
option3 stringValue for the third option that this style corresponds tooption4 stringValue of the fourth option that this style corresponds tooption5 stringValue for the fifth option that this style corresponds toprice stringSelling priceExample:1
product_id stringDuiying id correspondingExample:16058287356753569620272670
required_shipping booleanShipping or notsku stringSkuExample:B0000001
taxable booleanTax or not?title stringStyle titleExample:Red/L
weight stringWeightExample:1
weight_unit stringWeight unit , g : g , kg : kg , lb : lb , oz : ozExample:g
vendor stringProduct manufacturerExample:Shopline
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?
Error loading component.