Re: Available Vouchers

Available Vouchers

Tuseef
Shopify Partner
11 0 2

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?

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1451 238 497

Hi @Tuseef 👋


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!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Tuseef
Shopify Partner
11 0 2

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