Create product
Event Group | Event Identification |
---|---|
products | products/create |
product creation
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
- body_html stringDescriptionExample:
This is a description
- created_at stringCreation timeExample:
2023-03-02T18:18:42.883+0800
- handle stringProduct handleExample:
product-handle
- id stringProduct IDExample:
16058287356753569620272670
imageobject
Product main imagealt stringPicture altExample:This is a image alt
src stringImages srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
imagesobject[]
Imagesalt stringPicture altExample:This is a image alt
src stringImages srcExample: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:
S000001
- status stringProduct status : active- on shelf , draft- off shelf , archived- filingExample:
active
- subtitle stringSummaryExample:
This is a subtitle
- tags stringTagExample:
tag1,tag2
- template_path stringTheme templateExample:
templates/products/detail.json
- title stringHeadlineExample:
This is a title
- updated_at stringUpdate timeExample:
2023-03-02T18:18:42.883+0800
variantsobject[]
Style listbarcode stringBar codeExample:B000000001
compare_at_price stringOriginal priceExample:10
id stringStyle idExample:18054026339558906501791422
imageobject
Imagesalt stringPicture altExample:This is a image alt
src stringImages srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
inventory_item_id stringStock object idExample:5482608456602009969
inventory_policy stringAllows oversold , continue or not : allowed , deny : not allowedExample:continue
inventory_quantity integerSuoyou summary of all locationsExample:100
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:20
product_id stringDuiying id correspondingExample:16058287356753569620272670
required_shipping booleanShipping or notsku stringSkuExample:T000001
taxable booleanTax collection or not requiredtitle stringStyle titleExample:Red/L
weight stringWeightExample:10
weight_unit stringUnit of weight, g: grams kg: kilograms lb: pounds oz: ounces zh_kg: kilogramsExample: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?