GrapgQL api

Hi @muhammad_haroon ,

The REST Admin API should be able to return a product’s metafields, with or without definitions, but you will need to use the path from the resource to it’s metafields endpoint in another request.

  • For a product that would be admin/api/{{version}}/products/{{product_id}}/metafields.json

The GraphQL Admin API offers much more flexibility for retrieving the product/ variant and metafield information all in a single request so I would recommend sticking with that.

Hope that helps!

  • James