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

DiscountProducts: Roller Discount Products

read only REST

  • Catalog: Roller
  • Schema: Data
  • Label: Discount Products

Can only retrieve data.

API Source

  • Endpoint: data/discounts

Table Columns

The columns of the table DiscountProducts 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
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 filters on the platform, writable, ::ancestor.codeGenerationMode How discount codes are generated.
discount_discountId varchar2 itgen_rlr_discount_discountid 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 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 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.
productId varchar2 Product ID filters on the platform, writable, ::self Product ID.

Keys

Key Column Refers to Kind Description
DiscountProducts_discount_discountId_fk discount_discountId Discounts.discountId Key
DiscountProducts_productId_fk productId Products.productId Key

Release Notes

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