Skip to content

Sending us a reservation

When a stay is sold elsewhere, send it to us: we block the nights, and the property is no longer offered on Localoge.

Fenêtre de terminal
curl -X POST https://localoge.com/api/v1/channel/reservations \
-H "Authorization: Bearer $LOCALOGE_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_reservation_id": "RES-99001",
"external_property_id": "PROP-4821",
"check_in": "2026-09-10",
"check_out": "2026-09-15",
"guest": {
"first_name": "Marie",
"last_name": "Duval",
"email": "marie.duval@exemple.fr",
"phone": "+33612345678"
},
"guests_count": 3,
"adults_count": 2,
"total_amount": 72500,
"currency": "EUR"
}'
{
"success": true,
"data": { "reservation_id": "LOC-3f8a…", "created": true, "status": "confirmed" }
}

Charges nothing. The guest paid through your channel. There is no stored card, no security deposit hold, no service fee and no commission. total_amount is informational, not an amount to collect: it is there for the host and for your reporting.

Blocks the nights from check-in up to (but not including) check-out, and makes the stay visible to the host. If you first closed these nights with PUT /availability, your closures become the nights of the stay: the order “close, then send the reservation” is accepted. A night closed by another source (iCal calendar, host, other reservation) is still a 409 DATES_UNAVAILABLE.

Does not apply Localoge restrictions. Minimum stay, closed to arrival or departure: these rules filter what Localoge sells, not what is already sold elsewhere. A reservation you send us is accepted as long as the nights are free on our side.

Origin channel and anti-echo (aggregators)

Section titled “Origin channel and anti-echo (aggregators)”

If your system is an aggregator (channel manager, multichannel PMS), say where the reservation was sold with origin_channel (airbnb, booking, direct…, letters, digits, _ . -, 32 characters at most). The field is optional and stored as is.

A reservation born on Localoge that you send back to us (because you sync all your reservations to all your channels) is never created again:

  • if external_reservation_id is our reservation_id (the one in our webhooks), or if you send origin_channel: "localoge" with the same dates on the same property, the response returns the Localoge reservation (200, created: false) without touching nights or status;
  • origin_channel: "localoge" with no matching Localoge reservation is refused (400 INVALID_PAYLOAD).

The other way round, a reservation you sent us is never sent back to you by webhook. Idempotency is on the pair (your partner account, external_reservation_id): two different partners can use the same identifier without interfering.

A guest account specific to your software is created for them. They cannot sign in until they confirm their address themselves, they receive no email and no notification from Localoge (no welcome, no stay reminder, no review request, no marketing), and they are not counted in our sign-up statistics.

The email address is the only required field in the guest object. It identifies the guest on your side: the same guest.email sent by you finds the same guest account, instead of creating yet another one.

The guest shifts their stay, or comes as three instead of two. Send only what changes.

Fenêtre de terminal
curl -X PUT https://localoge.com/api/v1/channel/reservations/RES-9912 \
-H "Authorization: Bearer $LOCALOGE_KEY" \
-H "Content-Type: application/json" \
-d '{ "check_in": "2026-11-12", "check_out": "2026-11-16", "guests_count": 3 }'
{
"success": true,
"data": {
"reservation_id": "17cf258c-…",
"check_in": "2026-11-12",
"check_out": "2026-11-16"
}
}

The identifier in the URL is YOURS (external_reservation_id), just as for cancellation.

Code Situation
200 Modified.
404 RESERVATION_NOT_FOUND This identifier does not exist on our side.
409 DATES_UNAVAILABLE The new nights are already taken. The original reservation is untouched.
400 INVALID_PAYLOAD Inconsistent dates, or reservation already cancelled.
Code Situation
201 Created.
200 It already existed. Identical content: nothing changed. Different content (dates, guest count, amount): the change is applied like PUT /reservations/{id} and the response carries updated: true; if the new nights are already taken, 409 DATES_UNAVAILABLE and the original reservation stays untouched. See Idempotency.
200 with status: "cancelled" You sent status: "cancelled". Unknown reservation: nothing is created, no night is taken, reservation_id is null. Known reservation: it is cancelled and its nights released, as with POST /reservations/{id}/cancel.
404 PROPERTY_NOT_FOUND This external_property_id does not exist on our side. Push the property first.
409 DATES_UNAVAILABLE One or more of these nights are already taken on Localoge.
Fenêtre de terminal
curl https://localoge.com/api/v1/channel/reservations/3f8a… \
-H "Authorization: Bearer $LOCALOGE_KEY"

The identifier can be ours (reservation_id, the one carried by our webhooks) or yours (external_reservation_id, for a reservation you sent us). Call this route when a webhook announces a stay and you want its current state before acting.

{
"success": true,
"environment": "production",
"data": {
"reservation": {
"reservation_id": "3f8a…",
"external_property_id": "PROP-4821",
"external_reservation_id": null,
"origin": "localoge",
"status": "confirmed",
"check_in": "2026-09-10",
"check_out": "2026-09-15",
"guests": 3,
"pets": 0,
"adults": 2,
"currency": "EUR",
"amounts": {
"rent": 60000,
"cleaning_fee": 4000,
"options": 0,
"tourist_tax": 825,
"commission": 1800,
"total": 64825
},
"payment_status": "captured",
"created_at": "2026-08-26T14:03:11.000Z",
"updated_at": "2026-08-26T14:03:11.000Z"
}
}
}

All amounts are in cents. commission is the Localoge commission charged to the host, and 0 on a reservation that came from you. payment_status is the state of the rent payment at Localoge (none, saved_card, authorized, captured, cancelled, partial_capture), or null when no payment exists (a reservation that came from you). A reservation that does not belong to your properties returns 404 RESERVATION_NOT_FOUND.

Fenêtre de terminal
curl "https://localoge.com/api/v1/channel/reservations?updated_since=2026-09-28T00:00:00Z&limit=200" \
-H "Authorization: Bearer $LOCALOGE_KEY"
{
"success": true,
"environment": "production",
"data": {
"reservations": [
{
"reservation_id": "3f8a…",
"external_property_id": "PROP-4821",
"external_reservation_id": null,
"check_in": "2026-09-10",
"check_out": "2026-09-15",
"status": "cancelled",
"guests": 3,
"pets": 0,
"total": 72500,
"origin": "localoge",
"created_at": "2026-08-26T14:03:11.000Z",
"updated_at": "2026-09-28T08:01:52.000Z"
}
],
"truncated": false,
"next_cursor": null
}
}

updated_since filters on the modification date (updated_at), not the creation date: a reservation cancelled or shifted since your last poll shows up again, with its new state. That is what makes this route a real safety net behind webhooks.

origin is either localoge (sold by us, total in cents) or partner (sent by you, total at 0: we collect nothing on those). The list is paginated: see Pagination.

Not in the list, nor readable by id, nor sent by webhook: checkouts in progress or abandoned before payment (the guest bought nothing), and Localoge reservations made before you managed the property. Their nights stay closed in the calendar (GET /properties/{id}/calendar), without guest data.