Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Providing Omnichannel Giftcards to customers

Providing Omnichannel Giftcards to customers

RobinKZ
Shopify Partner
7 1 0

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?

 

Replies 0 (0)