invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Discounts: Roller Discounts

read only REST

  • Catalog: Roller
  • Schema: Data
  • Primary Keys: DiscountId
  • Label: Discounts

Can only retrieve data.

API Source

  • Endpoint: data/discounts

Table Columns

The columns of the table Discounts 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
amountOff decimal Discount Amount filters on the platform, writable Dollar amount off the product cost.
bookingDateRestrictionDateRangeDays varchar2 itgen_rlr_bookingdaterestrictiondaterangedays filters on the platform, writable, 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.
bookingDateRestrictionDateRangeEndDate datetime itgen_rlr_bookingdaterestrictiondaterangeenddate filters on the platform, writable, 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.
bookingDateRestrictionDteRangeStartDate datetime itgen_rlr_bookingdaterestrictiondterangestartdate filters on the platform, writable, 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.
bookingDateRestrictionFromNumber varchar2 itgen_rlr_bookingdaterestrictionfromnumber filters on the platform, writable, 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.
bookingDateRestrictionFromType varchar2 itgen_rlr_bookingdaterestrictionfromtype filters on the platform, writable, 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.
bookingRuleNumberOfUses varchar2 itgen_rlr_bookingrulenumberofuses filters on the platform, writable, bookingRule.numberOfUses The usage limits for each code per booking
bookingRuleType varchar2 itgen_rlr_bookingruletype filters on the platform, writable, bookingRule.type 1 = Across selected products (quantity purchased counts towards uses).
codeGenerationMode varchar2 Code Generation Mode filters on the platform, writable How discount codes are generated.
discountId varchar2 Discount ID filters on the platform, writable Unique identifier of the discount.
endDate datetime End Date filters on the platform, writable Last day the discount can be used.
isSingleUseCode char Is Single Use Code filters on the platform, writable When true, a code for this discount can only be used once.
maxApplicableAmount decimal Maximum Applicable Amount filters on the platform, writable Maximum discount that can be applied to a booking using this discount.
name varchar2 Name filters on the platform, writable Discount name.
percentOff decimal Percent Discount filters on the platform, writable Percentage off the product cost.
startDate datetime Start Date filters on the platform, writable First day the discount can be used.
usageLimitNumberOfUses varchar2 itgen_rlr_usagelimitnumberofuses filters on the platform, writable, usageLimits.numberOfUses The usage limits for each code in total.
usageLimitType varchar2 itgen_rlr_usagelimittype filters on the platform, writable, 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.

Referenced By

Release Notes

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