Get GiftCards information in orders querry

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