v3
latestOpenAPI 3.0.02026-07-3179137151.7 KBCreate a new discount.
Request body
The ID of this record.
Indicates whether this surcharge is active.
The base amount of the surcharge. Always a positive value.
Indicates whether the description should be auto-generated.
The date and time this record was created (UTC).
The description of the surcharge (maximum 256 characters).
The expense amount (minimum 0).
The ID of the expense category.
The description of the expense.
The ID of the expense vendor contact.
Additional explanation text displayed to guests.
Indicates whether this surcharge is applicable to rent only (when IsPercent is true).
Indicates whether the expense should be pre-deducted from the property manager.
Indicates whether the amount is a percentage of rent.
Indicates whether this surcharge is taxable.
Listing site IDs this surcharge applies to. Used with listing_site_scope.
Indicates whether this surcharge should be placed under tax line items. Cannot be true if IsTaxable is true.
The display position/order of the surcharge (minimum 0).
Property IDs this surcharge applies to. Used with property_scope.
Season IDs this surcharge applies to. Used with season_scope.
Indicates whether this surcharge should be shown as rent.
The date and time this record was last updated (UTC).
The discount code for code-based discounts (maximum 64 characters). Required when Mode is Code.
Indicates whether this discount code should remove all other discounts when applied.
Response
A model representing the discount created.
The ID of this record.
Indicates whether this surcharge is active.
The base amount of the surcharge. Always a positive value.
Indicates whether the description should be auto-generated.
The date and time this record was created (UTC).
The description of the surcharge (maximum 256 characters).
The expense amount (minimum 0).
The ID of the expense category.
The description of the expense.
The ID of the expense vendor contact.
Additional explanation text displayed to guests.
Indicates whether this surcharge is applicable to rent only (when IsPercent is true).
Indicates whether the expense should be pre-deducted from the property manager.
Indicates whether the amount is a percentage of rent.
Indicates whether this surcharge is taxable.
Listing site IDs this surcharge applies to. Used with listing_site_scope.
Indicates whether this surcharge should be placed under tax line items. Cannot be true if IsTaxable is true.
The display position/order of the surcharge (minimum 0).
Property IDs this surcharge applies to. Used with property_scope.
Season IDs this surcharge applies to. Used with season_scope.
Indicates whether this surcharge should be shown as rent.
The date and time this record was last updated (UTC).
The discount code for code-based discounts (maximum 64 characters). Required when Mode is Code.
Indicates whether this discount code should remove all other discounts when applied.