Skip to main content
Anchor to CartDeliveryAddressesReplacePayload

CartDeliveryAddressesReplacePayload

payload

Return type for cartDeliveryAddressesReplace mutation.

•Cart

The updated cart.

•[CartUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[CartWarning!]!
non-null

A list of warnings that occurred during the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Replaces all delivery addresses on a Cart with a new set of addresses in a single operation. Unlike cartDeliveryAddressesUpdate, 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.

Arguments

•ID!
required

The ID of the cart.

•[CartSelectableAddressInput!]!
required

A list of delivery addresses to replace on the cart.

The input must not contain more than 250 values.



Was this section helpful?