Requires read_gift_cards access scope.

Returns a gift card resource by ID.


Anchor to id
id
required

The ID of the GiftCard to return.


Was this section helpful?

Anchor to GiftCard
GiftCard
Access requirements

Represents an issued gift card.


Was this section helpful?
Get a gift card by ID
Hide code
DescriptionCopy
query {
  giftCard(id: "gid://shopify/GiftCard/411106674") {
    balance {
      amount
      currencyCode
    }
  }
}
Hide code
Response
JSON
{
  "giftCard": {
    "balance": {
      "amount": "25.0",
      "currencyCode": "USD"
    }
  }
}