لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Product totals
/ admin/ v1/ stores/ {store_id}/ products/ totals- products:read
Add up every product matching the list's filters: how many, the units they sold in 30 days and what is available of those that track stock. The sort and page are ignored.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
معاملات الاستعلام
qstringSearch title, handle, vendor, type, or an exact SKU.
statusenumWhether a product can be sold.
- draft
- active
- archived
vendorstringAny of these vendors, comma-separated; quote a value that has a comma (
"Smith, Jones",Acme).product_typestringAny of these product types, comma-separated (quoted like
vendor).tagstringProducts with any of these tags, comma-separated (quoted like
vendor).category_idintegerProducts in this Google product category or any under it.
shipping_profilestringProducts of one shipping profile, by ID, or
general.collection_idstringProducts in any of these collections (comma-separated IDs): a manual one's members, or what a smart one's rules match.
channelstringProducts sold on any of these channels, comma-separated:
online_store,pos, …issuestringProducts with any of these health issues, comma-separated:
low_stock,out_of_stock,missing_translation,no_photo.sortstringcreated_at,updated_atortitle, prefixed-for descending;-units_sold(most sold in 30 days first) oravailable(fewest units first). Default-created_at.limitinteger1–250, default 50.
cursorstringpage.next_cursorfrom the previous page.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 What the matching products add up to.
الأخطاء
- 400
bad_requestMalformed query. - 403
forbiddenMissing permission.