Get GiftCards information in orders querry

Topic summary

A user is seeking a way to retrieve gift card information directly through the GraphQL orders query, rather than making a separate giftCard(id) query after obtaining the gift card ID from the order.

Current Limitation:

  • Gift card details are not available directly through the order resource in GraphQL.

Existing Workaround:

  • The receiptJson field returns the gift card ID when a gift card is used, which can then be queried separately.

Outstanding Request:

  • Another user requests enhanced access to purchased gift card information from either the order or fulfillments query for invoice generation purposes.
  • Alternative suggestion: Enable filtering the GiftCards query by order.id.

The discussion remains open with no resolution or timeline provided for adding this functionality to the orders query.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Hi,
I wanted to know if there is a way to get a giftcard information using the orders querry with GrapQL.

I know that I can get a gift card info by getting its ID on the order and then making a giftCard(id: “”) querry, but I don’t see why I can’t get this information directly in the orders querry ?

Hey @Nolan_V ,

Thanks for sharing that. It’s a great observation as gift card details aren’t currently available through the order resource.

As a workaround, when a gift card is used, the receiptJson field will return the gift card ID that you can then use to query the gift card.

Hope that helps!

  • Kyle G.
1 Like

Hi, will there soon be a way to get more information about a purchased gift card from the order GraphQL query? Or at least from the fulfilments query?

We need this in order to generate an invoice for the gift card sale — we don’t need any information about whether the card has been used.

Or, for example, could it be made possible to filter the GiftCards query by the order.id?

Thanks in advance