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.
:::
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 |