Getting a key
Keys are for approved agents. Apply, then create a key under Agent portal → API keys. Send it in the X-API-Key header. Each key allows 60 requests a minute and 5,000 a day.
POST/flights/search
Returns live offers. net_price is what you pay (airline fare + 2% service fee). passengers[].id is the duffel_id to send when booking.
curl -X POST https://125tour.com/api/public/v1/flights/search \
-H "X-API-Key: wtp_your_key" -H "Content-Type: application/json" \
-d '{"from":"BNE","to":"POM","depart":"2026-12-10","cabin":"economy","adults":1,"children":0,"infants":0}'POST/bookings
Creates a booking for an offer and returns a payment_url (method: stripe, paypal or bank_transfer — bank wire for AUD fares only). The ticket is issued automatically once payment is confirmed. Offers expire after about 30 minutes.
curl -X POST https://125tour.com/api/public/v1/bookings \
-H "X-API-Key: wtp_your_key" -H "Content-Type: application/json" \
-d '{
"offerId": "off_…",
"email": "traveler@example.com",
"phone": "+67570000000",
"method": "stripe",
"agentMarkup": 25,
"passengers": [{ "duffel_id": "pas_…", "type": "adult", "title": "mr",
"given_name": "John", "family_name": "Kila", "born_on": "1990-04-02", "gender": "m" }]
}'GET/bookings/{reference}
Returns status, ticket_status (awaiting_payment, issuing, issued, failed) and airline_reference for your own bookings.
curl https://125tour.com/api/public/v1/bookings/AGT-1A2B3C4D5E -H "X-API-Key: wtp_your_key"
Errors
401 invalid key · 403 agent not approved · 400 invalid input (see details) · 422 fare expired or can't be booked · 429 rate limit · 502 airline supplier error.