انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Stock totals

GET/admin/v1/stores/{store_id}/inventory/totals
  • inventory:read

Add up every variant matching the list's filters: how many, and the committed, available and on-hand units of those that track stock, at the location or in total. The page is ignored.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

معاملات الاستعلام

  • qstring

    Search product title, variant title or SKU.

  • location_idstring

    Count stock at this location only.

  • low_stockinteger

    Only tracked variants low on stock: available at or below their own threshold, or this number for variants without one.

  • sold_outboolean

    Only tracked variants with nothing available.

  • incomingboolean

    Only variants with units on their way in a shipped transfer or an ordered purchase order, to location_id when given.

  • limitinteger

    1–250, default 50.

  • cursorstring

    page.next_cursor from the previous page.

الترويسات

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

ما يُرجعه

200 What the matching variants add up to.

الأخطاء

  • 400bad_requestMalformed query.
  • 403forbiddenMissing permission.