idstring | Assigned by the Voucherify API, identifies the voucher.Example:v_mkZN9v7vjYUadXnHrMza8W5c34fE5KiV |
codestring | A code that identifies a voucher. Pattern can use all letters of the English alphabet, Arabic numerals, and special characters.Example:WVPblOYX |
campaignstring | A unique campaign name, identifies the voucher’s parent campaign.Example:Loyalty Card Campaign |
campaign_idstring | Assigned by the Voucherify API, identifies the voucher’s parent campaign.Example:camp_FNYR4jhqZBM9xTptxDGgeNBV |
categorystring | Tag defining the category that this voucher belongs to. |
category_idstring | Unique category ID assigned by Voucherify.Example:cat_0bb343dee3cdb5ec0c |
categoriesarray | Contains details about the category.Array of Category |
typestring | Defines the type of the voucher.Available values: LOYALTY_CARD |
discountobject, null | Object representing discount parameters. Child attributes are present only if type is DISCOUNT_VOUCHER. Defaults to null. |
giftobject, null | Object representing gift parameters. Child attributes are present only if type is GIFT_VOUCHER. Defaults to null. |
loyalty_cardobject | Object representing loyalty card parameters. Child attributes are present only if type is LOYALTY_CARD.Attributes Descriptionpointsinteger
Total number of points added to the loyalty card over its lifespan.
Example:
7000
balanceinteger
Points available for reward redemption. This is calculated as follows: balance = points - expired_points - subtracted_points - redemption.redeemed_points.
Example:
6970
next_expiration_datestring
The next closest date when the next set of points are due to expire.
Example:
2023-05-30
next_expiration_pointsinteger
The amount of points that are set to expire next. |
start_datestring | Activation timestamp defines when the code starts to be active in ISO 8601 format. Voucher is inactive before this date.Example:2021-12-01T00:00:00.000Z |
expiration_datestring | Expiration timestamp defines when the code expires in ISO 8601 format. Voucher is inactive after this date.Example:2021-12-31T00:00:00.000Z |
| validity_timeframe | See: Validity Timeframe |
| validity_day_of_week | See: Validity Day Of Week |
| validity_hours | See: Validity Hours |
activeboolean | A flag to toggle the voucher on or off. You can disable a voucher even though it’s within the active period defined by the start_date and expiration_date.- true indicates an active voucher |