order.tpl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. # An order is a customer's request to purchase one or more products from a shop. You can retrieve and update orders using the Order object.
  2. # Learn more about
  3. # editing an existing order with the GraphQL Admin API.
  4. #
  5. # Only the last 60 days' worth of orders from a store are accessible from the Order object by default. If you want to access older orders,
  6. # then you need to request access to all orders. If your app is granted
  7. # access, then you can add the read_all_orders scope to your app along with read_orders or write_orders.
  8. # Private apps are not affected by this change and are automatically granted the scope.
  9. #
  10. # Caution: Only use this data if it's required for your app's functionality.
  11. # Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
  12. type Order
  13. implements CommentEventSubject&HasEvents&HasLocalizationExtensions&HasMetafieldDefinitions&HasMetafields&LegacyInteroperability&Node
  14. @key(fields: "id") {
  15. # A list of sales agreements associated with the order.
  16. agreements(
  17. first: Int
  18. after: String
  19. last: Int
  20. before: String
  21. reverse: Boolean = false
  22. query: String
  23. ): SalesAgreementConnection!
  24. # A list of messages that appear on the order page in the Shopify admin.
  25. alerts: [ResourceAlert!]!
  26. # The application that created the order.
  27. app: OrderApp
  28. # The billing address of the customer.
  29. billingAddress: MailingAddress
  30. # Whether the billing address matches the shipping address.
  31. billingAddressMatchesShippingAddress: Boolean!
  32. # Whether the order can be manually marked as paid.
  33. canMarkAsPaid: Boolean!
  34. # Whether a customer email exists for the order.
  35. canNotifyCustomer: Boolean!
  36. # The reason provided when the order was canceled.
  37. # Returns null if the order wasn't canceled.
  38. cancelReason: OrderCancelReason
  39. # The date and time when the order was canceled.
  40. # Returns null if the order wasn't canceled.
  41. cancelledAt: DateTime
  42. # Whether payment for the order can be captured.
  43. capturable: Boolean!
  44. # The total order-level discount amount, before returns, in shop and presentment currencies.
  45. cartDiscountAmountSet: MoneyBag
  46. # Details about the channel that created the order.
  47. channelInformation: ChannelInformation
  48. # The IP address of the API client that created the order.
  49. clientIp: String
  50. # Whether the order is closed.
  51. closed: Boolean!
  52. # The date and time when the order was closed.
  53. # Returns null if the order is not closed.
  54. closedAt: DateTime
  55. # Whether inventory has been reserved for the order.
  56. confirmed: Boolean!
  57. # Date and time when the order was created in Shopify.
  58. createdAt: DateTime!
  59. # The shop currency when the order was placed.
  60. currencyCode: CurrencyCode!
  61. # The current order-level discount amount after all order updates, in shop and presentment currencies.
  62. currentCartDiscountAmountSet: MoneyBag!
  63. # The sum of the quantities for all line items that contribute to the order's current subtotal price.
  64. currentSubtotalLineItemsQuantity: Int!
  65. # The sum of the prices for all line items after discounts and returns, in shop and presentment currencies.
  66. # If taxesIncluded is true, then the subtotal also includes tax.
  67. currentSubtotalPriceSet: MoneyBag!
  68. # A list of all tax lines applied to line items on the order, after returns.
  69. # Tax line prices represent the total price for all tax lines with the same rate and title.
  70. currentTaxLines: [TaxLine!]!
  71. # The total amount discounted on the order after returns, in shop and presentment currencies.
  72. # This includes both order and line level discounts.
  73. currentTotalDiscountsSet: MoneyBag!
  74. # The total amount of duties after returns, in shop and presentment currencies.
  75. # Returns null if duties aren't applicable.
  76. currentTotalDutiesSet: MoneyBag
  77. # The total price of the order, after returns, in shop and presentment currencies.
  78. # This includes taxes and discounts.
  79. currentTotalPriceSet: MoneyBag!
  80. # The sum of the prices of all tax lines applied to line items on the order, after returns, in shop and presentment currencies.
  81. currentTotalTaxSet: MoneyBag!
  82. # The total weight of the order after returns, in grams.
  83. currentTotalWeight: UnsignedInt64!
  84. # A list of the custom attributes added to the order.
  85. customAttributes: [Attribute!]!
  86. # The customer that placed the order.
  87. customer: Customer
  88. # Whether the customer agreed to receive marketing materials.
  89. customerAcceptsMarketing: Boolean!
  90. # The customer's visits and interactions with the online store before placing the order.
  91. customerJourneySummary: CustomerJourneySummary
  92. # A two-letter or three-letter language code, optionally followed by a region modifier.
  93. customerLocale: String
  94. # A list of discounts that are applied to the order, not including order edits and refunds.
  95. discountApplications(
  96. first: Int
  97. after: String
  98. last: Int
  99. before: String
  100. reverse: Boolean = false
  101. ): DiscountApplicationConnection!
  102. # The discount code used for the order.
  103. discountCode: String
  104. # The discount codes used for the order.
  105. discountCodes: [String!]!
  106. # The primary address of the customer.
  107. # Returns null if neither the shipping address nor the billing address was provided.
  108. displayAddress: MailingAddress
  109. # The financial status of the order that can be shown to the merchant.
  110. # This field does not capture all the details of an order's financial state. It should only be used for display summary purposes.
  111. displayFinancialStatus: OrderDisplayFinancialStatus
  112. # The fulfillment status for the order that can be shown to the merchant.
  113. # This field does not capture all the details of an order's fulfillment state. It should only be used for display summary purposes.
  114. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  115. displayFulfillmentStatus: OrderDisplayFulfillmentStatus!
  116. # A list of the disputes associated with the order.
  117. disputes: [OrderDisputeSummary!]!
  118. # Whether the order has had any edits applied.
  119. edited: Boolean!
  120. # The email address associated with the customer.
  121. email: String
  122. # Whether taxes on the order are estimated.
  123. # This field returns false when taxes on the order are finalized and aren't subject to any changes.
  124. estimatedTaxes: Boolean!
  125. # A list of events associated with the order.
  126. events(
  127. first: Int
  128. after: String
  129. last: Int
  130. before: String
  131. reverse: Boolean = false
  132. sortKey: EventSortKeys = ID
  133. query: String
  134. ): EventConnection!
  135. # Whether there are line items that can be fulfilled.
  136. # This field returns false when the order has no fulfillable line items.
  137. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  138. fulfillable: Boolean!
  139. # A list of fulfillment orders for the order.
  140. fulfillmentOrders(
  141. displayable: Boolean = false
  142. first: Int
  143. after: String
  144. last: Int
  145. before: String
  146. reverse: Boolean = false
  147. query: String
  148. ): FulfillmentOrderConnection!
  149. # List of shipments for the order.
  150. fulfillments(first: Int): [Fulfillment!]!
  151. # Whether the order has been paid in full.
  152. fullyPaid: Boolean!
  153. # Whether the merchant added a timeline comment to the order.
  154. hasTimelineComment: Boolean!
  155. # A globally-unique identifier.
  156. id: ID!
  157. # The ID of the corresponding resource in the REST Admin API.
  158. legacyResourceId: UnsignedInt64!
  159. # A list of the order's line items.
  160. lineItems(
  161. first: Int
  162. after: String
  163. last: Int
  164. before: String
  165. reverse: Boolean = false
  166. ): LineItemConnection!
  167. # List of localization extensions for the resource.
  168. localizationExtensions(
  169. countryCodes: [CountryCode!]
  170. purposes: [LocalizationExtensionPurpose!]
  171. first: Int
  172. after: String
  173. last: Int
  174. before: String
  175. reverse: Boolean = false
  176. ): LocalizationExtensionConnection!
  177. # Whether the order can be edited by the merchant. For example, canceled orders can’t be edited.
  178. merchantEditable: Boolean!
  179. # A list of reasons why the order can't be edited. For example, "Canceled orders can’t be edited".
  180. merchantEditableErrors: [String!]!
  181. # The application acting as the Merchant of Record for the order.
  182. merchantOfRecordApp: OrderApp
  183. # Returns a metafield by namespace and key that belongs to the resource.
  184. metafield(namespace: String!key: String!): Metafield
  185. # List of metafield definitions.
  186. metafieldDefinitions(
  187. namespace: String
  188. pinnedStatus: MetafieldDefinitionPinnedStatus = ANY
  189. first: Int
  190. after: String
  191. last: Int
  192. before: String
  193. reverse: Boolean = false
  194. sortKey: MetafieldDefinitionSortKeys = ID
  195. query: String
  196. ): MetafieldDefinitionConnection!
  197. # List of metafields that belong to the resource.
  198. metafields(
  199. namespace: String
  200. first: Int
  201. after: String
  202. last: Int
  203. before: String
  204. reverse: Boolean = false
  205. ): MetafieldConnection!
  206. # The unique identifier for the order that appears on the order page in the Shopify admin and the order status page.
  207. # For example, "#1001", "EN1001", or "1001-A".
  208. # This value isn't unique across multiple stores.
  209. name: String!
  210. # The net payment for the order, based on the total amount received minus the total amount refunded, in shop and presentment currencies.
  211. netPaymentSet: MoneyBag!
  212. # A list of line items that can't be fulfilled.
  213. # For example, tips and fully refunded line items can't be fulfilled.
  214. # For a more granular view of the fulfillment status, refer to the FulfillmentOrder object.
  215. nonFulfillableLineItems(
  216. first: Int
  217. after: String
  218. last: Int
  219. before: String
  220. reverse: Boolean = false
  221. ): LineItemConnection!
  222. # The contents of the note associated with the order.
  223. note: String
  224. # The total amount of duties before returns, in shop and presentment currencies.
  225. # Returns null if duties aren't applicable.
  226. originalTotalDutiesSet: MoneyBag
  227. # The total price of the order at the time of order creation, in shop and presentment currencies.
  228. originalTotalPriceSet: MoneyBag!
  229. # The payment collection details for the order.
  230. paymentCollectionDetails: OrderPaymentCollectionDetails!
  231. # A list of the names of all payment gateways used for the order.
  232. # For example, "Shopify Payments" and "Cash on Delivery (COD)".
  233. paymentGatewayNames: [String!]!
  234. # The payment terms associated with the order.
  235. paymentTerms: PaymentTerms
  236. # The phone number associated with the customer.
  237. phone: String
  238. # The fulfillment location that was assigned when the order was created.
  239. # Use the FulfillmentOrder object for up to date fulfillment location information.
  240. physicalLocation: Location
  241. # The payment CurrencyCode of the customer for the order.
  242. presentmentCurrencyCode: CurrencyCode!
  243. # Returns a private metafield by namespace and key that belongs to the resource.
  244. privateMetafield(namespace: String!key: String!): PrivateMetafield
  245. # List of private metafields that belong to the resource.
  246. privateMetafields(
  247. namespace: String
  248. first: Int
  249. after: String
  250. last: Int
  251. before: String
  252. reverse: Boolean = false
  253. ): PrivateMetafieldConnection!
  254. # The date and time when the order was processed.
  255. # This date and time might not match the date and time when the order was created.
  256. processedAt: DateTime!
  257. # The publication that the order was created from.
  258. publication: Publication
  259. # The purchasing entity for the order.
  260. purchasingEntity: PurchasingEntity
  261. # The difference between the suggested and actual refund amount of all refunds that have been applied to the order. A positive value indicates a difference in the merchant's favor, and a negative value indicates a difference in the customer's favor.
  262. refundDiscrepancySet: MoneyBag!
  263. # Whether the order can be refunded.
  264. refundable: Boolean!
  265. # A list of refunds that have been applied to the order.
  266. refunds(first: Int): [Refund!]!
  267. # The URL of the source that the order originated from, if found in the domain registry.
  268. registeredSourceUrl: URL
  269. # Whether the order has shipping lines or at least one line item on the order that requires shipping.
  270. requiresShipping: Boolean!
  271. # Whether any line item on the order can be restocked.
  272. restockable: Boolean!
  273. # The fraud risk level of the order.
  274. riskLevel: OrderRiskLevel!
  275. # A list of risks associated with the order.
  276. risks(first: Int): [OrderRisk!]!
  277. # The mailing address of the customer.
  278. shippingAddress: MailingAddress
  279. # A summary of all shipping costs on the order.
  280. shippingLine: ShippingLine
  281. # A list of the order's shipping lines.
  282. shippingLines(
  283. first: Int
  284. after: String
  285. last: Int
  286. before: String
  287. reverse: Boolean = false
  288. ): ShippingLineConnection!
  289. # A unique POS or third party order identifier.
  290. # For example, "1234-12-1000" or "111-98567-54". The receipt_number field is derived from this value for POS orders.
  291. sourceIdentifier: String
  292. # The sum of the quantities for all line items that contribute to the order's subtotal price.
  293. subtotalLineItemsQuantity: Int!
  294. # The sum of the prices for all line items after discounts and before returns, in shop and presentment currencies.
  295. # If taxesIncluded is true, then the subtotal also includes tax.
  296. subtotalPriceSet: MoneyBag
  297. # A suggested refund for the order.
  298. suggestedRefund(
  299. shippingAmount: Money
  300. refundShipping: Boolean
  301. refundLineItems: [RefundLineItemInput!]
  302. refundDuties: [RefundDutyInput!]
  303. suggestFullRefund: Boolean = false
  304. ): SuggestedRefund
  305. # A comma separated list of tags associated with the order. Updating tags overwrites
  306. # any existing tags that were previously added to the order. To add new tags without overwriting
  307. # existing tags, use the tagsAdd mutation.
  308. tags: [String!]!
  309. # A list of all tax lines applied to line items on the order, before returns.
  310. # Tax line prices represent the total price for all tax lines with the same rate and title.
  311. taxLines: [TaxLine!]!
  312. # Whether taxes are included in the subtotal price of the order.
  313. taxesIncluded: Boolean!
  314. # Whether the order is a test.
  315. # Test orders are made using the Shopify Bogus Gateway or a payment provider with test mode enabled.
  316. # A test order cannot be converted into a real order and vice versa.
  317. test: Boolean!
  318. # The authorized amount that is uncaptured or undercaptured, in shop and presentment currencies.
  319. # This amount isn't adjusted for returns.
  320. totalCapturableSet: MoneyBag!
  321. # The total amount discounted on the order before returns, in shop and presentment currencies.
  322. # This includes both order and line level discounts.
  323. totalDiscountsSet: MoneyBag
  324. # The total amount not yet transacted for the order, in shop and presentment currencies.
  325. # A positive value indicates a difference in the merchant's favor (payment from customer to merchant) and a negative value indicates a difference in the customer's favor (refund from merchant to customer).
  326. totalOutstandingSet: MoneyBag!
  327. # The total price of the order, before returns, in shop and presentment currencies.
  328. # This includes taxes and discounts.
  329. totalPriceSet: MoneyBag!
  330. # The total amount received from the customer before returns, in shop and presentment currencies.
  331. totalReceivedSet: MoneyBag!
  332. # The total amount that was refunded, in shop and presentment currencies.
  333. totalRefundedSet: MoneyBag!
  334. # The total amount of shipping that was refunded, in shop and presentment currencies.
  335. totalRefundedShippingSet: MoneyBag!
  336. # The total shipping amount before discounts and returns, in shop and presentment currencies.
  337. totalShippingPriceSet: MoneyBag!
  338. # The total tax amount before returns, in shop and presentment currencies.
  339. totalTaxSet: MoneyBag
  340. # The sum of all tip amounts for the order, in shop and presentment currencies.
  341. totalTipReceivedSet: MoneyBag!
  342. # The total weight of the order before returns, in grams.
  343. totalWeight: UnsignedInt64
  344. # A list of transactions associated with the order.
  345. transactions(
  346. first: Int
  347. capturable: Boolean
  348. manuallyResolvable: Boolean
  349. ): [OrderTransaction!]!
  350. # Whether no payments have been made for the order.
  351. unpaid: Boolean!
  352. # The date and time when the order was modified last.
  353. updatedAt: DateTime!
  354. }
  355. # An order that a merchant creates on behalf of a customer. Draft orders are useful for merchants that need to do the following tasks:
  356. #
  357. # Create new orders for sales made by phone, in person, by chat, or elsewhere. When a merchant accepts payment for a draft order, an order is created.
  358. # Send invoices to customers to pay with a secure checkout link.
  359. # Use custom items to represent additional costs or products that aren't displayed in a shop's inventory.
  360. # Re-create orders manually from active sales channels.
  361. # Sell products at discount or wholesale rates.
  362. # Take pre-orders.
  363. # Save an order as a draft and resume working on it later.
  364. # For Draft orders in multiple currencies presentment_money is the source of truth for what a customer is going to be charged and shop_money is an estimate of what the merchant might receive in their local currency.
  365. #
  366. # Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.
  367. type DraftOrder
  368. implements CommentEventSubject&HasEvents&HasLocalizationExtensions&HasMetafields&LegacyInteroperability&Navigable&Node
  369. @key(fields: "id") {
  370. # The order-level discount applied to the draft order.
  371. appliedDiscount: DraftOrderAppliedDiscount
  372. # The billing address of the customer.
  373. billingAddress: MailingAddress
  374. # Whether the billing address matches the shipping address.
  375. billingAddressMatchesShippingAddress: Boolean!
  376. # The date and time when the draft order converted to a new order,
  377. # and the draft order's status changed to Completed.
  378. completedAt: DateTime
  379. # The date and time when the draft order was created in Shopify.
  380. createdAt: DateTime!
  381. # The three letter code for the currency of the store at the time of the most recent update to the draft order.
  382. currencyCode: CurrencyCode!
  383. # The custom information added to the draft order on behalf of the customer.
  384. customAttributes: [Attribute!]!
  385. # The customer who will be sent an invoice for the draft order, if there is one.
  386. customer: Customer
  387. # A default cursor that returns the single next record, sorted ascending by ID.
  388. defaultCursor: String!
  389. # The email address of the customer, which is used to send notifications.
  390. email: String
  391. # The list of events associated with the draft order.
  392. events(
  393. first: Int
  394. after: String
  395. last: Int
  396. before: String
  397. reverse: Boolean = false
  398. sortKey: EventSortKeys = ID
  399. query: String
  400. ): EventConnection!
  401. # Whether the merchant has added timeline comments to the draft order.
  402. hasTimelineComment: Boolean!
  403. # A globally-unique identifier.
  404. id: ID!
  405. # The subject defined for the draft invoice email template.
  406. invoiceEmailTemplateSubject: String!
  407. # The date and time when the invoice was last emailed to the customer.
  408. invoiceSentAt: DateTime
  409. # The link to the checkout, which is sent to the customer in the invoice email.
  410. invoiceUrl: URL
  411. # The ID of the corresponding resource in the REST Admin API.
  412. legacyResourceId: UnsignedInt64!
  413. # The list of the line items in the draft order.
  414. lineItems(
  415. first: Int
  416. after: String
  417. last: Int
  418. before: String
  419. reverse: Boolean = false
  420. ): DraftOrderLineItemConnection!
  421. # The subtotal of the line items and corresponding discounts. The subtotal doesn't include shipping charges, shipping discounts, taxes, or order discounts.
  422. lineItemsSubtotalPrice: MoneyBag!
  423. # List of localization extensions for the resource.
  424. localizationExtensions(
  425. countryCodes: [CountryCode!]
  426. purposes: [LocalizationExtensionPurpose!]
  427. first: Int
  428. after: String
  429. last: Int
  430. before: String
  431. reverse: Boolean = false
  432. ): LocalizationExtensionConnection!
  433. # The name of the selected market.
  434. marketName: String!
  435. # The selected market region country code for the draft order.
  436. marketRegionCountryCode: CountryCode!
  437. # Returns a metafield by namespace and key that belongs to the resource.
  438. metafield(namespace: String!key: String!): Metafield
  439. # List of metafields that belong to the resource.
  440. metafields(
  441. namespace: String
  442. first: Int
  443. after: String
  444. last: Int
  445. before: String
  446. reverse: Boolean = false
  447. ): MetafieldConnection!
  448. # The identifier for the draft order, which is unique within the store. For example, #D1223.
  449. name: String!
  450. # The text from an optional note attached to the draft order.
  451. note2: String
  452. # The order that was created from this draft order.
  453. order: Order
  454. # The associated payment terms for this draft order.
  455. paymentTerms: PaymentTerms
  456. # The phone number assigned to the draft order.
  457. phone: String
  458. # The payment currency of the customer for this draft order.
  459. presentmentCurrencyCode: CurrencyCode!
  460. # Returns a private metafield by namespace and key that belongs to the resource.
  461. privateMetafield(namespace: String!key: String!): PrivateMetafield
  462. # List of private metafields that belong to the resource.
  463. privateMetafields(
  464. namespace: String
  465. first: Int
  466. after: String
  467. last: Int
  468. before: String
  469. reverse: Boolean = false
  470. ): PrivateMetafieldConnection!
  471. # The purchasing entity for the draft order.
  472. purchasingEntity: PurchasingEntity
  473. # Whether the Draft Order is ready and can be completed. Draft Orders
  474. # might have asynchronous operations that can take time to finish.
  475. ready: Boolean!
  476. # The time after which inventory will automatically be restocked.
  477. reserveInventoryUntil: DateTime
  478. # The shipping address of the customer.
  479. shippingAddress: MailingAddress
  480. # The line item that contains the shipping costs.
  481. shippingLine: ShippingLine
  482. # Status of the draft order.
  483. status: DraftOrderStatus!
  484. # The subtotal of the line items and their discounts. The subtotal doesn't include shipping charges, shipping discounts, or taxes.
  485. subtotalPrice: Money!
  486. # A subtotal of the line items and corresponding discounts. The subtotal doesn't include shipping charges, shipping discounts, or taxes.
  487. subtotalPriceSet: MoneyBag!
  488. # A comma separated list of tags associated with the draft order. Updating tags overwrites
  489. # any existing tags that were previously added to the draft order. To add new tags without overwriting
  490. # existing tags, use the tagsAdd mutation.
  491. tags: [String!]!
  492. # Whether the draft order is tax exempt.
  493. taxExempt: Boolean!
  494. # Total amount of taxes charged for each line item and shipping line.
  495. taxLines: [TaxLine!]!
  496. # Whether the line item prices include taxes.
  497. taxesIncluded: Boolean!
  498. # The total discounts for this draft order.
  499. totalDiscountsSet: MoneyBag!
  500. # The total price of line items for this draft order.
  501. totalLineItemsPriceSet: MoneyBag!
  502. # The total amount of the draft order, including taxes, shipping charges, and discounts.
  503. totalPrice: Money!
  504. # The total amount of the draft order including taxes, shipping charges, and discounts.
  505. totalPriceSet: MoneyBag!
  506. # The total shipping charge for the draft order.
  507. totalShippingPrice: Money!
  508. # The total shipping charge for the draft order.
  509. totalShippingPriceSet: MoneyBag!
  510. # The total amount of taxes for the draft order.
  511. totalTax: Money!
  512. # The total amount of taxes for the draft order.
  513. totalTaxSet: MoneyBag!
  514. # The total weight in grams of the draft order.
  515. totalWeight: UnsignedInt64!
  516. # The date and time when the draft order was last changed.
  517. # The format is YYYY-MM-DD HH:mm:ss. For example, 2016-02-05 17:04:01.
  518. updatedAt: DateTime!
  519. # Whether the draft order will be visible to the customer on the self-serve portal.
  520. visibleToCustomer: Boolean!
  521. }
  522. extend type App @key(fields: "id") {
  523. id: ID! @external
  524. }
  525. extend type Market @key(fields: "id") {
  526. id: ID! @external
  527. }
  528. extend type Customer @key(fields: "id") {
  529. id: ID! @external
  530. }
  531. extend type FulfillmentService @key(fields: "id") {
  532. id: ID! @external
  533. }
  534. extend type MarketWebPresence @key(fields: "id") {
  535. id: ID! @external
  536. }
  537. extend type Product @key(fields: "id") {
  538. id: ID! @external
  539. }
  540. extend type ProductVariant @key(fields: "id") {
  541. id: ID! @external
  542. }
  543. extend type InventoryLevel @key(fields: "id") {
  544. id: ID! @external
  545. }
  546. extend type Collection @key(fields: "id") {
  547. id: ID! @external
  548. }