Accessing custom data in gift card email template

New Member
2 0 1

Hi guys, I'm having a little issue with gift card email templates. Currently I'm using Shopify's admin API to create gift cards on Shopify when customer purchases gift cards from the store because I need to control the gift card code instead of using Shopify's default random characters. However, doing so means the created gift card will not be attached to any order and consequently wouldn't have access to any of the line item properties in the gift card email template. Is there a way around this so that it is possible to send customised gift card email (e.g. custom gift card message) when the gift card is created via the API?