Skip to main content
Anchor to cartGiftCardCodesUpdate

cartGiftCardCodesUpdate

mutation

Updates the gift card codes applied to the cart. Unlike cartGiftCardCodesAdd, which adds codes without replacing existing ones, this mutation sets the gift card codes for the cart. Gift card codes are case-insensitive.

•ID!
required

The ID of the cart.

•[String!]!
required

The case-insensitive gift card codes.

The input must not contain more than 250 values.


Was this section helpful?

Anchor to CartGiftCardCodesUpdatePayload returnsCartGiftCardCodesUpdatePayload returns

•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?