--- title: CartGiftCardCodesAddPayload - Storefront API description: Return type for `cartGiftCardCodesAdd` mutation. api_version: 2026-04 api_name: storefront type: payload api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/latest/payloads/CartGiftCardCodesAddPayload md: >- https://shopify.dev/docs/api/storefront/latest/payloads/CartGiftCardCodesAddPayload.md --- # Cart​Gift​Card​Codes​Add​Payload payload Return type for `cartGiftCardCodesAdd` mutation. ## Fields * cart [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart) The updated cart. * user​Errors [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError) non-null The list of errors that occurred from executing the mutation. * warnings [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning) non-null A list of warnings that occurred during the mutation. *** ## Mutations with this payload * [cart​Gift​Card​Codes​Add](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesAdd) mutation Adds gift card codes to a [`Cart`](https://shopify.dev/docs/api/storefront/2026-04/objects/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 [`cartGiftCardCodesUpdate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/cartGiftCardCodesUpdate). * cart​Id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required ### Arguments The ID of the cart. * gift​Card​Codes [\[String!\]!](https://shopify.dev/docs/api/storefront/latest/scalars/String) required The case-insensitive gift card codes to add. The input must not contain more than `250` values. *** *** ## Map ### Mutations with this payload * [cart​Gift​Card​Codes​Add](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesAdd)