---
title: "DiscountCodes (Roller)"
description: "Discount Codes"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/roller/Roller.Data.DiscountCodes
original: https://documentation.invantive.eu/en/datamodels/roller/Roller.Data.DiscountCodes
updated: 2026-11-01T16:22:55Z
license: https://documentation.invantive.eu/en/
---

# DiscountCodes: Roller Discount Codes

`read only` `REST`

- Catalog: `Roller`
- Schema: `Data`
- Label: Discount Codes

Can only retrieve data.

## API Source

- Endpoint: `data/discounts`

## Table Columns

The columns of the table `DiscountCodes` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `discountCode` | `varchar2` | Discount Code | [x] | filters on the platform, writable, `::self` | Discount code. |
| `discount_amountOff` | `decimal` | itgen_rlr_discount_amountoff | [ ] | filters on the platform, writable, `::ancestor.amountOff` | Dollar amount off the product cost. |
| `discount_bookingDateRestrictionDateRangeDays` | `varchar2` | itgen_rlr_discount_bookingdaterestrictiondaterangedays | [ ] | filters on the platform, writable, `::ancestor.bookingDateRestrictions.dateRange.days` | Booking dates this discount can be applied on - this is the date the booking is for not the date the booking is created. |
| `discount_bookingDateRestrictionDateRangeEndDate` | `datetime` | itgen_rlr_discount_bookingdaterestrictiondaterangeenddate | [ ] | filters on the platform, writable, `::ancestor.bookingDateRestrictions.dateRange.endDate` | Booking dates this discount can be applied on - this is the date the booking is for not the date the booking is created. |
| `discount_bookingDateRestrictionDteRangeStartDate` | `datetime` | itgen_rlr_discount_bookingdaterestrictiondterangestartdate | [ ] | filters on the platform, writable, `::ancestor.bookingDateRestrictions.dateRange.startDate` | Booking dates this discount can be applied on - this is the date the booking is for not the date the booking is created. |
| `discount_bookingDateRestrictionFromNumber` | `varchar2` | itgen_rlr_discount_bookingdaterestrictionfromnumber | [ ] | filters on the platform, writable, `::ancestor.bookingDateRestrictions.from.number` | Booking dates this discount can be applied on - this is the date the booking is for not the date the booking is created. |
| `discount_bookingDateRestrictionFromType` | `varchar2` | itgen_rlr_discount_bookingdaterestrictionfromtype | [ ] | filters on the platform, writable, `::ancestor.bookingDateRestrictions.from.type` | Booking dates this discount can be applied on - this is the date the booking is for not the date the booking is created. |
| `discount_bookingRuleNumberOfUses` | `varchar2` | itgen_rlr_discount_bookingrulenumberofuses | [ ] | filters on the platform, writable, `::ancestor.bookingRule.numberOfUses` | The usage limits for each code per booking |
| `discount_bookingRuleType` | `varchar2` | itgen_rlr_discount_bookingruletype | [ ] | filters on the platform, writable, `::ancestor.bookingRule.type` | 1 = Across selected products (quantity purchased counts towards uses). |
| `discount_codeGenerationMode` | `varchar2` | itgen_rlr_discount_codegenerationmode | [x] | filters on the platform, writable, `::ancestor.codeGenerationMode` | How discount codes are generated. |
| `discount_discountId` | `varchar2` | itgen_rlr_discount_discountid | [x] | filters on the platform, writable, `::ancestor.discountId` | Unique identifier of the discount. |
| `discount_endDate` | `datetime` | itgen_rlr_discount_enddate | [ ] | filters on the platform, writable, `::ancestor.endDate` | Last day the discount can be used. |
| `discount_isSingleUseCode` | `char` | itgen_rlr_discount_issingleusecode | [x] | filters on the platform, writable, `::ancestor.isSingleUseCode` | When true, a code for this discount can only be used once. |
| `discount_maxApplicableAmount` | `decimal` | itgen_rlr_discount_maxapplicableamount | [ ] | filters on the platform, writable, `::ancestor.maxApplicableAmount` | Maximum discount that can be applied to a booking using this discount. |
| `discount_name` | `varchar2` | itgen_rlr_discount_name | [x] | filters on the platform, writable, `::ancestor.name` | Discount name. |
| `discount_percentOff` | `decimal` | itgen_rlr_discount_percentoff | [ ] | filters on the platform, writable, `::ancestor.percentOff` | Percentage off the product cost. |
| `discount_startDate` | `datetime` | itgen_rlr_discount_startdate | [ ] | filters on the platform, writable, `::ancestor.startDate` | First day the discount can be used. |
| `discount_usageLimitNumberOfUses` | `varchar2` | itgen_rlr_discount_usagelimitnumberofuses | [ ] | filters on the platform, writable, `::ancestor.usageLimits.numberOfUses` | The usage limits for each code in total. |
| `discount_usageLimitType` | `varchar2` | itgen_rlr_discount_usagelimittype | [ ] | filters on the platform, writable, `::ancestor.usageLimits.type` | 0 = Per code, 1 = Per user, 2 = For each selected product (regardless of quantity purchased), 3 = Across selected products (quantity purchased counts towards uses), 4 = Per code per day, 5 = Per code per week, 6 = Per code per month, 7 = Per code per year. |

## Keys

| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
| `DiscountCodes_discount_discountId_fk` | `discount_discountId` | [Discounts](Roller.Data.Discounts)`.discountId` | Key |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Roller](/en/release-notes/drivers/roller)

