LOS
Get LOS for an apartment
Returns the length-of-stay (LOS) prices stored for the apartment for one rate. Without `rateId` the default rate is returned; the call answers 404 if no LOS is stored for that rate.
Create or update LOS for an apartment
Sets prices and availability of the apartment as length-of-stay (LOS) data: for each check-in date, one entry per number of guests whose `price[N]` is the total price of an (N+1)-night stay (0 = this length of stay is not bookable, at most 62 values). Each call replaces all LOS data of its `rateId` (the default rate if omitted): check-in dates you leave out are removed, other rates are kept. Pushing `REFUNDABLE` or `NON_REFUNDABLE` removes the default rate, so either use only the default rate or push both named rates; while `REFUNDABLE` or `NON_REFUNDABLE` data is stored, a push for the default rate is discarded (404), so delete the named rates first to go back to a single rate. Apartments priced with LOS ignore data sent to the deprecated availability and rates endpoints.
Delete LOS for an apartment
Deletes the LOS data of one rate of the apartment; without `rateId` only the default rate is deleted and the other rates are kept.
Get LOS rate Ids for an apartment
Returns the rate ids for which LOS data is stored for the apartment: `DEFAULT`, or `REFUNDABLE` and/or `NON_REFUNDABLE` if you push several rates. Use them as `rateId` in GET and DELETE /v2/los.