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

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

Get metafields

GET/admin/v1/stores/{store_id}/metafields

    An owner's metafields: every definition of its type with the owner's values, and what the values refer to. Requires the permission that reads the owner (products:read for products, variants and collections; customers:read; orders:read; settings:read for the store).

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

    • store_idstringمطلوب

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

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

    • owner_typeenumمطلوب

      What a metafield belongs to.

      • product
      • variant
      • collection
      • customer
      • order
      • store
    • owner_idstring

      The owner's ID (prod_…, var_…, col_…, cus_…, ord_…); left out for the store.

    الترويسات

    • shop-api-versionYYYY-MM

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

    ما يُرجعه

    200 The owner's metafields.

    الأخطاء

    • 400bad_requestMissing or malformed owner_id.
    • 403forbiddenMissing the owner's read permission.
    • 404not_foundNo such owner.