null

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6

You can use the discount endpoint to set discounts in cases for an early or last minute booking individual per apartment. There is no possibility to push discounts for all of your properties at the same time, you will always need to do it individual.

It is not intended to work for giving discounts for e.g. a longer stay, since you can provide this price information in the rate plans. In the discount you can set the discount percentage (how much the price will be reduced) and the requirements for the discounts. Requirments can be:

  • days before booking higher than/less than x days
  • the stay has in addition to be longer than x 
{ 
"id": 0, 
"status": "ACTIVE",
"externalId": "DI-1234", 
"name": "Pre Season Discount", 
"discountType": "EARLY_BIRD", 
"discountPercent": 12, 
"daysBeforeCheckIn": 60, 
"minStay": 5, 
"minStayRequired": true 
}

The discount will stay active until you deactivate or delete it by pushing it with the same "externalId", but with the "status" either set to "INACTIVE" (in case you want to reuse it) or "DELETED" (in case you don't want to reuse it).

You can always check for active discounts using the GET Discounts endpoint.

  • No labels