Hi, does anyone know how to get a list of transactions by a specific gift card either by rest or graphql API? The original question is asked here: Gift Card API for transaction history - Graphql Basics And Troubleshooting - Shopify Community
Thanks.
Hi @Andrew_Jaanuu
The giftCard query has a field for transactions
which has a node for id
of the transaction. Would that get you the info you need?
How can I find out the order belonging to those transactions?
From digging into this more, it doesn’t look like the API directly exposes the order ID on the GiftCardTransaction
object. The only workaround I can think of would be to infer the order by matching the transaction’s createdAt
and amount
with the transactions on orders for the customer.