Voucher - Liquid Object Reference
On this page
Description
The Voucher object contains information about a Voucher that can be used as payment.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Voucher__c Salesforce object. A theme writes it as voucher.
| Liquid attribute | Salesforce field |
|---|---|
code |
s_c__Code__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from voucher.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
code |
String | Returns Voucher code |
current_balance |
Number | Returns the current balance of this Voucher |
expires_at |
Timestamp | Returns the timestamp for when this Voucher expires |
id |
String | Returns the unique id of this Voucher |
orders |
List[Order] | Returns a list of Orders placed with this Voucher |
requires_activation? |
Boolean | Returns true when the voucher needs to be activated |
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.