Reputation: 1828
I'm a developer who uses Shopify Developer API. I searched API, trying to find method to retrieve information about shop business industry. I didn't find anything. I've tried to get this information from Metafield API from store, but I've found just information about pos_attributes. Could you help me to solve this issue? (In general, is it possible or not?)
Upvotes: 0
Views: 219
Reputation: 2925
Unfortunately that is not possible. The information you've shown is only for Shopify to tailor some stuff for your usage and it is no where linked to your account in the accessible fields.
Fortunately, you can always add custom meta-fields (information fields) to the Shopify store using the Metafield API and retrieve it at anytime anywhere.
Use the Metafield API to POST the following information directly on the store url - https://your_store_name.myshopify.com/admin/metafields.json
{
"metafield": {
"namespace": "meta", //any string will work
"key": "industry", //any string will work
"value": "Leather Manufacturing", // A string or a number
"value_type": "string" //accepted values are string & integer
}
}
Once stored, you can call it on the shop using Metafield object property. {{ shop.metafields.namespace.key.}}
(in this case {{ shop.metafields.meta.industry }}
)
And if you want to call it using the API use GET with the url - https://your_store_name.myshopify.com/admin/metafields/metafield_id.json
Upvotes: 1