Simplified voucher data.
Name | Type | Description | Notes |
---|---|---|---|
id | String | A unique identifier that represents the voucher assigned by Voucherify. | [optional] |
code | String | Voucher code. | |
gift | Gift | [optional] | |
discount | Discount | [optional] | |
loyaltyCard | SimpleLoyaltyCard | [optional] | |
type | TypeEnum | Type of the voucher. | |
campaign | String | Campaign name. | [optional] |
campaignId | String | Campaign unique ID. | [optional] |
isReferralCode | Boolean | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
holderId | String | Unique customer ID of the campaign owner. | [optional] |
referrerId | String | Unique identifier of the referrer assigned by Voucherify. | [optional] |
categoryId | String | Unique identifier of the category that this voucher belongs to. | [optional] |
categories | List<Category> | Contains details about the category. | [optional] |
active | Boolean | Shows whether the voucher is on or off. `true` indicates an active voucher and `false` indicates an inactive voucher. | [optional] |
createdAt | OffsetDateTime | Timestamp representing the date and time when the order was created. Timestamp is presented in the ISO 8601 format. | |
updatedAt | OffsetDateTime | Timestamp representing the date and time when the voucher was updated in the ISO 8601 format. | [optional] |
redemption | SimpleVoucherRedemption | [optional] | |
startDate | OffsetDateTime | Activation timestamp defines when the code starts to be active in ISO 8601 format. Voucher is inactive before this date. | [optional] |
expirationDate | OffsetDateTime | Expiration timestamp defines when the code expires in ISO 8601 format. Voucher is inactive after this date. | [optional] |
metadata | Object | A set of custom key/value pairs that you can attach to a voucher. The metadata object stores all custom attributes assigned to the voucher. | [optional] |
_object | ObjectEnum | The type of the object represented by JSON. |
Name | Value |
---|---|
DISCOUNT_VOUCHER | "DISCOUNT_VOUCHER" |
LOYALTY_CARD | "LOYALTY_CARD" |
GIFT_VOUCHER | "GIFT_VOUCHER" |
Name | Value |
---|---|
VOUCHER | "voucher" |