Skip to main content
Anchor to cartDeliveryMethodsAdd

cartDeliveryMethodsAdd

mutation

Adds delivery methods to a Cart. A shipping entry adds delivery addresses, as cartDeliveryAddressesAdd does. A pickup entry sets the pickup location of the cart. A cart has at most one pickup location: use cartDeliveryMethodsUpdate to change it. On a cart that has delivery addresses, add new addresses and a pickup location in separate requests.

The input has at most one entry of each type. The lines of the cart keep their delivery methods. Every destination must be in the same country as the other destinations of the cart.

•ID!
required

The ID of the cart.

•[CartDeliveryMethodInput!]!
required

The delivery methods to add, at most one of each type.

The input must not contain more than 250 values.

Show input fields

Was this section helpful?

Anchor to CartDeliveryMethodsAddPayload returnsCartDeliveryMethodsAddPayload returns

•Cart

The updated cart.

Show fields
•[CartUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields
•[CartWarning!]!
non-null

A list of warnings that occurred during the mutation.

Show fields

Was this section helpful?