Simulator
To test your webhook handling, something has to happen on the Localoge side: a guest booking, writing, leaving a review. In the sandbox, the simulator does it for you.
POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulateWhat the simulator does
Section titled “What the simulator does”It creates the real object in the sandbox database: a stay booked by a fictitious guest, a message, a review, a listing approval. It then goes through the same emission code as production: the webhook you receive is signed, shaped and retried exactly like the one a real guest would trigger. What your code accepts here, it will accept in production.
Request body
Section titled “Request body”| Field | Required | Meaning |
|---|---|---|
event |
yes | reservation.created, reservation.updated, reservation.cancelled, message.received, review.created or listing.validated |
external_property_id |
for reservation.created and listing.validated |
Your property, already pushed to the sandbox. |
reservation_id |
for reservation.updated, reservation.cancelled, message.received, review.created |
The Localoge ID of a reservation created by the simulator (Localoge origin), as returned by reservation.created. |
check_in, check_out |
no | YYYY-MM-DD. If omitted, the simulator picks the first free 3-night window starting 14 days from today. |
guests |
no | Number of guests, 2 by default (capped at the property’s capacity). |
text |
no | The text of the simulated message or the comment of the simulated review, 4000 characters max. |
rating |
no | The rating of the simulated review, from 1 to 10 (9 by default). |
The response is a 201:
{ "success": true, "environment": "sandbox", "data": { "event": "…", "reservation_id": "…", "listing_id": "…", "status": "…" } }| Code | Situation |
|---|---|
400 INVALID_PAYLOAD |
Missing or malformed field, inconsistent dates. |
404 PROPERTY_NOT_FOUND |
This property does not exist in your sandbox. |
404 RESERVATION_NOT_FOUND |
reservation_id missing, unknown, or not a Localoge-origin reservation. |
409 DATES_UNAVAILABLE |
Nights already booked, or no free 3-night window within the year. |
409 CONFLICT |
Reservation already cancelled, or property not in pending_validation (for listing.validated). |
404 NOT_FOUND |
Endpoint called in production. |
Examples
Section titled “Examples”A guest books:
curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulate \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "reservation.created", "external_property_id": "PROP-4821", "check_in": "2026-11-10", "check_out": "2026-11-14", "guests": 2 }'{ "success": true, "environment": "sandbox", "data": { "event": "reservation.created", "reservation_id": "5b0e…", "listing_id": "9f2c…", "status": "confirmed" }}You receive reservation.created, and the nights from November 10 to 14 are taken: a
POST /reservations from you on those dates must now return 409 DATES_UNAVAILABLE.
The guest cancels:
curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulate \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "reservation.cancelled", "reservation_id": "5b0e…" }'The guest writes:
curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulate \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "message.received", "reservation_id": "5b0e…", "text": "Peut-on arriver à 18 h ?" }'The guest leaves a review:
curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulate \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "review.created", "reservation_id": "5b0e…", "rating": 8, "text": "Très bon séjour." }'An administrator approves your pending property (pending_validation to published):
curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/simulate \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "listing.validated", "external_property_id": "PROP-4821" }'{ "success": true, "environment": "sandbox", "data": { "event": "listing.validated", "listing_id": "9f2c…", "status": "published" } }You then receive property.status_changed. listing.validated is a simulator action, not a
webhook name.
Emails
Section titled “Emails”The simulator sends no email: it only produces webhooks. To see the emails Localoge would
send (confirmation to the guest, alert to the host), book your property on
https://sandbox.localoge.com with your test guest
and the card 4242 4242 4242 4242. In the sandbox, no email leaves: they are stored in the
test inbox.
curl "https://sandbox.localoge.com/api/v1/channel/sandbox/emails?limit=20" \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY"Each email carries id, to, subject, html (the full rendering), listing_id and
created_at. 50 by default, 200 max.
Starting over
Section titled “Starting over”curl -X POST https://sandbox.localoge.com/api/v1/channel/sandbox/reset \ -H "Authorization: Bearer $LOCALOGE_TEST_KEY"{ "success": true, "environment": "sandbox", "data": { "reset": true, "properties_removed": 4 } }Deletes your sandbox properties, stays and messages. Your keys, your webhook and your account stay in place.
From the developer portal
Section titled “From the developer portal”The same actions are available as buttons at https://sandbox.localoge.com/app/dev: pick a
property, an event, and send. See Developer portal.