{"title":"VoucherProvider - Liquid Object Reference","slug":"voucher-provider-liquid-object-reference","url":"https://support.storeconnect.com/articles/voucher-provider-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/voucher-provider-liquid-object-reference.md","subtitle":null,"summary":"The VoucherProvider object represents a way vouchers can be applied at checkout: StoreConnect vouchers, or an external provider such as Vii gift cards. Use it to render one apply form per provider in the checkout vouchers area.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, VoucherProvider, voucher provider, vii, gift card, checkout vouchers, template, storeconnect","last_modified":"2026-10-16T00:13:52+0000","body_markdown":"## Description\n\nThe VoucherProvider object represents a way vouchers can be applied at checkout: StoreConnect vouchers, or an external provider such as Vii gift cards.\n\n`current_store.voucher_providers` lists only the providers the store can offer. StoreConnect vouchers are listed when the store has at least one voucher that has not expired. Vii is listed when the store has an active Vii payment provider whose **Channels** include web, or are blank.\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `name` | String | Returns the name of this voucher provider: `sc` for StoreConnect vouchers, `vii` for Vii gift cards |\n| `payment_provider` | [PaymentProvider](payment-provider-liquid-object-reference) | Returns the PaymentProvider backing this voucher provider, or nil for StoreConnect vouchers |\n\n## Example\n\nThe default checkout renders one panel per provider. Pass the provider to the `apply-provider-voucher` form to render that provider's fields.\n\n\n```liquid\n\n{%- for voucher_provider in current_store.voucher_providers %}\n  {% case voucher_provider.name %}\n  {% when \"sc\" %}\n    {% render \"checkout/vouchers/apply_sc\" %}\n  {% when \"vii\" %}\n    {% render \"checkout/vouchers/apply_vii\", provider: voucher_provider %}\n  {% endcase %}\n{%- endfor %}\n```\n\n\n## Available on\n\n- [Store - Liquid Object Reference](store-liquid-object-reference) — `voucher_providers`"}