Update Cart
Use the updateCart mutation to update cart properties.
Mutation
updateCart(input: UpdateCartInput!): Cart!UpdateCartInput
| Argument | Type | Description |
|---|---|---|
id | ID! | The id of the Cart you want to update |
currency | CurrencyInput | Update the cart currency |
email | String | Update the email associated with the cart |
notes | String | Let customer save notes for the cart |
metadata | Json | Custom metadata object for the cart |
Example
mutation {
updateCart(
input: {
id: "ck5r8d5b500003f5o2aif0v2b"
currency: { code: USD }
email: "[email protected]"
notes: "These are my order notes"
}
) {
id
currency {
code
}
email
notes
}
}