market.graphql 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # A market is a group of one or more regions that you want to target for international sales.
  2. # By creating a market, you can configure a distinct, localized shopping experience for
  3. # customers from a specific area of the world. For example, you can
  4. # change currency,
  5. # configure international pricing,
  6. # or add market-specific domains or subfolders.
  7. type Market implements Node {
  8. # The market’s currency settings.
  9. currencySettings: MarketCurrencySettings!
  10. # Whether the market is enabled to receive visitors and sales. Note: Regions in inactive
  11. # markets cannot be selected on the storefront or in checkout.
  12. enabled: Boolean!
  13. # A globally-unique identifier.
  14. id: ID!
  15. # The name of the market. Not shown to customers.
  16. name: String!
  17. # The market’s price list, which specifies a percentage-based price adjustment as well as
  18. # fixed price overrides for specific variants.
  19. priceList: PriceList
  20. # Whether the market is the shop’s primary market.
  21. primary: Boolean!
  22. # The regions that comprise the market.
  23. regions(
  24. first: Int
  25. after: String
  26. last: Int
  27. before: String
  28. reverse: Boolean = false
  29. ): MarketRegionConnection!
  30. # The market’s web presence, which defines its SEO strategy. This can be a different domain,
  31. # subdomain, or subfolders of the primary domain. Each web presence comprises one or more
  32. # language variants. If a market doesn't have its own web presence, then the market is accessible on the
  33. # shop’s primary domain using country
  34. # selectors.
  35. webPresence: MarketWebPresence
  36. }
  37. # A market's currency settings.
  38. type MarketCurrencySettings {
  39. # The currency which this market's prices are defined in, and the
  40. # currency which its customers must use if local currencies are disabled.
  41. baseCurrency: CurrencySetting!
  42. # Whether or not local currencies are enabled. If enabled, then prices will
  43. # be converted to give each customer the best experience based on their
  44. # region. If disabled, then all customers in this market will see prices
  45. # in the market's base currency.
  46. localCurrencies: Boolean!
  47. }
  48. # The market’s web presence, which defines its SEO strategy. This can be a different domain
  49. # (e.g. example.ca), subdomain (e.g. ca.example.com), or subfolders of the primary
  50. # domain (e.g. example.com/en-ca). Each web presence comprises one or more language
  51. # variants. If a market does not have its own web presence, it is accessible on the shop’s
  52. # primary domain via country
  53. # selectors.
  54. #
  55. # Note: while the domain/subfolders defined by a market’s web presence are not applicable to
  56. # custom storefronts, which must manage their own domains and routing, the languages chosen
  57. # here do govern the languages available on the Storefront
  58. # API for the countries in
  59. # this market.
  60. type MarketWebPresence implements Node {
  61. # The ISO codes for the alternate locales. When a domain is used, these locales will be
  62. # available as language-specific subfolders. For example, if English is an
  63. # alternate locale, and example.ca is the market’s domain, then
  64. # example.ca/en will load in English.
  65. alternateLocales: [String!]!
  66. # The ISO code for the default locale. When a domain is used, this is the locale that will
  67. # be used when the domain root is accessed. For example, if French is the default locale,
  68. # and example.ca is the market’s domian, then example.ca will load in French.
  69. defaultLocale: String!
  70. # The web presence’s domain.
  71. # This field will be null if subfolderSuffix isn't null.
  72. domain: Domain
  73. # A globally-unique identifier.
  74. id: ID!
  75. # The associated market.
  76. market: Market!
  77. # The list of root URLs for each of the web presence’s locales.
  78. rootUrls: [MarketWebPresenceRootUrl!]!
  79. # The market-specific suffix of the subfolders defined by the web presence. Example: in /en-us the subfolder suffix is us.
  80. # This field will be null if domain isn't null.
  81. subfolderSuffix: String
  82. }
  83. # The URL for the homepage of the online store in the context of a particular market and a particular locale.
  84. type MarketWebPresenceRootUrl {
  85. # The locale that the storefront loads in.
  86. locale: String!
  87. # The URL.
  88. url: URL!
  89. }