Adding products to markets using GraphQL Admin API

Hey everyone! :waving_hand:

I’m working with Shopify’s GraphQL Admin API and trying to figure out how to add products to specific markets (e.g., for international selling). I’ve been looking through the docs but can’t seem to find a clear example of how to associate a product with a market using the GraphQL API.

Has anyone done this before?

  • Is there a specific mutation for adding a product to a market?
  • Do I need to manage this through publication or some other field?
  • Any example queries or tips would be greatly appreciated!

Thanks in advance! :folded_hands:

Hey @Mohamed_EL :waving_hand: - right now the Markets API is only available as a developer preview and to certain merchants (there’s a bit more info here).

Specifically though, for assigning a product to a particular market, you’d want to follow this guide here on managing market catalogs: Build a catalog

Hope this helps - let me know if I can clarify anything on our end here :slight_smile:

Hi @Alan_G,

Thank you for your reply.

That make sense.

1 Like