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 stringImage altExample:This is a image alt
src stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
imagesobject[]
Imagesalt stringImage altExample:This is a image alt
src stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
optionsobject[]
Option listid stringOption idExample:16158288104774469113452670
name stringOption nameExample:Color
product_id stringProduct idExample:16058287356753569620272670
values arrayList of option valueExample:["Red", "Green", "White"]
values_images mapThe image of option valueExample:[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 stringSet the sales channel , when the value is " web " , it means online storesExample:
web
- spu stringSPU codeExample:
S000001
- status stringProduct status ; activated- on shelves , deactivated- off shelves , archived- filingExample:
active
- subtitle stringSummaryExample:
This is a subtitle
- tags stringTagExample:
tag1, tag2
- template_path stringTheme templateExample:
templates/products/detail.json
- title stringProduct titleExample:
This is a title
- updated_at stringUpdate timeExample:
2023-03-02T18:18:42.883+0800
variantsobject[]
Variant listbarcode stringBarcodeExample:B000000001
compare_at_price stringOriginal priceExample:10
id stringVariant idExample:18054026339558906501791422
imageobject
Variant imagealt stringImage altExample:This is a image alt
src stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
inventory_item_id stringInventory item idExample:5482608456602009969
inventory_policy stringOversold strategy: deny - Oversold is not allowed, continue - Oversold is allowedExample:continue
inventory_quantity integerInventory summary for all locationsExample:100
inventory_tracker booleanTrack inventory or notExample:true
option1 stringThe variant corresponds to the value of the option1Example:Red
option2 stringThe variant corresponds to the value of the option2Example:L
option3 stringThe variant corresponds to the value of the option3option4 stringThe variant corresponds to the value of the option4option5 stringThe variant corresponds to the value of the option5price stringSelling priceExample:20
product_id stringProduct idExample:16058287356753569620272670
required_shipping booleanShipping or notsku stringSKU codeExample:T000001
taxable booleanTax collection or not requiredtitle stringVariant titleExample:Red/L
weight stringWeightExample:10
weight_unit stringWeight units : g , kg , lb , oz , zh_kgExample:g
- vendor stringProduct vendorExample:
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.