Anchor to CartDeliveryAddressesReplacePayloadCart
payloadCart Delivery Addresses Replace Payload
Return type for mutation.
Anchor to FieldsFields
- cart (Cart)
- userErrors ([CartUserError!]!)
- warnings ([CartWarning!]!)
- Anchor to cartcart•Cart
The updated cart.
- Anchor to userErrorsuser•[Cart
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to warningswarnings•[Cart
Warning!]! non-null A list of warnings that occurred during the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- cartDeliveryAddressesReplace (CartDeliveryAddressesReplacePayload)
- •mutation
Replaces all delivery addresses on a
Cartwith a new set of addresses in a single operation. Unlike, which modifies existing addresses, this mutation removes all current addresses and sets the provided list as the new delivery addresses.One address can be marked as selected, and each address can be flagged for one-time use or configured with a specific validation strategy.
- Anchor to cartIdcart•ID!
Id required The ID of the cart.
- Anchor to addressesaddresses•[Cart
Selectable Address Input!]! required A list of delivery addresses to replace on the cart.
The input must not contain more than
250values.
Arguments
Was this section helpful?