Storefront API Cart now supports applying Gift Cards
API
Effective April 09, 2024
As of version 2024-07 of the GraphQL Storefront API, Cart supports adding and querying for Gift Cards.
Updating Gift Cards can be achieved in two ways:
- When creating a cart - adding the CartInput
giftCardCodes
property.
- After a cart is created - performing the cartUpdateGiftCardCodes
mutation.
You can also query the cart for applied Gift Cards using the appliedGiftCards
property.