set-shipping-address.graphql 1.2 KB

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