set-shipping-address.graphql 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. mutation SetShippingAddress($address: CreateAddressInput!, $customer: CreateCustomerInput!) {
  2. setOrderShippingAddress(input: $address) {
  3. ...Cart
  4. ... on Order {
  5. shippingAddress {
  6. ...OrderAddress
  7. }
  8. }
  9. }
  10. setCustomerForOrder(input: $customer) {
  11. ... on Order {
  12. id
  13. customer {
  14. id
  15. emailAddress
  16. firstName
  17. lastName
  18. }
  19. }
  20. }
  21. }
  22. fragment Cart on Order {
  23. id
  24. code
  25. state
  26. active
  27. lines {
  28. id
  29. featuredAsset {
  30. id
  31. preview
  32. name
  33. }
  34. unitPrice
  35. unitPriceWithTax
  36. quantity
  37. linePriceWithTax
  38. productVariant {
  39. id
  40. name
  41. }
  42. discounts {
  43. amountWithTax
  44. description
  45. adjustmentSource
  46. type
  47. }
  48. }
  49. subTotal
  50. subTotalWithTax
  51. total
  52. totalWithTax
  53. shipping
  54. shippingLines {
  55. shippingMethod {
  56. id
  57. code
  58. description
  59. }
  60. }
  61. total
  62. discounts {
  63. amountWithTax
  64. description
  65. adjustmentSource
  66. type
  67. }
  68. }
  69. fragment OrderAddress on OrderAddress {
  70. fullName
  71. company
  72. streetLine1
  73. streetLine2
  74. city
  75. province
  76. postalCode
  77. country
  78. phoneNumber
  79. }