Certification checklist
An integration is ready for real bookings when every item below passes against a test property.
Every website#
- Content and calendar render from a publishable key on the site's origin, sent in
X-Api-KeyorAuthorization(from 1.4.1;?key=is the fallback), and the same call from another origin is refused. - Quotes and bookings go through the site's server with the secret key, a signed request and an
Idempotency-Key; the site's signer reproduces the published test vectors (request,request_empty_body,request_multi_room) and rejects everymust_failcase. - A retried create shows one booking in the Tulo dashboard.
- A cancel shows as a guest cancel.
- Every error code the site can meet is handled.
- Webhooks are verified (signature, timestamp window, one action per
X-Tulo-Delivery-Id), answered within 10 seconds, and unknown events and fields are ignored. - A create retried after a timeout or a
5xxkeeps the sameIdempotency-Keyand body, and a201withIdempotency-Persistence: degradedis kept as a made booking.
Several rooms in one booking#
Multi-room (partner API 1.4.0), when the site sells several rooms in one booking:
- Quote N rooms.
GET /quote?...&rooms=Nwith the whole party: the site showsselection_totalfor N rooms, offers only options withrooms_fit: true, starts fromunits_requiredrooms, and usessuggested_splitas the default party per room. - Calendar for N rooms.
GET /calendar?...&rooms=Ndisables nights that are notbookableand treats anyreason(including one it does not know) as not bookable. - Create N rooms.
POST /bookingswithrooms[](one room type, at least one adult per room, optionalguest_name) creates one booking with N rooms in the Tulo dashboard; a retry with the sameIdempotency-Keyand body replays it and books nothing new. - Handle `not_enough_rooms`. A
409 no_availabilitywithreason: "not_enough_rooms"(orfully_booked,stop_sell) sends the guest back to the dates or the room count, namingfirst_blocked_nightandavailable_count; nothing was booked. - Show rooms on the confirmation. The confirmation and the site's booking page show
room_countand each room inrooms[](position, party,stay_total, names), with a single-room booking still shown as before. - Handle `booking.room_cancelled`. The site updates the booking from the webhook's
rooms[](that roomcancelledorno_show, the totals without it) while the booking staysconfirmed, and treatsbooking.updatedas "re-read this booking".
When it passes#
Tell Tulo at support@mail.tulo.homes or WhatsApp +260 77 235 2417 which property the site is for, its origins and its webhook base URL, so the property's own keys and webhooks can be set up. Help for each item: test vectors, idempotency, errors, webhook verification and several rooms. Every code a site can meet is on the Errors page, keyed by code.
