Get metafields
GET
/ admin/ v1/ stores/ {store_id}/ metafieldsAn 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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
owner_typeenumrequiredWhat a metafield belongs to.
- product
- variant
- collection
- customer
- order
- store
owner_idstringThe owner's ID (
prod_…,var_…,col_…,cus_…,ord_…); left out for the store.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 The owner's metafields.
Errors
- 400
bad_requestMissing or malformedowner_id. - 403
forbiddenMissing the owner's read permission. - 404
not_foundNo such owner.