| Name | Type | Description | Notes |
|---|---|---|---|
| code | String | Code that identifies a voucher. The pattern can use all the letters of the English alphabet, Arabic numerals, and special characters. Pass this attribute in the request body to create a distinct code. Otherwise, either use the `code_config` object to set the rules that the Voucherify API will use to create a random code, or don't pass any code and Voucherify will generate a random code. | [optional] |
| campaign | String | Identifies the voucher's parent campaign using a unique campaign name. | [optional] |
| campaign_id | String | Identifies the voucher's parent campaign using a unique campaign ID assigned by the Voucherify API. | [optional] |
| category | String | The name of the category that this voucher belongs to. Useful when listing vouchers with the List Vouchers endpoint. | [optional] |
| category_id | String | Unique identifier assigned by Voucherify to the name of the category that this voucher belongs to. Useful when listing vouchers with the List Vouchers endpoint. | [optional] |
| start_date | Time | Start date defines when the code starts to be active. Activation timestamp is presented in the ISO 8601 format. Voucher is inactive before this date. | [optional] |
| expiration_date | Time | Expiration date defines when the code expires. Expiration timestamp is presented in the ISO 8601 format. Voucher is inactive after this date. | [optional] |
| validity_timeframe | ValidityTimeframe | [optional] | |
| validity_day_of_week | Array<Integer> | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
| validity_hours | ValidityHours | [optional] | |
| active | Boolean | 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 - `false` indicates an inactive voucher | [optional] |
| additional_info | String | An optional field to keep any extra textual information about the code such as a code description and details. | [optional] |
| metadata | Object | The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. | [optional] |
| validation_rules | Array<String> | Array containing the ID of the validation rule associated with the voucher. | [optional] |
| redemption | VouchersCreateRequestBodyRedemption | [optional] | |
| type | String | [optional] | |
| loyalty_card | SimpleLoyaltyCard | [optional] | |
| code_config | CodeConfig | [optional] | |
| gift | Gift | [optional] | |
| discount | Discount | [optional] |