shop.graphql 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. # The list of all the countries from the combined shipping zones for the shop.
  2. type CountriesInShippingZones {
  3. # The list of all the countries from all the combined shipping zones.
  4. countryCodes: [CountryCode!]!
  5. # Whether 'Rest of World' has been defined in any of the shipping zones.
  6. includeRestOfWorld: Boolean!
  7. }
  8. # Currency formats configured for the merchant. These formats are available to use within Liquid.
  9. type CurrencyFormats {
  10. # Money without currency in HTML.
  11. moneyFormat: FormattedString!
  12. # Money without currency in emails.
  13. moneyInEmailsFormat: String!
  14. # Money with currency in HTML.
  15. moneyWithCurrencyFormat: FormattedString!
  16. # Money with currency in emails.
  17. moneyWithCurrencyInEmailsFormat: String!
  18. }
  19. # Represents the feature set available to the shop.
  20. # Most fields specify whether a feature is enabled for a shop, and some fields return information
  21. # related to specific features.
  22. type ShopFeatures {
  23. # Whether a shop has access to Avalara AvaTax.
  24. avalaraAvatax: Boolean!
  25. # The branding of the shop, which influences its look and feel in the Shopify admin.
  26. branding: ShopBranding!
  27. # Whether a shop's online store can have CAPTCHA protection.
  28. captcha: Boolean!
  29. # Whether a shop's online store can have CAPTCHA protection for domains not managed by Shopify.
  30. captchaExternalDomains: Boolean!
  31. # Whether a shop has access to the Google Analytics dynamic remarketing feature.
  32. dynamicRemarketing: Boolean!
  33. # Whether a shop can be migrated to use Shopify subscriptions.
  34. eligibleForSubscriptionMigration: Boolean!
  35. # Whether a shop is configured properly to sell subscriptions.
  36. eligibleForSubscriptions: Boolean!
  37. # Whether a shop can create gift cards.
  38. giftCards: Boolean!
  39. # Whether a shop displays Harmonized System codes on products. This is used for customs when shipping
  40. # internationally.
  41. harmonizedSystemCode: Boolean!
  42. # Whether a shop can enable international domains.
  43. internationalDomains: Boolean!
  44. # Whether a shop can enable international price overrides.
  45. internationalPriceOverrides: Boolean!
  46. # Whether a shop can enable international price rules.
  47. internationalPriceRules: Boolean!
  48. # Whether a shop has enabled a legacy subscription gateway to handle older subscriptions.
  49. legacySubscriptionGatewayEnabled: Boolean!
  50. # Whether to show the Live View metrics in the Shopify admin. Live view is hidden from merchants that are on a trial
  51. # or don't have a storefront.
  52. liveView: Boolean!
  53. # Whether a shop has access to the onboarding visual.
  54. onboardingVisual: Boolean!
  55. # Whether a shop is configured to sell subscriptions with PayPal Express.
  56. paypalExpressSubscriptionGatewayStatus: PaypalExpressSubscriptionsGatewayStatus!
  57. # Whether a shop has access to all reporting features.
  58. reports: Boolean!
  59. # Whether a shop has ever had subscription products.
  60. sellsSubscriptions: Boolean!
  61. # Whether to show metrics in the Shopify admin. Metrics are hidden for new merchants until they become meaningful.
  62. showMetrics: Boolean!
  63. # Whether a shop has an online store.
  64. storefront: Boolean!
  65. # Whether a shop is using Shopify Balance.
  66. usingShopifyBalance: Boolean!
  67. }
  68. # The total number of pending orders on a shop if less then a maximum, or that maximum.
  69. # The atMax field indicates when this maximum has been reached.
  70. type LimitedPendingOrderCount {
  71. # This is set when the number of pending orders has reached the maximum.
  72. atMax: Boolean!
  73. # The number of pendings orders on the shop.
  74. # Limited to a maximum of 10000.
  75. count: Int!
  76. }
  77. # Merchant approval for accelerated onboarding to channel integration apps.
  78. type MerchantApprovalSignals {
  79. # Whether the shop's Shopify Payments account identity is verified.
  80. # Returns false if the identity is unverified or if the shop doesn't have a Shopify Payments account.
  81. identityVerified: Boolean!
  82. # Whether Shopify has pre-verified the merchant's business for onboarding to channel integration apps.
  83. # Returns false if the shop is not marked for verification.
  84. verifiedByShopify: Boolean!
  85. }
  86. # Settings related to payments.
  87. type PaymentSettings {
  88. # List of the digital wallets which the shop supports.
  89. supportedDigitalWallets: [DigitalWallet!]!
  90. }
  91. # The billing plan of the shop.
  92. type ShopPlan {
  93. # The name of the shop's billing plan.
  94. displayName: String!
  95. # Whether the shop is a partner development shop for testing purposes.
  96. partnerDevelopment: Boolean!
  97. # Whether the shop has a Shopify Plus subscription.
  98. shopifyPlus: Boolean!
  99. }
  100. # Policy that a merchant has configured for their store, such as their refund or privacy policy.
  101. type ShopPolicy implements HasPublishedTranslations&Node {
  102. # The text of the policy. The maximum size is 512kb.
  103. body: HTML!
  104. # A globally-unique identifier.
  105. id: ID!
  106. # The translations associated with the resource.
  107. translations(locale: String! marketId: ID): [PublishedTranslation!]!
  108. # The shop policy type.
  109. type: ShopPolicyType!
  110. # The public URL of the policy.
  111. url: URL!
  112. }
  113. # Resource limits of a shop.
  114. type ShopResourceLimits {
  115. # Maximum number of locations allowed.
  116. locationLimit: Int!
  117. # Maximum number of product options allowed.
  118. maxProductOptions: Int!
  119. # The maximum number of variants allowed per product.
  120. maxProductVariants: Int!
  121. # Whether the shop has reached the limit of the number of URL redirects it can make for resources.
  122. redirectLimitReached: Boolean!
  123. # The maximum number of variants allowed per shop.
  124. # If the shop has unlimited SKUs, then the quantity used cannot be retrieved.
  125. skuResourceLimits: ResourceLimit!
  126. }
  127. # A resource limit represents the limits that the resource has.
  128. type ResourceLimit {
  129. # Whether the resource is available.
  130. available: Boolean!
  131. # Quantity available. If null the quantity available is unlimited.
  132. quantityAvailable: Int
  133. # Quantity limit of the resource. If null the quantity is unlimited.
  134. quantityLimit: Int
  135. # Quantity used of the resource. If null the quantity used cannot be retrieved.
  136. quantityUsed: Int
  137. }
  138. # Represents an individual result returned from a search.
  139. type SearchResult {
  140. # Returns the search result description text.
  141. description: String
  142. # Returns the Image resource presented to accompany a search result.
  143. image: Image
  144. # Returns the ID of the resource returned in the search result.
  145. reference: Node!
  146. # Returns the resource title.
  147. title: String!
  148. # Returns the absolute URL to the resource in the search result.
  149. url: URL!
  150. }
  151. # A list of search filters along with their specific options in value and label pair for filtering.
  152. type SearchFilterOptions {
  153. # A list of options that can be use to filter product availability.
  154. productAvailability: [FilterOption!]!
  155. }
  156. # A saved search is a representation of a search query saved in the admin.
  157. type SavedSearch implements LegacyInteroperability&Node {
  158. # The filters of a saved search.
  159. filters: [SearchFilter!]!
  160. # A globally-unique identifier.
  161. id: ID!
  162. # The ID of the corresponding resource in the REST Admin API.
  163. legacyResourceId: UnsignedInt64!
  164. # The name of a saved search.
  165. name: String!
  166. # The query string of a saved search. This includes search terms and filters.
  167. query: String!
  168. # The type of resource this saved search is searching in.
  169. resourceType: SearchResultType!
  170. # The search terms of a saved search.
  171. searchTerms: String!
  172. }
  173. # A filter in a search query represented by a key value pair.
  174. type SearchFilter {
  175. # The key of the search filter.
  176. key: String!
  177. # The value of the search filter.
  178. value: String!
  179. }
  180. # A filter option is one possible value in a search filter.
  181. type FilterOption {
  182. # The filter option's label for display purposes.
  183. label: String!
  184. # The filter option's value.
  185. value: String!
  186. }
  187. # An auto-generated type for paginating through multiple AppRevenueAttributionRecords.
  188. type AppRevenueAttributionRecordConnection {
  189. # A list of edges.
  190. edges: [AppRevenueAttributionRecordEdge!]!
  191. # A list of the nodes contained in AppRevenueAttributionRecordEdge.
  192. nodes: [AppRevenueAttributionRecord!]!
  193. # Information to aid in pagination.
  194. pageInfo: PageInfo!
  195. }
  196. # An auto-generated type which holds one AppRevenueAttributionRecord and a cursor during pagination.
  197. type AppRevenueAttributionRecordEdge {
  198. # A cursor for use in pagination.
  199. cursor: String!
  200. # The item at the end of AppRevenueAttributionRecordEdge.
  201. node: AppRevenueAttributionRecord!
  202. }
  203. # An auto-generated type for paginating through multiple AppUsageRecords.
  204. type AppUsageRecordConnection {
  205. # A list of edges.
  206. edges: [AppUsageRecordEdge!]!
  207. # A list of the nodes contained in AppUsageRecordEdge.
  208. nodes: [AppUsageRecord!]!
  209. # Information to aid in pagination.
  210. pageInfo: PageInfo!
  211. }
  212. # An auto-generated type which holds one AppUsageRecord and a cursor during pagination.
  213. type AppUsageRecordEdge {
  214. # A cursor for use in pagination.
  215. cursor: String!
  216. # The item at the end of AppUsageRecordEdge.
  217. node: AppUsageRecord!
  218. }
  219. # The connection type for SearchResult.
  220. type SearchResultConnection {
  221. # A list of edges.
  222. edges: [SearchResultEdge!]!
  223. # Information to aid in pagination.
  224. pageInfo: PageInfo!
  225. }
  226. # An auto-generated type which holds one SearchResult and a cursor during pagination.
  227. type SearchResultEdge {
  228. # A cursor for use in pagination.
  229. cursor: String!
  230. # The item at the end of SearchResultEdge.
  231. node: SearchResult!
  232. }