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

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

List products with filters

GET/admin/v1/stores/{store_id}/products
  • products:read

List products with filters, search and cursor pagination.

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

  • store_idstringمطلوب

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

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

  • qstring

    Search title, handle, vendor, type, or an exact SKU.

  • statusenum

    Whether a product can be sold.

    • draft
    • active
    • archived
  • vendorstring

    Any of these vendors, comma-separated; quote a value that has a comma ("Smith, Jones",Acme).

  • product_typestring

    Any of these product types, comma-separated (quoted like vendor).

  • tagstring

    Products with any of these tags, comma-separated (quoted like vendor).

  • category_idinteger

    Products in this Google product category or any under it.

  • shipping_profilestring

    Products of one shipping profile, by ID, or general.

  • collection_idstring

    Products in any of these collections (comma-separated IDs): a manual one's members, or what a smart one's rules match.

  • channelstring

    Products sold on any of these channels, comma-separated: online_store, pos, …

  • issuestring

    Products with any of these health issues, comma-separated: low_stock, out_of_stock, missing_translation, no_photo.

  • sortstring

    created_at, updated_at or title, prefixed - for descending; -units_sold (most sold in 30 days first) or available (fewest units first). Default -created_at.

  • limitinteger

    1–250, default 50.

  • cursorstring

    page.next_cursor from the previous page.

الترويسات

  • shop-api-versionYYYY-MM

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

ما يُرجعه

200 A page of products.

الأخطاء

  • 400bad_requestMalformed query or cursor.
  • 403forbiddenMissing permission.