Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
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!
Solved! Go to the solution
This is an accepted solution.
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! 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.
This is an accepted solution.
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.