Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: retrieve shop-level metafield via Admin API

retrieve shop-level metafield via Admin API

victor_dyode_88
Shopify Partner
1 0 0

victor_dyode_88_0-1709153909839.png

We tried to retrieve a shop-level metafield with the Storefront API, but it seems it doesn't expose shop-level metafields. Therefore, we want to leverage the Admin API. Can this be done? How should we proceed? Thank you!

Reply 1 (1)

SBD_
Shopify Staff
1831 273 423

Hey @victor_dyode_88 

 

Sure, here's how: https://shopify.dev/docs/api/admin-graphql/2023-07/queries/metafield

Scott | Developer Advocate @ Shopify