Anchor to cartDeliveryAddressesReplacecart
mutationcart Delivery Addresses Replace
Replaces all delivery addresses on a Cart with 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 Arguments
Arguments
- addresses ([CartSelectableAddressInput!]!)
- cartId (ID!)
- 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.- Anchor to cartIdcart•ID!
Id required The ID of the cart.
Was this section helpful?
- 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?