How we calculate and return the information about deadline of cancel penalties
Please note this article refers to the Deadline parameter, which not all of our Sellers return. This does not apply to the HoursBefore parameter in cancel policies.
The deadline of the CancelPolicy is the final date on which no Cancellation fees will apply. After this date and until check-in, Cancellation fees will apply to the booking.
In the case the Seller informs this date in their response, we’ll simply return it in our deadline field in the response (UTC).
However, some Sellers don’t return this date in their response, so our logic is to calculate it is as follows:
Hours before minus number of hours left (before check-in date) for the client to cancel without incurring penalties. This information is passed by the Seller.
Please bear in mind that there are countries with +14 UTC and others -12 UTC, so the worst-case scenario would be that a person in +14 performs a booking in -12.
When we don't receive deadline from Seller's response, we calculate the deadline with the following logic:
Deadline = check-in date (12:00 a.m) minus 14 - Hours Before