Tags:
- Storefront GraphQL API
- 2026-01
Storefront API now returns errors when adding a gift card to a cart with missing or invalid recipient details
As of API version 2026-01, the Storefront API returns a error when adding a gift card to a cart with missing or invalid recipient details, such as in this example.
Previously, when adding a gift card to a cart using either the or mutations, an empty cart and empty would be returned if any of the recipient details were invalid, such as a missing email address. With this change a error is returned for both or mutations, so that you can use the information to surface gift card recipient errors back to the client.
Was this section helpful?