Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Gift Cards API

The Gift Cards API provides the gift cards applied to the order, including the amount used and remaining balance. Use it to display gift card payment details or summarize gift card usage on the Order status page.

  • Display applied gift cards: Show the buyer which gift cards were used for the order, identified by the last four characters of each code.
  • Show amounts used: Display how much of each gift card was applied to the order total.
  • Show remaining balances: Display the remaining balance on each gift card after the order was placed.

The Gift Cards API object provides the gift cards applied to the order. Access the following properties on the API object to read gift card data.

Anchor to appliedGiftCards
appliedGiftCards
StatefulRemoteSubscribable<[]>
required

Gift cards that have been applied to the order. Each entry includes the amount used and the remaining balance.


  • Only show the last four characters: The lastCharacters property provides a safe identifier for display. Don't attempt to display or store full gift card codes.
  • Show remaining balance: Display the balance alongside the amountUsed so buyers know how much is left on their gift card.

  • The full gift card code is never exposed. Only the last four characters are available through lastCharacters.
  • The balance reflects the remaining amount at the time the order was placed. It doesn't update if the gift card is used for subsequent purchases.

Was this page helpful?