Skip to content

Rates and restrictions

Fenêtre de terminal
curl -X PUT https://localoge.com/api/v1/channel/rates \
-H "Authorization: Bearer $LOCALOGE_KEY" \
-H "Content-Type: application/json" \
-d '{
"property_id": "PROP-4821",
"rates": [
{ "date": "2026-07-01", "price": 14500, "min_nights": 7, "no_arrival": true },
{ "date": "2026-07-02", "price": 14500, "min_nights": 7 },
{ "date": "2026-09-15", "price": 8000, "min_nights": 2 }
]
}'

Up to 1000 dates per request.

A nightly price must be between 1500 (15 euros) and 2000000 (20,000 euros) cents. Outside these bounds (0 meaning “closed”, euros sent instead of cents, cents multiplied by 100), the price of that night is refused: it is listed in skipped with reason PRICE_OUT_OF_RANGE, the price already in place is kept, and the restrictions on the same line (min_nights, no_arrival, no_departure) are still applied. A negative price makes the whole request invalid (400 INVALID_PAYLOAD). To close a night, use PUT /availability, never a price of 0.

{ "success": true, "data": { "property_id": "PROP-4821", "applied": 1, "skipped": [{ "date": "2026-09-02", "reason": "PRICE_OUT_OF_RANGE" }] } }

A night’s price comes from listing_day_prices, the one you push here. The property’s base_price is the fallback for nights the calendar does not price, under one condition (see the box below).

In practice: if you only push base_price without a calendar, the calendar prices the host already set keep applying, and that is intended.

Field Effect
min_nights Minimum stay for an arrival on this date
no_arrival Closed to arrival on this day. Departure is still possible.
no_departure Closed to departure on this day.

These are two different operations, and the difference matters.

{ "date": "2026-07-01", "price": 14500 }

The price is set. min_nights, no_arrival and no_departure keep their current values.

{ "date": "2026-07-01", "min_nights": null }

The minimum stay for this date is cleared: it falls back to the property’s general minimum.

This lets you sync only the fields your system manages, without accidentally wiping what the host configured on Localoge.

"price": null removes the price of that night: it falls back to the seasonal rate or to base_price.

For each property, Localoge knows who is authoritative for nightly prices and, separately, for restrictions (min_nights, no_arrival, no_departure):

Setting Effect on your updates
Partner (default) Your prices and restrictions apply. Your price carries your mark: a season the host applies “to already set days too” does not erase it. A price the host sets by hand on a night applies, and your next update replaces it.
Host The host took this field back. Your value is not written: the night appears in skipped with reason NOT_OWNER, and the other field of the same line follows its own rule.
{ "success": true, "data": { "property_id": "PROP-4821", "applied": 1, "skipped": [{ "date": "2026-09-01", "reason": "NOT_OWNER" }] } }

A NOT_OWNER is not an error to retry: stop sending that field for this property, or ask the host to hand it back to you.

The host changes this setting themselves, property by property, in Localoge (“Connected tools”, section “Prices and restrictions”). Every change, in either direction, reaches you as a property.updated event whose changed contains pricing_owner and/or restrictions_owner, and whose body carries the current values (partner or host). As soon as control is handed back to you, your updates apply again.

In batches and by ranges: PUT /rates/batch

Section titled “In batches and by ranges: PUT /rates/batch”

Up to 50 properties per call, with ranges (date_from, date_to, both included) and single dates that win field by field:

{
"properties": [
{ "property_id": "PROP-4821",
"ranges": [{ "date_from": "2027-07-01", "date_to": "2027-08-31", "price": 18000, "min_nights": 7 }],
"rates": [{ "date": "2027-07-14", "no_arrival": true }] }
]
}

July 14 keeps the price and minimum stay of the range, and gets no_arrival. Same rules as PUT /rates (price bounds, NOT_OWNER, omitted = unchanged, null = removed), same limits as PUT /availability/batch (50 properties, 1000 days per property). The response gives one result per property in results; a property locked by Localoge gets LISTING_LOCKED for itself only. Idempotent.