Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (34 loc) · 4.03 KB

VouchersEnableResponseBody.md

File metadata and controls

37 lines (34 loc) · 4.03 KB

VoucherifySdk::VouchersEnableResponseBody

Properties

Name Type Description Notes
id String Assigned by the Voucherify API, identifies the voucher. [optional]
code String A code that identifies a voucher. Pattern can use all letters of the English alphabet, Arabic numerals, and special characters. [optional]
campaign String A unique campaign name, identifies the voucher's parent campaign. [optional]
campaign_id String Assigned by the Voucherify API, identifies the voucher's parent campaign. [optional]
category String Tag defining the category that this voucher belongs to. Useful when listing vouchers using the List Vouchers endpoint. [optional]
category_id String Unique category ID assigned by Voucherify. [optional]
categories Array<Category> Contains details about the category. [optional]
type String Defines the type of the voucher. [optional]
discount Discount [optional]
gift VoucherGift [optional]
loyalty_card VoucherLoyaltyCard [optional]
start_date Time Activation timestamp defines when the code starts to be active in ISO 8601 format. Voucher is inactive before this date. [optional]
expiration_date Time Expiration timestamp defines when the code expires in ISO 8601 format. Voucher is inactive after this date. [optional]
validity_timeframe VoucherValidityTimeframe [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]
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]
assets VoucherAssets [optional]
is_referral_code Boolean Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. [optional]
created_at Time Timestamp representing the date and time when the voucher was created in ISO 8601 format. [optional]
updated_at Time Timestamp representing the date and time when the voucher was last updated in ISO 8601 format. [optional]
holder_id String Unique customer ID of voucher owner. [optional]
holder SimpleCustomer [optional]
object String The type of object represented by JSON. Default is `voucher`. [optional][default to 'voucher']
distributions Array<Object> [optional]
deleted Boolean Flag indicating whether this voucher is deleted. [optional]
validation_rules_assignments ValidationRulesAssignmentsList [optional]
publish VoucherPublish [optional]
redemption VoucherRedemption [optional]