Is creating gift cards via API the only way to get full codes?

Is creating gift cards via API the only way to get full codes?

jstukey
Shopify Partner
10 0 4

Hi there! I'm wondering if somebody may be able to validate a line of thought I have in regards to a way to handle a gift card need for a client.

 

The goal:
I need to find a way to pass the full gift card code value to a 3rd party POS tool.

 

What I'm thinking:
Since I have learned the only way to get that full code is at the time of creation I have made the assumption that this creation must be done via the api call and not in any way natively within Shopify using a gift card product. Is this correct?

 

With that said, here is my current thought for how to approach this. I am hoping somebody can let me know if it feels right or if I am missing something that could get us there faster!

 

1) Set up a regular product in Shopify admin (not gift card officially).
2) Customer purchases “gift card” product.
3) Webhook shoots all completed orders to my private or custom app.
4) My app checks the order to see if it includes this specific “gift card” product (not really a gift card).
5) If the order does include this "gift card" we use the api (https://shopify.dev/api/admin-rest/2022-04/resources/gift-card#post-gift-cards) to create an actual gift card code that is added to the Shopify admin and sent to the customer (notification via our app? or a way to trigger something through Shopify?).

 

In this scenario since we created the gift card via api, I am assuming we then have the full gift card code and can use it for the 3rd party pos needs - which is the only real goal and reason for the workaround.

 

I'd love to hear feedback if anybody has thoughts!

- J

 

Replies 2 (2)

HilaB
Shopify Partner
47 0 4

Hey @jstukey!

I'm Hila from the Rise.ai team. 

 

Rise offers gift card and loyalty solutions for your Shopify store.

 

With Rise, you can see the full code natively in our dashboard, as well as have extra management capabilities such as adjusting the code's balance and seeing an activity log for each code. 

 

You can check out this video to see how the management side of things work with Rise- 

 

Visit our app page to learn more and get in touch with us!

 

All the best,

Hila

GrackleBird
Shopify Partner
13 1 4

Hi @jstukey , were you able to figure this out? Thanks!