Just in time for Christmas: Packages on apaleo

 In Miscellaneous

It started snowing in Munich, there’s cookies in the office, and we feel all Christmas-y, humming happy tunes… to make you happy, too, we introduce today a whole new set of features, and they are all about packages (a.k.a. “rate plans with included services”, but that doesn’t sound like Christmas at all).

Including services in rate plans

The rate plan API has expanded, to allow specifying or changing the list of services to be included. The typical example is room with breakfast. You can even specify a different price for the service – allowing for cheaper prices when they are included.

When setting rates, the price you specify is always the all-inclusive price, not the price for the rooms. Example:
1. Set up a rate plan with breakfast included for a gross price of 8 Euro per person, and a surcharge for the third person of 10 Euro.
2. A rate of 100 Euro means that the room price, as it ends up in accounting, will be 92 Euro. If two people are staying, the price of the room is only 100 – (2 * 8) = 84 Euro. You can define surcharges for additional persons, to keep a stable room price.

Good price

If you try specifying rates that would lead to negative room prices, this will fail. Same will happen if you already have rates set up, and increase the price of the included services that would also lead to negative room prices.
The exact check that’s happening is: for all possible occupancies, from 1 to the maximum allowed, the defined rate + surcharges[occupancy] – (sum of all service charges for occupancy) must not be negative.

Bad price

We also clarified the naming, and the total amount on time slices is now called TotalAmount. The old Amount field is deprecated, and will be removed on February 28th 2018.

Add a marker to services, whether they are internal only

You could already define services like breakfast, and now can specify if they should be available to sell as extra services, or whether they can only be included as parts of a package. With that, we support the use case that a hotel only wants to offer rooms with breakfast, instead of rooms with nothing and breakfast as an extra.
When requesting the list of services, you can add a parameter, to not receive the internal ones.

GET api.apaleo.com/rateplan/services?onlySoldAsExtras

Consistent views for offers, reservations, folios and invoices

Previously, offers and reservations included a list of time slices and services – and on the invoice and folio, we had a list of line items per day. The exact same information, but in completely different formats. To make it easier to have a consistent view of the reservation for guests, we enhanced the response models of offers (GET booking/offers) and reservations (GET booking/reservation/{id}) to include line items as well.

Line Items for a booking for a package with double room, incl. breakfast and Wi-Fi

When you now want to display an offer or send out a reservation confirmation, you can use the new line items collection.

Deprecations: In offers, the time slice and service collections will be removed on February 28th 2018.

What’s gone

  • We removed the PUT reservations endpoint. Why that? PUT was just the wrong HTTP verb to use, and our log-bot told us, that nobody was using it. As the new and better version, you can now use PATCH.
  • As announced some months ago, min persons is gone from unit groups and units.

Ho, ho, ho ❤

Recommended Posts