Errors
All our responses share the same envelope: you only have one case to handle.
{ "success": false, "error": { "code": "PROPERTY_NOT_FOUND", "message": "Property not found", "request_id": "req_9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d" }}On success:
{ "success": true, "environment": "production", "data": { } }environment is sandbox or production: it tells you which instance you just wrote to.
request_id: quote it to us
Section titled “request_id: quote it to us”Every error response carries one, and we store it with your call: the method, the path, the duration, the status code, and the ID of the property or reservation involved.
Quote it when you contact us and we will find your request immediately. Without it, a diagnosis starts with “at what exact time, and with which key?”. Log it on your side for every error.
The codes
Section titled “The codes”They are stable. We will add new ones, we will never rename them: you can branch on them in your code without worrying that one of our releases will break it.
| Code | HTTP | What to do |
|---|---|---|
UNAUTHORIZED |
401 | Key missing, malformed, revoked or expired. Check the header. |
FORBIDDEN |
403 | Valid key, but the operation is not allowed. The message explains why. Contact us. |
RATE_LIMITED |
429 | Too many calls. See Rate limits. |
INVALID_PAYLOAD |
400 | Invalid body. The message names the first offending field. |
PROPERTY_NOT_FOUND |
404 | This external_property_id does not exist. Push the property first. |
RESERVATION_NOT_FOUND |
404 | This external_reservation_id does not exist. |
NOT_FOUND |
404 | Unknown object other than a property or reservation: webhook delivery not found, or a /sandbox/* endpoint called in production. |
DATES_UNAVAILABLE |
409 | These nights are already booked on our side. Do not retry: reconcile your calendars. |
RESERVATION_EXISTS |
409 | Reserved for future use. No endpoint returns it today: replaying a reservation returns 200 with the same ID. |
PROPERTY_EXISTS |
409 | Reserved for future use. No endpoint returns it today: pushing a property again updates it. |
CONFLICT |
409 | The object’s current state forbids the operation: for example archiving a property that has an upcoming stay. The message explains why. |
HOST_MISMATCH |
409 | The property already exists and belongs to another host than the one designated by host_ref (or than your own account, without host_ref). Send it with its owner’s host_ref. Moving a property to another host is not possible through the API. |
POSSIBLE_DUPLICATE |
409 | The property you are creating looks like a listing the host already has on Localoge (same place, close title). Nothing was created: error.candidates gives the listing_id(s). Send again with link_existing_listing_id (attach to the existing listing) or force_new: true (create anyway). Never merged automatically. |
PAYLOAD_TOO_LARGE |
413 | The body exceeds the limit (1 MiB for a property, 8 MiB for a bulk import). See Limits. Do not retry the same request: make it smaller. |
LISTING_LOCKED |
423 | Localoge has locked the listing (moderation, compliance). Title, description, prices (base price, nightly rates /rates, extras /extras), address, coordinates, photos and videos do not change while the lock holds; availability stays writable; the message names the fields your request would change. Other fields stay writable. Do not retry: the host sees the reason in their account. |
LISTING_PAUSED_BY_HOST |
409 | The host paused their listing. Until they resume it you cannot write its content (POST /properties, rates, extras, photos), and POST /activate does not put it back online: that is the host’s decision, not yours. Reads and availability (closing a night sold elsewhere) stay allowed. Do not retry: wait for the host to resume (property.status_changed). |
PROPERTY_ARCHIVED |
409 | The property is archived on your side (DELETE). Availability, rates, extras and reservations are refused until it is reactivated (POST /properties/{id}/activate, or by sending the property again). Reads and cancelling a reservation stay allowed. |
PAYOUT_ACCOUNT_MISSING |
409 | owner property whose owner has not activated their account. |
UNSUPPORTED |
422 | Unknown endpoint, or operation not supported for this property. |
INTERNAL |
500 | Our fault. Retry later, and let us know. |
What to retry, and what not to
Section titled “What to retry, and what not to”Retry on 429 (honoring Retry-After), on 500, on 502, 503 and 504, and on any network error.
During a deployment, our server may not answer for 20 to 40 seconds: you will then get a 502, 503 or 504, or a refused connection. This is normal and short. Retry with exponential backoff (1 s, 2 s, 4 s, 8 s, up to a minute) and a little random jitter; writes are idempotent (see Idempotency), so a resend is safe. There is no public status page: if the outage lasts more than 5 minutes, write to us quoting the time.
Do not retry on 400, 401, 403, 404 and 409: the same call will produce the same
result. A retry loop on a 400 burns your quota and has never fixed anything.