Hage
Hagahan wuxuu ku qoran yahay Ingiriisi.
Hotels
Hotels and guest houses have their own market on Raadiso, Hotels. This guide shows how a hotel keeps its rooms on Raadiso with the partner API: one call per room type, sent again whenever something changes.
The market has two subcategories: hotel-rooms for a hotel and guesthouse-rooms for a guest house.
Furnished apartments and rooms in a home, let by the night, are listings in Property → Short stays.
What a hotel listing is
One listing is one offer of a stay: a room type, or a whole guest house. A hotel with very different rooms lists each kind on its own (your own id tells them apart), or puts the range in the description. Raadiso shows the price per night as "from", the hotel's details, the photos and a Book button that takes guests to your own booking page. Raadiso takes no bookings and no payments.
Whether you are a hotel or a guest house is the subcategory you list in. The stay's details go in
attributes:
| Key | Value | Required |
|---|---|---|
guests |
Guests per room or unit, 1 to 50 | yes |
stars |
1 to 5: your own rating, shown as "Hotel says 3★" | no |
checkInFromHour, checkOutByHour |
Hours, 0 to 23 (14 is shown as 14:00) |
no |
amenity… |
"yes" or "no"; only "yes" is shown |
no |
The amenities are amenityWifi, amenityAirConditioning, amenityPower24h (power around the clock,
from a generator or solar), amenityParking, amenityBreakfast, amenityAirportPickup,
amenityRestaurant, amenityPrayerRoom and amenityFamilyRooms.
Send a room
PUT /partner/v1/listings/{externalId}
with the whole listing. Here the hotel's own id for its deluxe double room is room-deluxe-12:
curl -s -X PUT \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
--data @room-deluxe-12.json \
https://api.raadiso.com/partner/v1/listings/room-deluxe-12
room-deluxe-12.json:
{
"category": "hotels",
"subcategory": "hotel-rooms",
"title": "Deluxe double room with breakfast",
"description": "A quiet room on the second floor, five minutes from the airport road.",
"price": { "amountMinor": 4500, "currency": "USD" },
"attributes": {
"stars": 3,
"guests": 2,
"amenityWifi": "yes",
"amenityBreakfast": "yes",
"amenityPower24h": "yes",
"checkInFromHour": 14,
"checkOutByHour": 12
},
"placeId": "hargeisa",
"photos": [
{ "url": "https://cdn.example-hotel.com/rooms/deluxe-12.jpg", "alt": "The deluxe room" },
{ "url": "https://cdn.example-hotel.com/rooms/deluxe-12-bath.jpg", "alt": "Its bathroom" }
],
"bookingUrl": "https://book.example-hotel.com/rooms/deluxe-12",
"status": "active"
}
- The price is per night, in minor units of the currency (
4500USD is $45.00), in a currency of the place's country. It is optional for a stay: leave it out, or sendnull, to show none. - The place is an id from Raadiso's list of places (
hargeisa,berbera); it decides the country. - Photos are fetched by Raadiso from your
httpsURLs (JPEG, PNG or WebP, at most 15 MB, at most 10), checked and re-encoded. Give each analttext for people who cannot see it.
The first PUT answers 201 Created, later ones 200, with the listing as Raadiso shows it and an
ETag. Sending exactly the same body again changes nothing (no new version, the same ETag), so you
can send all your rooms every night without checking what changed. Text, details and price are checked
at once (422 with the fields at fault); a new listing then stays processing until its photos are
ready, and goes live as published, or after 15 minutes with the photos that arrived.
The Book button
bookingUrl is your booking page for this room. It must be https, and its host must be one of your
organization's booking hosts, which Raadiso's staff set when they create your organization
(GET /partner/v1/organization lists
them); any other host is refused with 422 booking_url_not_allowed. Guests never see the URL itself:
the button goes through a Raadiso page that counts the click and sends them on, and the counted clicks
appear as bookClicks in your
statistics.
Full for a while, or gone
- A room that is not available for a while (closed for the season, full for a long event): send it
again with
"status": "sold". It stays on Raadiso, marked, and comes back with"status": "active". - A room you no longer offer:
DELETE /partner/v1/listings/{externalId}. APUTwithin 30 days brings it back.
Many rooms at once
POST /partner/v1/listing-batches
takes up to 100 listings, each with its externalId, and answers one outcome per item, in order:
created, updated, unchanged or failed with a problem. One failing room does not stop the others.
Messages from guests
Guests can message you about a room on Raadiso. With the leads:read scope (it needs a signed
data-processing agreement) you can read those conversations from your own systems
(GET /partner/v1/leads), and a
webhook tells you when a new one arrives. You answer on Raadiso, signed in as your
business.
The Raadiso Hotels app
The hotel paths of the partner API (your hotel, room types and rooms, rooms out of order, housekeeping,
bookings, the room board, Today and the occupancy report) serve the Raadiso Hotels app, Raadiso's own
front desk for a hotel's staff. In contract 0.3.0 they take only that app's delegated tokens, for a
person signed in as the hotel's owner, manager, front desk or housekeeping, with the hotel named in the
Raadiso-Organization header. A client-credentials token gets 403 insufficient_scope on them, so a
hotel's own systems keep to the listing operations above for now. The reference documents them all,
from taking a booking to
the room board.