Query Product of sales channels
GET https://{handle}.myshopline.com/admin/openapi/v20260301/product_listings.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 .Query Product of sales channels
Query Parameters
- page_info stringThe unique identifier for pagination queries, used to locate a specific page.This parameter value is obtained from the
linkvalue in the response header of this API after you have queried the pagination information.For example, if thelinkvalue you obtained is<https://{handle}.myshopline.com/admin/openapi/{version}/product_listings.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next", the value ofpage_infoiseyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9.For more information on how to use pagination, refer to Paging Mechanism.Example:eyJzaW5jZUlkIjoiMTYwNTc0NzY4NjQyMTI3MzUxNTQxNjAyODIiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjV9 - product_ids stringSelected according to the incoming product id list , up to 1000, separated by ','Example:
16057039432335097907370282 - updated_at_min stringFilter on the last updated product list after the date and timeExample:
2022-12-06T15:13:50+08:00 - collection_id stringUse collection id screeningExample:
12250433045062532239420282 - handle stringGlobal unique product handleExample:
This is Product Handle - limit stringLimit of query , default 50 , can not exceed 1000Example:
50
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
link
The URL link that provides the pagination data. You can obtainpage_infofrom this parameter for subsequent pagination requests.This parameter is returned when the requested page has a previous or next page.For more information on how to use pagination, refer to Paging Mechanism.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_listingsobject[]
Product listbody_html stringproduct descriptionExample:This is a descriptioncreated_at stringProduct create timeExample:2022-12-06T15:13:50+08:00handle stringGlobal unique Product handleExample:product-handleimagesobject[]
Product main image listingalt stringImage altExample:This is a image altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngoptionsobject[]
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:{"Red":"https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png"}product_id stringProduct IDExample:16057039432335097907370282published_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:webspu stringSPU codeExample:S00000001status stringProduct status ; activated- on shelves , deactivated- off shelves , archived- filingExample:activesubtitle stringproduct summaryExample:This is a subtitletags stringProduct tagExample:tag1, tag2template_path stringTemplate pathExample:templates/products/detail.jsontitle stringProduct titleExample:This is a Product headlineupdated_at stringupdate timeExample:2022-12-06T15:13:50+08:00variantsobject[]
Variant listbarcode stringBarcodeExample:B00000001compare_at_price stringOriginal priceExample:100id stringVariant idExample:18057039432358082693350282imageobject
Variant imagealt stringImage altExample:This is a image altsrc stringImage srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pnginventory_item_id stringInventory Object IDExample:5703943240925324252inventory_policy stringOversold strategy: deny - Oversold is not allowed, continue - Oversold is allowedExample:denyinventory_quantity integerInventory summary for all locationsExample:100inventory_tracker booleanTrack inventory , true : tracking , false : not trackingExample:trueoption1 stringThe variant corresponds to the value of the option1Example:Redoption2 stringThe variant corresponds to the value of the option2Example:Loption3 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:90product_id stringProduct IDExample:16057039432335097907370282required_shipping booleanShipping or notExample:truesku stringSKU codeExample:T00000001taxable booleanTax collection or not requiredExample:truetitle stringVariant titleExample:Red / Lweight stringWeightExample:0.5weight_unit stringWeight units : g , kg , lb , oz , zh_kgExample:gvendor stringProduct vendorExample:Shopline
API Explorer
Debugger
Examples
Was this article helpful to you?