添加商品到销售渠道
PUT https://{handle}.myshopline.com/admin/openapi/v20220901/product_listings/:product_listing_id.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。将商品添加到销售渠道
路径参数
- product_listing_id string required商品ID
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
product_listingobject
商品信息product_id string商品ID
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
product_listingobject
商品的信息body_html string商品描述brand string品牌created_at string创建时间handle string全局唯一的商品handleimagesobject[]
商品主图列表alt string图片ALTsrc string图片地址optionsobject[]
商品规格,最多5个id string商品规格名IDname string商品规格名称product_id string商品IDvalues array商品规格值,按照B端从左到右的顺序进行列示Example: ``values_images map规格值图Example:[object Object]
product_id string商品IDpublished_at string发布时间published_scope string设置发布范围,值为「web」时表示在线商店status stringactive:上架 ,draft:下架subtitle string商品摘要tags string商品标签template_path string模板路径title string商品标题updated_at string更新时间variantsobject[]
款式列表,最多500个barcode string条形码compare_at_price string原价id string款式ID,即skuIdimageobject
款式图片alt string图片ALTsrc string图片地址inventory_item_id string库存对象IDinventory_policy string是否允许超卖,continue:允许 ,deny:不允许inventory_quantity integer库存值inventory_tracker boolean是否追踪库存,默认为不追踪,追踪:true,不追踪:falseoption1 string规格值1option2 string规格值2option3 string规格值3option4 string规格值4option5 string规格值5price string售价product_id string商品IDsku stringsku码,即货号title string款式标题weight string重量weight_unit string重量单位: g, kg, lb, oz
API Explorer
调试台
这篇文章对你有帮助吗?
Error loading component.