A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi, we want to be able to allow Shopify Gift Cards to be used in store. We're on our own bespoke POS.
We need to be able to issue/sale Gift Cards, that is fine using this:
https://shopify.dev/api/admin-graphql/2022-10/mutations/giftCardCreate
We need to be able to check the balance of a Gift Card or consume it.
Which is where the problem is, the only ways to query a Gift Card are these:
https://shopify.dev/api/admin-graphql/2022-10/queries/giftCard
https://shopify.dev/api/admin-graphql/2022-10/queries/giftCards
First one doesn't work as it requires the ID, second one, we could potentially query by the "lastCharacters" characters, but that does allow for overlap of multiple Gift Cards, querying by the "Code" is it possible.
What could we do to locate a Gift Card by it's original code the customer has?