App reviews, troubleshooting, and recommendations
I'm using the Shopify GraphQL API to show a list of gift cards associated with a user on their dashboard, where they can view both purchased and received gift cards.
Currently, we're making two separate requests:
Here’s the query we're using for purchased gift cards:
query { giftCards(first: 50, query: "customer_id:123", reverse: true, sortKey: CREATED_AT) { edges { node { balance { amount currencyCode } createdAt customer { email firstName id } deactivatedAt enabled expiresOn id initialValue { amount currencyCode } lastCharacters maskedCode recipientAttributes { message recipient { email firstName id lastName } } } } } }
Is there a way to combine these into a single query or streamline this process so we can retrieve both purchased and received gift cards in a more efficient way?
Thanks in advance!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025