Booking Manager API allows you to retrieve several different data as described in Booking Manager API User Manual-SOAP
Here you will find an explanation of the types of discount that you can retrieve and some examples, check how it looks in discount from charter perspective.
Discounts in Booking Manager API
With call getResources, retrieved data contains info about discounts. There are 4 types of discounts:
0 – Duration discount (two weeks, three weeks)
1 – Reservation period (date of request)
2 – Service period (date of sailing)
3 – Last minute/early booking discount
1-Reservation period means that discount will be applied if period of making option/reservation is within date range, example- 01.07-30.07
2-Service period means that discount will be applied if sailing period is within certain date range, example-01.09-30.09
validdaysfrom : 1209600000 and validdaysto: 1728000000 means that discount is valid if sailing duration is between 14 and 20 days (two weeks discount is valid for discount 0-discounttype="0")
3-Last minute/early booking discount will also have "validdaysfrom" and "validdaysto" and it means that discount will be applied for example 0-30 days before charter
If there is discount with name Special discount (this discount allways have id"-1") this one is "stronger" than any other and it's only valid for particular boat only for 1 week
Example:
<discount id="-1" name="Special week discount" percentage="10.0" validdatefrom="1970-01-01" validdateto="2125-01-29" sailingdatefrom="2019-10-12" sailingdateto="2019-10-19" includedinbaseprice="0" validdaysfrom="" validdaysto="" discounttype="2" excludesotherdiscounts="1" affectedbymaximum="0" availableinbase="-1" discountkind="0"
Each discount has flag affectedbymaximum="0" or affectedbymaximum="1",- it is indicator whether is limited by maximum discount setting of charter company in general setings, or not.
If the boat has max. discount 20% and three other discounts (10%, 5% or 10%) and each of them is marked affectedbymaximum="1", it means that all discounts are affected by maximum and overall maximum is 20%.
If there's a combination with discounts that two discounts have same conditions, allways concider the one with lower discount ID.
If discounts are affectedbymaximum="0", it means that discount can be higher than max 20%.
How it looks in discount from charter perspective
Comments
0 comments
Please sign in to leave a comment.