Markets by Product GraphQl/Rest 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!

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.

2 Likes

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?