Goal: Display “available vouchers” in a mobile app under a customer’s account page for a custom storefront, ideally via a Shopify API that returns vouchers per customer.
Update: A workaround proposed is to store voucher data on the customer using Shopify metafields. Metafields support multiple data types, built-in validation, and can be rendered via Liquid.
Key terms: Metafields are custom, structured fields attached to Shopify resources (e.g., customers). Liquid is Shopify’s templating language used to display data.
Open questions from the requester:
How to automatically add newly issued vouchers to the customer’s metafield.
How to manage redemption status and expired codes within the metafield data.
Whether metafields work for vouchers targeted to specific customer segments.
Status: No direct API solution was confirmed; metafields were suggested as the current approach. The thread remains unresolved pending guidance on automation, redemption/expiry handling, and segment targeting.
@ShopifyDevSup Thanks for the solution I need some more help with the following.
1- How we add voucher automatically to metafield ?
2- How we handle redemption or expired codes?
3- Will metafield work when we create voucher for specific customer segments?