API reference
Every endpoint, generated from the OpenAPI contract at build time: what you read here is what Tulo's tests check real responses against.
Version 1.4.1 · https://api.tulo.homes/partner/v1
The contract#
Paths below are relative to https://api.tulo.homes/partner/v1. Download the contract to generate a client or validate responses:
- partner-v1.openapi.yaml (OpenAPI 3.1, version 1.4.1)
- partner-v1-signing-test-vectors.json
GET/signing-keys#
Tulo's webhook signing public keys
The Ed25519 public keys Tulo signs webhooks with: the active key and any retiring keys still valid for verification. No key needed; cacheable (Cache-Control: public, max-age=300). An empty list means Tulo is not sending webhooks.
- Auth
- None.
Request
curl "https://api.tulo.homes/partner/v1/signing-keys"Responses
- 200
The keys.
Body: object
Headers: Cache-Control
{
"keys": [
{
"kid": "tulo-2026-11-14",
"alg": "Ed25519",
"public_key": "ebVWLo_mVPlAeLES6KmLp5AfhTrmlb7X4OORC60ElmQ",
"status": "active"
}
]
}GET/place#
The place's website content
Name, description, address, location, published contact, photos with sizes, amenities, stay policies and room types. Scope read.
- Auth
- A publishable or secret key (Keys and authentication).
- Scope
read
Request
curl "https://api.tulo.homes/partner/v1/place" \
-H "Authorization: Bearer $TULO_SECRET_KEY"Responses
- 200
The place.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"place": {
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"name": "Kabulonga Garden Lodge",
"subtype": "lodge",
"description": "Quiet rooms around a garden, ten minutes from the city centre.",
"address": "12 Lukasu Road",
"neighborhood": "Kabulonga",
"city": "Lusaka",
"country": "Zambia",
"location": {
"lat": -15.4067,
"lng": 28.3229
},
"contact": {
"phone": "+260971234567",
"email": "stay@hotel.example",
"website": "https://hotel.example",
"whatsapp": "+260971234567"
},
"amenities": [
"amenities"
],
"photos": [
{
"url": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg",
"alt": "Garden double",
"sizes": {
"small": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-480",
"medium": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-1024",
"large": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-1920"
}
}
],
"policies": {
"check_in_from": "14:00",
"check_out_until": "10:00",
"house_rules": "Quiet hours from 22:00.",
"payment": "pay_at_property",
"reservation_fee": {
"amount": 0,
"currency": "ZMW",
"applies": false
}
},
"room_types": [
{
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"name": "Garden double",
"description": "Quiet rooms around a garden, ten minutes from the city centre.",
"unit": "room",
"capacity_adults": 2,
"capacity_children": 1,
"max_occupancy": 3,
"min_nights": 1,
"cleaning_fee": 0,
"photos": [
{
"url": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg",
"alt": "Garden double",
"sizes": {
"small": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-480",
"medium": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-1024",
"large": "https://ik.imagekit.io/tulo/rooms/garden-double.jpg?tr=w-1920"
}
}
]
}
]
}
}GET/calendar#
Availability, nightly rates and stay rules per room type per night
Nights from from up to but not including to, at most 90 nights. Scope read. Gated like the quote.
- Auth
- A publishable or secret key (Keys and authentication).
- Scope
read
Query parameters
- fromstring (date) · required
First night (YYYY-MM-DD), today or later.
- tostring (date) · required
The day after the last night (YYYY-MM-DD).
- roomsinteger
1.4.0. Read each night for this many units of a room or place type (several rooms in one booking):
bookableneeds at leastroomsunits open, and every night gainsreasonwhen it is not bookable. A dorm (bed) type keeps its one-bed reading. 1 to 50; anything else is422. Without it the calendar is exactly as before.1 to 50
Request
curl "https://api.tulo.homes/partner/v1/calendar?from=2026-12-01&to=2026-12-03" \
-H "Authorization: Bearer $TULO_SECRET_KEY"Responses
- 200
The calendar.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 409
no_availability, not_accepting, booking_changed, not_cancellable, idempotency_key_reused, idempotency_in_progress
Body: Error
- 422
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"calendar": {
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"from": "2026-12-01",
"to": "2026-12-03",
"currency": "ZMW",
"room_types": [
{
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Garden double",
"unit": "room",
"nights": [
{
"date": "2026-12-01",
"available_units": 3,
"nightly_rate": 45000,
"min_stay": 1,
"closed_to_arrival": false,
"stop_sell": false,
"bookable": true
}
]
}
]
}
}GET/quote#
Price a stay
Scope read.
- Auth
- A publishable or secret key (Keys and authentication).
- Scope
read
Query parameters
- check_instring (date) · required
- check_outstring (date) · required
- adultsinteger
1 to 50; default 1. Anything else is
422.1 to 50 · default 1
- childreninteger
0 to 50; default 0. Anything else is
422.0 to 50 · default 0
- room_type_idstring (uuid)
Price only this room type.
- roomsinteger
1.4.0. Price this many rooms of each room type for the party (
adultsandchildrenare the whole group). Each option then carriesrooms,rooms_fit,selection_totalandsuggested_split. 1 to 50 (each room needs an adult); anything else is422. Without it the quote is exactly as before.1 to 50
Request
curl "https://api.tulo.homes/partner/v1/quote?check_in=2026-12-01&check_out=2026-12-03" \
-H "Authorization: Bearer $TULO_SECRET_KEY"Responses
- 200
The quote.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 409
no_availability, not_accepting, booking_changed, not_cancellable, idempotency_key_reused, idempotency_in_progress
Body: Error
- 422
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"quote": {
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"nights": 2,
"adults": 2,
"children": 0,
"currency": "ZMW",
"payment": "pay_at_property",
"reservation_fee": {
"amount": 0,
"currency": "ZMW",
"applies": false
},
"room_options": [
{
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Garden double",
"unit": "room",
"available_units": 3,
"nightly_rate": 45000,
"cleaning_fee": 0,
"stay_total": 90000,
"party_fits": true,
"units_required": 1,
"max_adults": 2,
"max_children": 1
}
]
}
}GET/bookings#
The website's own bookings, for reconciliation
Bookings this place's keys created, with check-in between from and to (both inclusive, at most 366 days apart), oldest check-in first. Scope bookings.read (secret keys). Signed (see "Signed booking requests").
- Auth
- A secret key and a signed request (Signing requests).
- Scope
bookings.read
Query parameters
- fromstring (date) · required
- tostring (date) · required
- statusstring · BookingStatus
one of "checking_availability", "held_pending_payment", "expired_unpaid", "confirming", "confirmed", "failed_rejected", "failed_timeout", "refunded", "cancelled_by_guest", "cancelled_by_property", "no_show"
- limitinteger
1 to 500 · default 100
Headers
- X-Tulo-Key-Idstring (uuid) · required
The id of the website signing key the property registered.
- X-Tulo-Timestampstring · required
Unix seconds, within 5 minutes of Tulo's clock.
pattern ^[0-9]{1,12}$
- X-Tulo-Noncestring · required
Fresh per request; never reused.
pattern ^[A-Za-z0-9_-]{16,128}$
- X-Tulo-Signaturestring · required
base64url (padding optional) of the 64-byte Ed25519 signature over the signing string.
Request
import { privateKeyFromPem, tuloRequest } from "./tulo-signing.mjs";
const result = await tuloRequest({
secretKey: process.env.TULO_SECRET_KEY,
keyId: process.env.TULO_SIGNING_KEY_ID,
privateKey: privateKeyFromPem(process.env.TULO_SIGNING_PRIVATE_KEY),
method: "GET",
pathWithQuery: "/partner/v1/bookings?from=2026-12-01&to=2026-12-03",
});Responses
- 200
The bookings.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 413
Body: Error
- 422
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"bookings": [
{
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"status": "confirmed",
"status_label": "Confirmed",
"source": "website",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"nights": 2,
"adults": 2,
"children": 0,
"beds": 1,
"stay_total": 90000,
"currency": "ZMW",
"payment": "pay_at_property",
"created_at": "2026-11-13T10:00:00Z",
"confirmed_at": "2026-11-13T10:00:00Z",
"cancelled_at": null,
"checked_in_at": null,
"checked_out_at": null
}
]
}POST/bookings#
Book a stay
Creates a confirmed booking (source website) in the property's Tulo dashboard, settled at the property (payment: pay_at_property). The same gates and stay rules as a Tulo app booking apply (minimum stay, closed to arrival, one bed per adult in a dorm). From 1.4.0 a body with rooms[] books several rooms of one type as one booking, all or none (see "Several rooms in one booking"); a short night is 409 no_availability with detail fields and nothing is booked. Unknown fields are refused, so an ID number can never be sent. Scope bookings.write (secret keys). Requires Idempotency-Key. Signed (see "Signed booking requests").
- Auth
- A secret key and a signed request (Signing requests).
- Scope
bookings.write- Idempotency
- Idempotency-Key required
Headers
- X-Tulo-Key-Idstring (uuid) · required
The id of the website signing key the property registered.
- X-Tulo-Timestampstring · required
Unix seconds, within 5 minutes of Tulo's clock.
pattern ^[0-9]{1,12}$
- X-Tulo-Noncestring · required
Fresh per request; never reused.
pattern ^[A-Za-z0-9_-]{16,128}$
- X-Tulo-Signaturestring · required
base64url (padding optional) of the 64-byte Ed25519 signature over the signing string.
- Idempotency-Keystring · required
8 to 128 characters
Request body
CreateBookingRequest, required.
Either one room (room_type_id, adults, optional children and beds) or, from 1.4.0, several rooms of one type (rooms, with none of the four top-level fields). Sending both is 422.
- room_type_idstring (uuid)
required for "One room"
- check_instring (date) · required
- check_outstring (date) · required
- adultsinteger
required for "One room" · 1 to 50
- childreninteger
0 to 50 · default 0
- bedsinteger
Shared (dorm) room types only; at least one bed per adult.
1 to 50
- roomsarray of CreateBookingRoom
1.4.0. Several rooms of one type as one booking, one entry per room, all booked or none. No limit on the number of rooms beyond what is open. The quote's
suggested_splitis a ready split.See CreateBookingRoom.
required for "Several rooms (1.4.0)" · at least 1 items
- guestobject · required
- guest.namestring · required
at least 1 characters
- guest.phonestring · required
Zambian mobile number, for example 0971234567 or +260971234567.
{
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"adults": 2,
"guest": {
"name": "Mwila Banda",
"phone": "+260971234567"
}
}{
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"rooms": [
{
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"adults": 2
}
],
"guest": {
"name": "Mwila Banda",
"phone": "+260971234567"
}
}Request
import { randomUUID } from "node:crypto";
import { privateKeyFromPem, tuloRequest } from "./tulo-signing.mjs";
const result = await tuloRequest({
secretKey: process.env.TULO_SECRET_KEY,
keyId: process.env.TULO_SIGNING_KEY_ID,
privateKey: privateKeyFromPem(process.env.TULO_SIGNING_PRIVATE_KEY),
method: "POST",
pathWithQuery: "/partner/v1/bookings",
idempotencyKey: randomUUID(), // reuse it on a retry
body: {
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"adults": 2,
"guest": {
"name": "Mwila Banda",
"phone": "+260971234567"
}
},
});Responses
- 201
Booked. A replay of the same request has the header
Idempotency-Replayed: true.Body: object
Headers: Idempotency-Replayed, Idempotency-Persistence
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 409
no_availability, not_accepting, booking_changed, not_cancellable, idempotency_key_reused, idempotency_in_progress
Body: Error
- 413
Body: Error
- 422
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"booking": {
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"status": "confirmed",
"status_label": "Confirmed",
"source": "website",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"nights": 2,
"adults": 2,
"children": 0,
"beds": 1,
"stay_total": 90000,
"currency": "ZMW",
"payment": "pay_at_property",
"created_at": "2026-11-13T10:00:00Z",
"confirmed_at": "2026-11-13T10:00:00Z",
"cancelled_at": null,
"checked_in_at": null,
"checked_out_at": null
}
}GET/bookings/{id}#
One of the website's own bookings
Scope bookings.read. Any other booking id is 404. Signed.
- Auth
- A secret key and a signed request (Signing requests).
- Scope
bookings.read
Path parameters
- idstring · required
Headers
- X-Tulo-Key-Idstring (uuid) · required
The id of the website signing key the property registered.
- X-Tulo-Timestampstring · required
Unix seconds, within 5 minutes of Tulo's clock.
pattern ^[0-9]{1,12}$
- X-Tulo-Noncestring · required
Fresh per request; never reused.
pattern ^[A-Za-z0-9_-]{16,128}$
- X-Tulo-Signaturestring · required
base64url (padding optional) of the 64-byte Ed25519 signature over the signing string.
Request
import { privateKeyFromPem, tuloRequest } from "./tulo-signing.mjs";
const result = await tuloRequest({
secretKey: process.env.TULO_SECRET_KEY,
keyId: process.env.TULO_SIGNING_KEY_ID,
privateKey: privateKeyFromPem(process.env.TULO_SIGNING_PRIVATE_KEY),
method: "GET",
pathWithQuery: "/partner/v1/bookings/5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
});Responses
- 200
The booking.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 413
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"booking": {
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"status": "confirmed",
"status_label": "Confirmed",
"source": "website",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"nights": 2,
"adults": 2,
"children": 0,
"beds": 1,
"stay_total": 90000,
"currency": "ZMW",
"payment": "pay_at_property",
"created_at": "2026-11-13T10:00:00Z",
"confirmed_at": "2026-11-13T10:00:00Z",
"cancelled_at": null,
"checked_in_at": null,
"checked_out_at": null
}
}POST/bookings/{id}/cancel#
Cancel one of the website's own bookings for the guest
Only a confirmed booking the guest has not checked into. Recorded as cancelled_by_guest. Nothing is refunded (website bookings carry no fee). Scope bookings.write. Any other booking id is 404. Signed.
- Auth
- A secret key and a signed request (Signing requests).
- Scope
bookings.write
Path parameters
- idstring · required
Headers
- X-Tulo-Key-Idstring (uuid) · required
The id of the website signing key the property registered.
- X-Tulo-Timestampstring · required
Unix seconds, within 5 minutes of Tulo's clock.
pattern ^[0-9]{1,12}$
- X-Tulo-Noncestring · required
Fresh per request; never reused.
pattern ^[A-Za-z0-9_-]{16,128}$
- X-Tulo-Signaturestring · required
base64url (padding optional) of the 64-byte Ed25519 signature over the signing string.
Request
import { privateKeyFromPem, tuloRequest } from "./tulo-signing.mjs";
const result = await tuloRequest({
secretKey: process.env.TULO_SECRET_KEY,
keyId: process.env.TULO_SIGNING_KEY_ID,
privateKey: privateKeyFromPem(process.env.TULO_SIGNING_PRIVATE_KEY),
method: "POST",
pathWithQuery: "/partner/v1/bookings/5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11/cancel",
});Responses
- 200
Cancelled.
Body: object
- 401
unauthorized, signature_missing, signature_invalid, signature_expired, signature_replayed, signing_key_unknown
Body: Error
- 409
no_availability, not_accepting, booking_changed, not_cancellable, idempotency_key_reused, idempotency_in_progress
Body: Error
- 413
Body: Error
- 429
Body: Error
Headers: Retry-After
- 500
Body: Error
{
"booking": {
"id": "5f0c2a1e-8b7d-4c3a-9e21-0d6f4b8a7c11",
"place_id": "c4a1e7b2-3d5f-4e69-8a0b-1c2d3e4f5a6b",
"room_type_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"status": "confirmed",
"status_label": "Confirmed",
"source": "website",
"check_in": "2026-12-01",
"check_out": "2026-12-03",
"nights": 2,
"adults": 2,
"children": 0,
"beds": 1,
"stay_total": 90000,
"currency": "ZMW",
"payment": "pay_at_property",
"created_at": "2026-11-13T10:00:00Z",
"confirmed_at": "2026-11-13T10:00:00Z",
"cancelled_at": null,
"checked_in_at": null,
"checked_out_at": null
}
}Webhook: booking event#
A booking event, POSTed to the integration's {base_url}/tulo/webhooks
Verify before acting: signature over v1.{X-Tulo-Delivery-Id}.{X-Tulo-Timestamp}.{raw_body} with the key from GET /signing-keys whose kid is X-Tulo-Key-Id; timestamp within 5 minutes; each delivery id processed once.
Headers
- X-Tulo-Key-Idstring · required
- X-Tulo-Delivery-Idstring (uuid) · required
Stable across retries of the same delivery.
- X-Tulo-Timestampstring · required
Unix seconds of this attempt.
- X-Tulo-Signaturestring · required
base64url (no padding) Ed25519 signature.
- X-Tulo-Eventstring · required
Body
WebhookEvent. See Webhooks for every event and how to verify a delivery.
Responses
- 200
Any 2xx within 10 seconds acknowledges the delivery; a timeout, an error or any other status is retried (waits of at least 1, 2, 4, 8, 16, 32 and 60 minutes, 8 attempts in all; see "Webhooks").
Schemas#
ErrorCode#
invalid_json(400): the body is not valid JSON or has an unknown field.invalid_idempotency_key(400):Idempotency-Keymissing or not 8 to 128 characters.invalid_request(400): the body could not be read.unauthorized(401): missing, unknown, revoked or expired key; a secret key in a URL.signature_missing(401): a/bookingsrequest without all four signature headers.signature_invalid(401): the signature does not verify, or the timestamp or nonce is malformed.signature_expired(401):X-Tulo-Timestampis more than 5 minutes from Tulo's clock.signature_replayed(401): the nonce was already used.signing_key_unknown(401):X-Tulo-Key-Idis not an active signing key of this property.insufficient_scope(403): the key lacks the route's scope.origin_not_allowed(403): a publishable key from an origin it is not bound to.secret_key_in_browser(403): a secret key sent with anOriginheader.bookings_not_granted(403): Tulo has not granted this property online bookings.not_found(404): the place is not public, or the booking is not this website's.no_availability(409): nothing sellable for those dates and that room type.not_accepting(409): the property has switched online reservations off.booking_changed(409): the booking changed meanwhile; reload it.not_cancellable(409): only a confirmed booking before check-in can be cancelled.idempotency_key_reused(409): the key was used for a different request.idempotency_in_progress(409): the same request is still running; retry afterRetry-After.request_too_large(413): body over 64 KiB.validation_failed(422): a parameter or field is missing or out of range.rate_limited(429): over the rate limit; waitRetry-Afterseconds.internal_error(500): Tulo failed; retry later.bookings_offline(503): Tulo bookings are switched off platform-wide.rate_limit_unavailable(503),idempotency_unavailable(503),unavailable(503): a Tulo dependency is down; retry later.
28 codes, each with its HTTP status and meaning on the Errors page.
SigningKey#
One of Tulo's webhook signing public keys. Never private material.
- kidstring · required
Matches
X-Tulo-Key-Idon a delivery.- algstring · required
always "Ed25519"
- public_keystring · required
The raw 32-byte Ed25519 public key, base64url without padding.
pattern ^[A-Za-z0-9_-]{43}$
- statusstring · required
one of "active", "retiring"
Error#
- errorobject · required
- error.codestring · ErrorCode · required
invalid_json(400): the body is not valid JSON or has an unknown field.invalid_idempotency_key(400):Idempotency-Keymissing or not 8 to 128 characters.invalid_request(400): the body could not be read.unauthorized(401): missing, unknown, revoked or expired key; a secret key in a URL.signature_missing(401): a/bookingsrequest without all four signature headers.signature_invalid(401): the signature does not verify, or the timestamp or nonce is malformed.signature_expired(401):X-Tulo-Timestampis more than 5 minutes from Tulo's clock.signature_replayed(401): the nonce was already used.signing_key_unknown(401):X-Tulo-Key-Idis not an active signing key of this property.insufficient_scope(403): the key lacks the route's scope.origin_not_allowed(403): a publishable key from an origin it is not bound to.secret_key_in_browser(403): a secret key sent with anOriginheader.bookings_not_granted(403): Tulo has not granted this property online bookings.not_found(404): the place is not public, or the booking is not this website's.no_availability(409): nothing sellable for those dates and that room type.not_accepting(409): the property has switched online reservations off.booking_changed(409): the booking changed meanwhile; reload it.not_cancellable(409): only a confirmed booking before check-in can be cancelled.idempotency_key_reused(409): the key was used for a different request.idempotency_in_progress(409): the same request is still running; retry afterRetry-After.request_too_large(413): body over 64 KiB.validation_failed(422): a parameter or field is missing or out of range.rate_limited(429): over the rate limit; waitRetry-Afterseconds.internal_error(500): Tulo failed; retry later.bookings_offline(503): Tulo bookings are switched off platform-wide.rate_limit_unavailable(503),idempotency_unavailable(503),unavailable(503): a Tulo dependency is down; retry later.
See ErrorCode.
one of "invalid_json", "invalid_idempotency_key", "invalid_request", "unauthorized", "signature_missing", "signature_invalid", "signature_expired", "signature_replayed", "signing_key_unknown", "insufficient_scope", "origin_not_allowed", "secret_key_in_browser", "bookings_not_granted", "not_found", "no_availability", "not_accepting", "booking_changed", "not_cancellable", "idempotency_key_reused", "idempotency_in_progress", "request_too_large", "validation_failed", "rate_limited", "internal_error", "bookings_offline", "rate_limit_unavailable", "idempotency_unavailable", "unavailable"
- error.messagestring · required
- error.reasonstring
1.4.0, multi-room create
409 no_availabilityonly: why the first short night cannot take the rooms.one of "stop_sell", "fully_booked", "not_enough_rooms"
- error.first_blocked_nightstring (date)
1.4.0, multi-room create
409 no_availabilityonly: the first night that cannot take the rooms.- error.available_countinteger
1.4.0, multi-room create
409 no_availabilityonly: units of the type still open that night.at least 0
- error.room_type_idstring (uuid)
1.4.0, multi-room create
409 no_availabilityonly: the room type asked for.- error.roomsinteger
1.4.0, multi-room create
409 no_availabilityonly: the number of rooms asked for.at least 1
ReservationFee#
Always {amount: 0, applies: false} for website bookings.
- amountinteger · required
always 0
- currencystring · required
ISO 4217 code; today always ZMW.
pattern ^[A-Z]{3}$
- appliesboolean · required
always false
Photo#
- urlstring · required
- altstring · required
- sizesobject · required
Widths 480, 1024 and 1920 px for Tulo-hosted images; other hosts serve the original at every size.
- sizes.smallstring · required
- sizes.mediumstring · required
- sizes.largestring · required
- captionstring
Room-type photos only, when set (1.2.0): what the picture shows. Omitted otherwise.
- sourcestring
Room-type photos only, when set (1.2.0): who took or supplied the picture (attribution). Omitted otherwise.
RoomAmenity#
- keystring · required
Stable key from a fixed vocabulary, for example wifi, air_conditioning, private_bathroom.
- labelstring · required
English label to show, for example Wi-Fi.
Place#
- idstring (uuid) · required
- namestring · required
- subtypestring · required
For example hotel, guesthouse, lodge.
- descriptionstring or null · required
- addressstring or null · required
- neighborhoodstring or null · required
- citystring or null · required
- countrystring or null · required
- locationobject · required
- location.latnumber · required
- location.lngnumber · required
- contactobject · required
The contact the place publishes in the Tulo app; null when not public.
- contact.phonestring or null · required
- contact.emailstring or null · required
- contact.websitestring or null · required
- contact.whatsappstring or null · required
- amenitiesarray of string · required
- photosarray of Photo · required
See Photo.
- policiesPolicies · required
See Policies.
- room_typesarray of RoomType · required
See RoomType.
Policies#
- check_in_fromstring or null · required
HH:MM, Africa/Lusaka. Null until the property sets it.
pattern ^([01][0-9]|2[0-3]):[0-5][0-9]$
- check_out_untilstring or null · required
HH:MM, Africa/Lusaka. Null until the property sets it.
pattern ^([01][0-9]|2[0-3]):[0-5][0-9]$
- house_rulesstring or null · required
- cancellation_textstring or null
The property's own cancellation terms for its room charges (added in 1.3.0, P1-38 Phase E). Null until the property sets it. It never covers the Tulo booking fee, whose rule the Tulo app shows itself.
at most 1500 characters
- paymentstring · Payment · required
The booking is settled at the property.
one of "pay_at_property"
- reservation_feeReservationFee · required
Always
{amount: 0, applies: false}for website bookings.See ReservationFee.
RoomType#
- idstring (uuid) · required
- namestring · required
- descriptionstring or null · required
- unitstring · Unit · required
What one unit is.
bedfor a shared (dorm) room type, priced per bed;placefor a whole dwelling sold as one unit.one of "room", "bed", "place"
- capacity_adultsinteger · required
at least 0
- capacity_childreninteger · required
at least 0
- max_occupancyinteger · required
Guests one unit sleeps (1 for a bed).
at least 0
- min_nightsinteger · required
The room type's own minimum; dated restrictions are in the calendar.
at least 1
- cleaning_feeinteger (ngwee) · required
Amount in ngwee (ZMW minor units; 100 ngwee = K1).
at least 0
- photosarray of Photo · required
In display order; the first is the cover.
See Photo.
- amenitiesarray of RoomAmenity
In-room amenities (1.2.0), in vocabulary order. Empty when none are set.
See RoomAmenity.
Calendar#
- place_idstring (uuid) · required
- fromstring (date) · required
- tostring (date) · required
- currencystring · required
ISO 4217 code; today always ZMW.
pattern ^[A-Z]{3}$
- roomsinteger
1.4.0: the
roomsparameter, echoed; absent when not sent.at least 1
- room_typesarray of object · required
- room_types[].room_type_idstring (uuid) · required
- room_types[].namestring · required
- room_types[].unitstring · Unit · required
What one unit is.
bedfor a shared (dorm) room type, priced per bed;placefor a whole dwelling sold as one unit.one of "room", "bed", "place"
- room_types[].nightsarray of object · required
- room_types[].nights[].datestring (date) · required
- room_types[].nights[].available_unitsinteger · required
at least 0
- room_types[].nights[].nightly_rateinteger or null · required
Ngwee per unit for this night; null when the property has set no rate.
at least 1
- room_types[].nights[].min_stayinteger · required
Minimum nights for a stay arriving this night.
at least 1
- room_types[].nights[].closed_to_arrivalboolean · required
- room_types[].nights[].stop_sellboolean · required
- room_types[].nights[].bookableboolean · required
At least one unit (with
rooms, at least that many units of a room or place type) is open, a rate is set and sales are not stopped.- room_types[].nights[].reasonstring
1.4.0, only when the request sends
roomsand the night is not bookable: why.not_enough_rooms: some units are open but fewer thanrooms. Treat a value you do not know as not bookable.one of "stop_sell", "fully_booked", "not_enough_rooms", "no_rate"
Quote#
- place_idstring (uuid) · required
- check_instring (date) · required
- check_outstring (date) · required
- nightsinteger · required
at least 1
- adultsinteger · required
at least 1
- childreninteger · required
at least 0
- currencystring · required
ISO 4217 code; today always ZMW.
pattern ^[A-Z]{3}$
- paymentstring · Payment · required
The booking is settled at the property.
one of "pay_at_property"
- reservation_feeReservationFee · required
Always
{amount: 0, applies: false}for website bookings.See ReservationFee.
- room_optionsarray of object · required
Sellable room types for the stay; empty when nothing is sellable.
- room_options[].room_type_idstring (uuid) · required
- room_options[].namestring · required
- room_options[].unitstring · Unit · required
What one unit is.
bedfor a shared (dorm) room type, priced per bed;placefor a whole dwelling sold as one unit.one of "room", "bed", "place"
- room_options[].available_unitsinteger · required
at least 1
- room_options[].nightly_rateinteger (ngwee) · required
Amount in ngwee (ZMW minor units; 100 ngwee = K1).
at least 0
- room_options[].cleaning_feeinteger (ngwee) · required
Amount in ngwee (ZMW minor units; 100 ngwee = K1).
at least 0
- room_options[].stay_totalinteger (ngwee) · required
Amount in ngwee (ZMW minor units; 100 ngwee = K1).
at least 0
- room_options[].party_fitsboolean · required
- room_options[].units_requiredinteger · required
The fewest units of this type the party needs.
at least 0
- room_options[].max_adultsinteger · required
at least 0
- room_options[].max_childreninteger · required
at least 0
- room_options[].roomsinteger
1.4.0, only when the request sends
rooms: the rooms asked for.at least 1
- room_options[].rooms_fitboolean
1.4.0, only with
rooms: that many units are open on every night and the party splits across them (each room at least one adult, within the type's capacity). False withavailable_unitsbelowroomsmeans not enough rooms; a dorm (bed) type fits only as one room.- room_options[].selection_totalinteger (ngwee)
1.4.0, only with
rooms:stay_totalxrooms, the room price of all the rooms, paid at the property. Absent for a dorm type asked for more than one room.at least 0
- room_options[].suggested_splitarray of RoomParty
1.4.0, only with
roomsand when the party splits across that many rooms: Tulo's default party per room, room 1 first. Send it back asrooms[]on create.See RoomParty.
RoomParty#
The party in one room (1.4.0).
- adultsinteger · required
at least 1
- childreninteger · required
at least 0
CreateBookingRoom#
One room of a multi-room create (1.4.0).
- room_type_idstring (uuid) · required
Every room of one booking has the same room type, not a shared (dorm) type.
- adultsinteger · required
At least one adult in every room.
1 to 50
- childreninteger
0 to 50 · default 0
- guest_namestring
Optional name of who sleeps in this room (a name only). Room 1 is the lead guest's by default.
at most 120 characters
CreateBookingRequest#
Either one room (room_type_id, adults, optional children and beds) or, from 1.4.0, several rooms of one type (rooms, with none of the four top-level fields). Sending both is 422.
- room_type_idstring (uuid)
required for "One room"
- check_instring (date) · required
- check_outstring (date) · required
- adultsinteger
required for "One room" · 1 to 50
- childreninteger
0 to 50 · default 0
- bedsinteger
Shared (dorm) room types only; at least one bed per adult.
1 to 50
- roomsarray of CreateBookingRoom
1.4.0. Several rooms of one type as one booking, one entry per room, all booked or none. No limit on the number of rooms beyond what is open. The quote's
suggested_splitis a ready split.See CreateBookingRoom.
required for "Several rooms (1.4.0)" · at least 1 items
- guestobject · required
- guest.namestring · required
at least 1 characters
- guest.phonestring · required
Zambian mobile number, for example 0971234567 or +260971234567.
BookingStatus#
A website booking is confirmed when created, and ends as cancelled_by_guest (cancelled through this API) or cancelled_by_property (cancelled at the desk), or no_show (the property marked that the guest did not arrive; P1-38, additive; it can go back to confirmed if the property undoes it the same day). The other values exist for Tulo app bookings and appear only in webhooks.
checking_availabilityheld_pending_paymentexpired_unpaidconfirmingconfirmedfailed_rejectedfailed_timeoutrefundedcancelled_by_guestcancelled_by_propertyno_show
Booking#
A booking. Never carries an ID document number. guest is present only on bookings this website created.
- idstring (uuid) · required
- place_idstring (uuid) · required
- room_type_idstring (uuid) · required
- statusstring · BookingStatus · required
A website booking is
confirmedwhen created, and ends ascancelled_by_guest(cancelled through this API) orcancelled_by_property(cancelled at the desk), orno_show(the property marked that the guest did not arrive; P1-38, additive; it can go back toconfirmedif the property undoes it the same day). The other values exist for Tulo app bookings and appear only in webhooks.See BookingStatus.
one of "checking_availability", "held_pending_payment", "expired_unpaid", "confirming", "confirmed", "failed_rejected", "failed_timeout", "refunded", "cancelled_by_guest", "cancelled_by_property", "no_show"
- status_labelstring · required
English label for display.
- sourcestring · required
one of "website", "tulo_app", "walk_in", "phone"
- check_instring (date) · required
- check_outstring (date) · required
- nightsinteger · required
at least 1
- adultsinteger · required
at least 1
- childreninteger · required
at least 0
- bedsinteger · required
Beds held for a shared (dorm) room type; 1 for any other unit.
at least 0
- stay_totalinteger (ngwee) · required
Amount in ngwee (ZMW minor units; 100 ngwee = K1).
at least 0
- currencystring · required
ISO 4217 code; today always ZMW.
pattern ^[A-Z]{3}$
- paymentstring · Payment · required
The booking is settled at the property.
one of "pay_at_property"
- guestobject
- guest.namestring · required
- guest.phonestring · required
E.164, for example +260971234567.
- created_atstring (date-time) · required
- confirmed_atstring (date-time) or null · required
- cancelled_atstring (date-time) or null · required
- checked_in_atstring (date-time) or null · required
- checked_out_atstring (date-time) or null · required
- room_countinteger
1.4.0, only on a booking made with two or more rooms: the rooms still booked (not cancelled).
at least 0
- roomsarray of BookingRoom
1.4.0, only on a booking made with two or more rooms: every room, cancelled ones too, in
positionorder. The top-levelroom_type_idis room 1's;adults,childrenandstay_totalare totals over the rooms still booked.See BookingRoom.
at least 2 items
BookingRoom#
One room of a multi-room booking (1.4.0). Never the physical room number. state is the room's own state; the booking's status still rules (a cancelled booking cancels every room).
- idstring (uuid) · required
Stable id of this room within the booking.
- positioninteger · required
Room 1, Room 2, ... as the property and the guest see it.
at least 1
- room_type_idstring (uuid) · required
- statestring · required
cancelled: the property cancelled this room;no_show: the property marked that its guests did not arrive. Treat a value you do not know as not staying.one of "booked", "checked_in", "checked_out", "cancelled", "no_show"
- adultsinteger · required
at least 1
- childreninteger · required
at least 0
- stay_totalinteger (ngwee) · required
This room's price for the stay, paid at the property. A cancelled room's price has left the booking's
stay_total.at least 0
- checked_in_atstring (date-time) or null · required
- checked_out_atstring (date-time) or null · required
- cancelled_atstring (date-time) or null · required
- guestsarray of object
Who sleeps in this room, lead guest first, names only; present only on bookings this website created and when names are set.
- guests[].namestring · required
- guests[].is_leadboolean · required
WebhookEvent#
The body Tulo POSTs to {base_url}/tulo/webhooks for booking events at a place with a partner integration. Header X-Tulo-Event repeats event. Every delivery is signed (see "Webhooks" in the description and the bookingEvent webhook).
- eventstring · required
Every event Tulo sends (1.4.1: the full list, checked against the code by a test). Each carries the whole booking as it is after the change, in the
Bookingshape; there is no diff. New events may be added within v1: ignore names you do not know.booking.created: a Tulo app booking is waiting for the property to confirm it by hand (statusconfirming). It is followed bybooking.confirmedorbooking.cancelled.booking.confirmed: a booking is confirmed. A website, walk-in or phone booking when it is made; a Tulo app booking when it is confirmed (automatically or by the property).booking.cancelled: the whole booking ended before the stay:cancelled_by_guest,cancelled_by_property, or a Tulo app request the property declined (failed_rejected) or did not confirm in time (failed_timeout).booking.modified: the property changed the booking: dates, stay end, room type, party, beds, price, guest details or note.booking.checked_in: the guest checked in (several rooms: the first room in).booking.checked_out: the guest checked out (several rooms: the last room out).booking.no_show: the property marked that the guest did not arrive (statusno_show).booking.no_show_undone: the property undid a no-show the same day (back toconfirmed).booking.check_in_undone: the property undid a check-in.booking.check_out_undone: the property undid a check-out.booking.room_cancelled(multi-room, 1.4.0): the property cancelled one room of a booking, or marked that one room's guests did not arrive. The booking staysconfirmed; inbooking.rooms[]that room hasstatecancelledorno_showandcancelled_at, androom_count,adults,childrenandstay_totalno longer count it. The last room cannot be cancelled this way (the whole booking is cancelled instead,booking.cancelled).booking.updated(multi-room, 1.4.0): something inside a multi-room booking changed without changing its status: a room added, a room moved to another room of the same type, one room checked in or out while others are not, or a named guest added, renamed, moved or removed.booking.unit_moved: the property moved the booking to another room of the same type (for example a room taken out of order). Nothing in the payload changes for the website (the physical room is never sent); you may ignore it.
one of "booking.created", "booking.confirmed", "booking.cancelled", "booking.modified", "booking.checked_in", "booking.checked_out", "booking.no_show", "booking.no_show_undone", "booking.check_in_undone", "booking.check_out_undone", "booking.room_cancelled", "booking.updated", "booking.unit_moved"
- occurred_atstring (date-time) · required
- partner_place_idstring · required
The id Tulo set for this place in your system during onboarding; empty when none was set.
- bookingBooking · required
A booking. Never carries an ID document number.
guestis present only on bookings this website created.See Booking.
