Skip to main content

cartGiftCardCodesUpdateDefault

Creates a function that accepts an array of strings and adds the gift card codes to a cart

Updates (replaces) gift card codes in the cart.

To add codes without replacing, use cartGiftCardCodesAdd (API 2025-10+).

Anchor to options
options
required

Cart query options including storefront client and cart fragment.

  • Function accepting gift card codes array and optional parameters.

Was this page helpful?