Focusing on managing products, variants, and collections through the API.
Hello,
How do I get all the Markets that one product is available using GraphQl or Rest API?
Basically, the information that we can also see when we edit a product:
Best Regards!
Solved! Go to the solution
This is an accepted solution.
Hi RfcSilva,
Markets should all have a catalog, and that catalog has a publication - you can query that to get a publication ID, and then query the product's publishedOnPublication field to see the markets that a product is available on.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
This is an accepted solution.
Hi RfcSilva,
Markets should all have a catalog, and that catalog has a publication - you can query that to get a publication ID, and then query the product's publishedOnPublication field to see the markets that a product is available on.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
Hi @Liam while creating a product using Rest API how can i set market values?As in our case i want market to be always set as international and primary(United States) while creating a product, can u help me the correct endpoint with request body?