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:Gift 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. Useful when listing vouchers using the List Vouchers endpoint. |
category_idstring | Unique category ID assigned by Voucherify.Example:cat_0bb343dee3cdb5ec0c |
typestring | Defines the type of the voucher.Available values: GIFT_VOUCHER, DISCOUNT_VOUCHER, LOYALTY_CARD |
| discount | See: Discount |
giftobject | Object representing gift parameters. Child attributes are present only if type is GIFT_VOUCHER. Defaults to null.Attributes Descriptionamountinteger
Total gift card income over the lifetime of the card. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for 100.00.

Example:

10000


subtracted\_amountinteger 

Total amount of subtracted credits over the gift card lifetime. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for 100.00.
balanceinteger
Available funds. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
Example:
500
effectstring
Defines how the credits are applied to the customer’s order.
Available values: APPLY_TO_ORDER, APPLY_TO_ITEMS |
loyalty_cardobject | Object representing loyalty card parameters. Child attributes are present only if type is LOYALTY_CARD. Defaults to null.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.
pending_pointsinteger
Shows the number of pending points that will be added to the loyalty card when they are activated automatically or manually.
expired_pointsinteger
Shows the total number of expired points over the lifetime of the loyalty card.
subtracted_pointsinteger
Shows the total number of subtracted points over the lifetime of the loyalty card. |
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, null | 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 |