Available Vouchers

Topic summary

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.

Summarized with AI on February 4. AI used: gpt-5.

We Have an mobile app.We want to show “available vouchers” under customer account’s page.

To list these vouchers.Is there any Shopify API, which could return us the “available vouchers” for a specific customer?

If not, can you suggest another workaround?

Hi @Tuseef :waving_hand:

One option would be to use the metafield object on customers. Metafields can be a variety of different types, and have have built-in validation and Liquid support as well!

Hope that helps!

1 Like

@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?