Query specify Product for sales channels
GET https://{handle}.myshopline.com/admin/openapi/v20260301/product_listings/:product_listing_id.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Path Parameters
- product_listing_id string requiredProduct IDExample:
16057039432335097907370282
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
product_listingobject
Product listvendor stringvendorExample:Shoplinespu stringSPU codeExample:S00000001optionsobject[]
List of optionid stringOption idExample:16157850264851626133440282name stringOption nameExample:colorproduct_id stringProduct IDExample:16057039432335097907370282values arrayList of option valueExample:["[\"Red\", \"Green\", \"White”]"]values_images mapThe image of option valueExample:{}tags stringProduct tagExample:tag1,tag2template_path stringTemplate pathExample:templates/products/detail.jsoncreated_at stringCreation timeExample:2022-12-06T15:13:50+08:00imagesobject[]
Product main image listingalt stringImage altExample:this is altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngsubtitle stringProduct summaryExample:This is a subtitlepublished_at stringTime to post to the online storeExample:2022-12-06T15:13:50+08:00published_scope stringSet the sales channel , when the value is " web " , it means online storesExample:webupdated_at stringProduct update timeExample:2022-12-06T15:13:50+08:00body_html stringproduct descriptionExample:This is the product descriptionstatus stringProduct status ; activated- on shelves , deactivated- off shelves , archived- filingExample:activevariantsobject[]
Variant listsku stringSKU codeExample:T00000001inventory_quantity integerInventory summary for all locationsExample:100id stringVariant idExample:18057039432358082693350282title stringVariant titleExample:Red/Lbarcode stringBarcodeExample:B00000001imageobject
Variant imagealt stringImage altExample:This is a image altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngrequired_shipping booleanShipping or notExample:trueoption2 stringThe variant corresponds to the value of the option2Example:Lproduct_id stringProduct IDExample:16057039432335097907370282option4 stringThe variant corresponds to the value of the option4option1 stringThe variant corresponds to the value of the option1Example:Redtaxable booleanTax collection or not requiredExample:trueweight stringWeightExample:0.5weight_unit stringWeight units : g , kg , lb , oz , zh_kgExample:gcompare_at_price stringOriginal priceExample:100inventory_item_id stringInventory item IDExample:5703943240925324252option5 stringThe variant corresponds to the value of the option5inventory_policy stringOversold strategy: deny - Oversold is not allowed, continue - Oversold is allowedExample:denyinventory_tracker booleanTrack inventory or notExample:trueoption3 stringThe variant corresponds to the value of the option3price stringSelling priceExample:90handle stringGlobally unique commodity handleExample:product-handletitle stringProduct titleExample:This is a titleproduct_id stringProduct IDExample:16057039432335097907370282
API Explorer
Debugger
Examples
Was this article helpful to you?