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.

Problem adding properties

Problem adding properties

Omnium_User
Shopify Partner
3 0 0

Hi,

I am in a project and i need to add some entities like, PriceSRP,PriceCost, VATId, SupplierId,CompanyId, but i cant find a property in shopify documents to those entities. how can i do it? And if i need to create a specific entitie, whot custom values, is some property, to do it?

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 527

Hey @Omnium_User - most these fields don't exist within the product resources in our admin APIs. You can retrieve the product vendor's name through the Product Object, or through a GraphQL query on the productVendors object. That said, you could create these custom "fields" through our Metafields API. This is how many devs add additional data content to specific products/variants.

Hope this helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog