API & automation
Tulo's inventory can be initialized programmatically, built for operators and, ahead of time, for the software agents that will onboard properties automatically.
Seeding a property in one call#
One request creates room types, physical rooms (and dorm beds), nightly rates and availability for a whole date window, and switches the property live. It runs on the Tulo operator API and requires an operator token. Properties do not need to touch it; the Tulo team, or its tooling, runs it during onboarding.
POST /admin/v1/places/{place_id}/inventory/seed
Authorization: Bearer <tulo-operator-token>
Content-Type: application/json
{
"config": { "accepting_reservations": true },
"room_types": [
{
"name": "Standard Double",
"booking_mode": "private",
"units": 5,
"nightly_rate": 45000,
"days": 90
},
{
"name": "6-Bed Dorm",
"booking_mode": "shared",
"units": 2,
"beds_per_room": 6,
"nightly_rate": 15000
},
{
"name": "Lake House",
"booking_mode": "entire",
"units": 1,
"nightly_rate": 150000,
"cleaning_fee": 10000,
"days": 60
}
]
}Fields#
- name
Room type name, unique per property. Matching is case-insensitive on re-runs.
- booking_mode
private (default) | shared (dorm beds) | entire (whole place).
- units
How many physical rooms to create (entire is always 1). Rooms are labeled 'Name 1..N'.
- beds_per_room
Shared only: beds created per room ('Bed 1..N').
- nightly_rate
Price per night in minor units (ngwee): 45000 = K450.00.
- currency
3-letter code, defaults to ZMW.
- days
How many days of rates and availability to open, starting today. Default 90, max 366.
- available_count
Units sellable per night. Defaults to units (or units × beds_per_room for shared).
- min_nights
Minimum stay, default 1.
- cleaning_fee
One-time fee in minor units, entire-place types.
- config.accepting_reservations
Go live immediately (default true).
Safe to re-run#
Seeding is idempotent. Room types match by name and are never duplicated; rooms and beds are only created if missing; rates are updated in place; availability only fills dates that do not exist yet, so counts already reduced by real bookings are never resurrected.
Bookings from your own website#
Properties running on the Tulo console can show live rates and availability on their own website and take bookings that land in the console, marked with source website, alongside app bookings and walk-ins. They count against the same availability, so you can never be double-booked across channels.
Keys, signed requests, webhooks and the full endpoint reference are in the Website API documentation. A manager creates the property's keys in the console under Settings, then API keys.
