Loyalty Card Object
Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | ||||||||||||||||||
giftobject , null | Object representing gift parameters. Child attributes are present only if | ||||||||||||||||||
loyalty_cardobject | Object representing loyalty card parameters. Child attributes are present only if
| ||||||||||||||||||
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
| ||||||||||||||||||
additional_infostring | An optional field to keep any extra textual information about the code such as a code description and details. | ||||||||||||||||||
metadataobject | 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. | ||||||||||||||||||
assetsobject | Stores links to images of QR and barcode that correspond to an encrypted voucher code.
| ||||||||||||||||||
is_referral_codeboolean | Flag indicating whether this voucher is a referral code; | ||||||||||||||||||
created_atstring | Timestamp representing the date and time when the voucher was created. The value is shown in the ISO 8601 format. Example:2021-12-22T10:13:06.487Z | ||||||||||||||||||
updated_atstring | Timestamp representing the date and time when the voucher was last updated in ISO 8601 format. Example:2021-12-22T10:14:45.316Z | ||||||||||||||||||
holder_idstring | Unique customer identifier of the redeemable holder. It equals to the customer ID assigned by Voucherify. Example:cust_eWgXlBBiY6THFRJwX45Iakv4 | ||||||||||||||||||
redemptionobject | Stores a summary of redemptions that have been applied to the voucher.
| ||||||||||||||||||
publishobject | This object stores a summary of publish events: an events counter and an endpoint which can be called to return details of each event. A publication is required for loyalty cards and referral codes. This object gets updated whenever a voucher has been published. Publication means assigning a code to a particular customer. Typically, a publication is made by distributing your codes to your customers, e.g. through Export to MailChimp or publish voucher API method.
| ||||||||||||||||||
objectstring | The type of the object represented by JSON. Default is |
Category
Attributes | Description |
---|---|
idstring | Unique category ID assigned by Voucherify. |
namestring | Category name. |
hierarchyinteger | Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value. |
objectstring | The type of the object represented by the JSON. This object stores information about the category. Available values:category |
created_atstring | Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format. Example:2022-07-14T10:45:13.156Z |
updated_atstring | Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format. Example:2022-08-16T10:52:08.094Z |
Validity Timeframe
Attributes | Description |
---|---|
durationstring | Defines the amount of time an earning rule will be active in ISO 8601 format. For example, an earning rule with a PT1H |
intervalstring | Defines the intervening time between two time points in ISO 8601 format, expressed as a duration. For example, an earning rule with an P2D |
Validity Day Of Week
Integer array corresponding to the particular days of the week in which the voucher is valid.
0
Sunday1
Monday2
Tuesday3
Wednesday4
Thursday5
Friday6
Saturday
Validity Hours
Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
dailyarray | Defines the reccuring period(s) when the resource is active. The periods should not overlap. Array of:
|