Skip to main content

Gift Cards API

The Gift Cards API provides read-only access to the gift cards applied to an order on the Order status page. Use this API to display the masked gift card code, amount applied, and remaining balance for each card.

Gift card 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.

  • 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 shopify global object provides the gift cards applied to the order. Access the following properties on shopify to read which gift cards were used, how much was applied, and the remaining balance.

Anchor to appliedGiftCards
appliedGiftCards
<[]>
required

The gift cards that were applied to the order. Each gift card includes the last four characters of the code, the amount used for this order, and the remaining balance.


  • Show gift cards alongside other payment methods: Gift cards are applied before other payment methods. Display gift card information in your payment summary to give buyers a complete view of how their order was paid.

  • The full gift card code is never exposed. Only the last four characters are available through lastCharacters.

Was this page helpful?