Anchor to cartGiftCardCodesAddcart
mutationcart Gift Card Codes Add
Adds gift card codes to a Cart without replacing any codes already applied. Gift card codes are case-insensitive.
To replace all gift card codes instead of adding to them, use .
Anchor to Arguments
Arguments
- cartId (ID!)
- giftCardCodes ([String!]!)
- Anchor to cartIdcart•ID!
Id required The ID of the cart.
- Anchor to giftCardCodesgift•[String!]!
Card Codes required The case-insensitive gift card codes to add.
The input must not contain more than
250values.
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?