Hello there!
I’m developing an app to integrate Shopify with my service. I want to store some data in user’s shop metafields so he/she doesn’t have to enter it every time they open the app in their dashboard.
I’m just wondering, which scope should I ask users for in the authentication process? I couldn’t find this information in Metafields or in access scopes.
Anyone can help?
Thanks!
Hey! You just need the correct scope for the objects which metafields you want to access, i.e. Shop for your case.
Hey Sergiu, Thanks for your quick reply!
Which scope is responsible for accessing Shop resource? I can’t find it in access scopes.
Apologies, that was a bad example. I should have said to read/write object’s metafields you’d need read/write access for that object. There are no special scopes related to Shop object so you can use REST API to read/write shop’s metafields as:
GET /admin/api/#{api_version}/metafields.json
POST /admin/api/#{api_version}/metafields.json
Hey Sergiu,
I found that i don’t need any specific scope to set shop metafields.
Thanks for your help.