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!
- Set up a regular product in Shopify admin (not gift card officially).
- Customer purchases “gift card” product.
- Webhook shoots all completed orders to my private or custom app.
- My app checks the order to see if it includes this specific “gift card” product (not really a gift card).
- 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