Skip to content

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).

    Path parameters

    • store_idstringrequired

      The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

    Query parameters

    • owner_typeenumrequired

      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.

    Headers

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Returns

    200 The owner's metafields.

    Errors

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