Overview
Every request needs your personal API key in the X-API-Key header. Responses are JSON; add ?format=xml to GET requests for XML.
Dates are YYYY-MM-DD. Prices are net, per room, for the whole stay in the returned currency, with a nightly breakdown.
Limits: maximum 30 nights, 1–3 adults per room, up to 9 rooms per booking. Children are not accepted on this contract.
Recommended flow
GET /hotelsonce a day: hotel content (address, stars, coordinates, images) and room codes for mapping.GET /availability: live availability, prices and cancellation policy.POST /bookwith your own uniqueagent_ref. Retrying with the sameagent_refnever creates a second booking.- Vouchers are emailed automatically. Track status with
GET /booking/{id},GET /bookingsor a webhook.
Rates and cancellation
| Rate | Policy |
|---|---|
Non-Ref | Non-refundable. Cannot be cancelled or changed; 100% charged. |
Ref | Free cancellation until 23:59 (GMT+3) on the day before arrival. From the arrival date on, cancellation is not possible and 100% is charged. |
The exact deadline is returned with every price as cancellation_policy.free_cancellation_until.
Booking status
pending (sent to hotel) → confirmed (hotel confirmation number issued) or cancelled.
GET/hotels
Static content of all hotels on sale, with room types, boards and rate types.
curl -H "X-API-Key: YOUR_KEY" https://api.travioxo.com/hotels
{"hotels":[{"hotel":"RPS","hotel_name":"Ramada Plaza by Wyndham Istanbul Sultanahmet","stars":5,
"country":"TR","city":"Istanbul","region":"Şehzadebaşı, Fatih","address":"Kemalpaşa Mah. Fevziye Cad. No:1, ...",
"postcode":"34134","latitude":41.0105,"longitude":28.9560,"phone":"+90 212 519 41 50","website":"https://...",
"checkin_time":"14:00","checkout_time":"12:00","description":"...","images":["https://..."],
"rooms":[{"room":"Standart","max_adults":3,"description":"","boards":["BB","RO"],"rates":["Non-Ref","Ref"]}]}]}
Boards: RO room only, BB bed & breakfast, HB half board, FB full board, AI all inclusive.
GET/availability
| Param | Required | Description |
|---|---|---|
checkin, checkout | yes | Arrival and departure date. Arrival cannot be in the past. |
adults | no (2) | Adults per room: 1 single, 2 double, 3 triple |
hotel | no | Hotel code to filter |
children, child_ages | no | If sent, the result is empty with a message: children are not accepted. |
curl -H "X-API-Key: YOUR_KEY" "https://api.travioxo.com/availability?checkin=2026-12-01&checkout=2026-12-03&adults=2"
{"checkin":"2026-12-01","checkout":"2026-12-03","adults":2,"results":[
{"hotel":"RPS","hotel_name":"Ramada Plaza by Wyndham Istanbul Sultanahmet","room":"Standart","board":"BB",
"rate":"Ref","adults":2,"nights":2,"total_price":140.0,"currency":"EUR","rooms_left":8,
"nightly":[{"date":"2026-12-01","price":70.0},{"date":"2026-12-02","price":70.0}],
"cancellation_policy":{"refundable":true,"free_cancellation_until":"2026-11-30T23:59:00+03:00","text":"..."}}]}
POST/book
JSON body. One or more rooms in the same hotel and dates.
| Field | Required | Description |
|---|---|---|
hotel, checkin, checkout | yes | As used in /availability |
rooms | yes | List of rooms, each with room, board, rate (optional, cheapest if omitted), adults, guests (list of names, lead guest first) and optional total_price (the price you saw for that room). |
agent_ref | recommended | Your booking reference. The same ref again returns the existing booking with "duplicate":true. |
nationality | recommended | Lead guest nationality, ISO 3166-1 alpha-2 (e.g. GB, DE) |
phone | no | Guest contact phone |
special_requests | no | Free text (max 500 characters), passed to the hotel, subject to availability |
curl -X POST https://api.travioxo.com/book -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" -d '{
"hotel":"RPS","checkin":"2026-12-01","checkout":"2026-12-03","agent_ref":"ABC-1001",
"nationality":"GB","phone":"+44 20 7946 0000","special_requests":"Late arrival around 23:00",
"rooms":[
{"room":"Standart","board":"BB","rate":"Ref","adults":2,"guests":["John Smith","Jane Smith"],"total_price":140.0},
{"room":"Standart","board":"BB","rate":"Ref","adults":1,"guests":["Mary Smith"],"total_price":110.0}]}'
{"booking_id":15,"agent_ref":"ABC-1001","status":"pending","hotel":"RPS","checkin":"2026-12-01","checkout":"2026-12-03",
"total_price":250.0,"currency":"EUR",
"rooms":[{"reservation_id":15,"voucher_no":"TRX-000015","voucher_url":"https://api.travioxo.com/voucher/15?t=...","status":"pending",
"room":"Standart","board":"BB","rate":"Ref","adults":2,"guests":["John Smith","Jane Smith"],"total_price":140.0,
"cancellation_policy":{...},"hotel_confirmation":null, ...},
{"reservation_id":16, ...}]}
Single-room shortcut: instead of rooms you can send room, board, rate, adults, guests and total_price at the top level.
Each room has its own reservation number and voucher. The booking is all-or-nothing: if any room is not available, nothing is booked.
GET/booking/{id}
With a booking_id: the whole booking with all rooms. With a room's reservation_id: that room only. Includes status and hotel_confirmation.
GET/bookings
Your bookings for reconciliation (max 500, newest first). Optional: from, to (dates), by = created (default) or checkin, status = pending / confirmed / cancelled.
curl -H "X-API-Key: YOUR_KEY" "https://api.travioxo.com/bookings?from=2026-12-01&to=2026-12-31&by=checkin"
POST/cancel
Cancel one room with reservation_id, or the whole booking with booking_id.
curl -X POST https://api.travioxo.com/cancel -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" -d '{"booking_id":15}'
Refused with 403 for Non-Ref rooms (non_refundable) and for Ref rooms after the free cancellation deadline (cancellation_deadline_passed). For anything else contact sales@travioxo.com.
GET/account
Your credit limit, outstanding (unpaid) balance and available credit per currency. When a booking would exceed your credit limit it is refused with 402 credit_limit_exceeded.
{"agent":"AG002","name":"Sun Travel","credit_limit":5000.0,"outstanding":{"EUR":1240.0},"available_credit":{"EUR":3760.0}}Webhooks
Optional. Send us an https:// URL and we will POST a JSON message to it whenever one of your bookings changes:
booking.created, booking.confirmed (with the hotel confirmation number), booking.cancelled.
{"event":"booking.confirmed","booking":{"reservation_id":15,"booking_id":15,"status":"confirmed","hotel_confirmation":"RP-55123", ...}}
Header X-Travioxo-Signature = HMAC-SHA256 of the raw body, using sha256(your API key) (hex) as the secret. Up to 3 attempts per event.
Errors
{"error":{"code":"price_changed","message":"Room 1: price has changed."},"total_price":150.0,"currency":"EUR"}
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_dates, past_date, invalid_adults, invalid_nationality, children_not_supported | Fix the request |
| 401 | invalid_api_key | Missing, wrong or disabled key |
| 402 | credit_limit_exceeded | Not enough available credit |
| 403 | non_refundable, cancellation_deadline_passed | Cancellation not allowed |
| 404 | not_found | Booking does not exist or is not yours |
| 409 | not_available, price_changed | Search again; for price changes the new price is returned |