Skip to content

Idempotency

Your server retries. That is normal, and even desirable: a timeout, a network drop, a restart at the wrong moment. This API is designed so you can retry without ever wondering whether the first call went through.

Object Uniqueness key
Property (your account, external_property_id)
Reservation (your account, external_reservation_id)

These constraints are enforced in our database, not in our application code. Two identical calls fired at the same instant therefore cannot create two objects, even if both pass the existence check at the same moment: the database engine rejects the second one.

The HTTP status code tells you.

Code Meaning
201 Just created.
200 Already existed. Your replay created nothing new.

For a property, the response also carries created and unchanged:

{ "listing_id": "…", "created": false, "unchanged": true, "status": "published", "missing": [] }

unchanged: true means you sent us exactly the same content and we did not rewrite anything. That is the normal case for a periodic sync: you can push your whole portfolio every night without making us do pointless work.

Availability and rates are state writes: sending the same calendar again produces the same result, which is equivalent from your point of view, but we do rewrite it. Replay without worry, just do not do it in a loop.

Use the ones from your own system, the stable ones. Never use an identifier that changes when the object is edited: we would create a second property every time the title changed.