Travioxo Hotel API

Version 3 · Base URL: https://api.travioxo.com · Support: sales@travioxo.com

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

  1. GET /hotels once a day: hotel content (address, stars, coordinates, images) and room codes for mapping.
  2. GET /availability: live availability, prices and cancellation policy.
  3. POST /book with your own unique agent_ref. Retrying with the same agent_ref never creates a second booking.
  4. Vouchers are emailed automatically. Track status with GET /booking/{id}, GET /bookings or a webhook.

Rates and cancellation

RatePolicy
Non-RefNon-refundable. Cannot be cancelled or changed; 100% charged.
RefFree 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

ParamRequiredDescription
checkin, checkoutyesArrival and departure date. Arrival cannot be in the past.
adultsno (2)Adults per room: 1 single, 2 double, 3 triple
hotelnoHotel code to filter
children, child_agesnoIf 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.

FieldRequiredDescription
hotel, checkin, checkoutyesAs used in /availability
roomsyesList 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_refrecommendedYour booking reference. The same ref again returns the existing booking with "duplicate":true.
nationalityrecommendedLead guest nationality, ISO 3166-1 alpha-2 (e.g. GB, DE)
phonenoGuest contact phone
special_requestsnoFree 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"}
HTTPcodeMeaning
400invalid_request, invalid_dates, past_date, invalid_adults, invalid_nationality, children_not_supportedFix the request
401invalid_api_keyMissing, wrong or disabled key
402credit_limit_exceededNot enough available credit
403non_refundable, cancellation_deadline_passedCancellation not allowed
404not_foundBooking does not exist or is not yours
409not_available, price_changedSearch again; for price changes the new price is returned