curl --request GET \
--url https://staging.api.prexsell.com/v2/offers \
--header 'x-api-key: <api-key>'import requests
url = "https://staging.api.prexsell.com/v2/offers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://staging.api.prexsell.com/v2/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.prexsell.com/v2/offers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.prexsell.com/v2/offers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.prexsell.com/v2/offers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.prexsell.com/v2/offers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"offers": [
{
"id": "eyJhbGciOiJIUzI1NiJ9...",
"source": "PrexSell",
"seatsLeft": 12,
"arrivalDate": "2026-06-15T08:00:00.000Z",
"expiresAt": "2026-06-14T00:20:00.000Z",
"prices": [
{
"id": "price-1",
"amount": 1450,
"currency": "UAH"
}
],
"slices": [
{
"id": "seg-123",
"duration": 480,
"departureDate": "2026-06-15T00:00:00.000Z",
"arrivalDate": "2026-06-15T08:00:00.000Z",
"bus": {
"id": "bus-1",
"seatsQty": 50,
"registrationNumber": "AA1234BB",
"brand": "Mercedes-Benz",
"model": "Tourismo",
"images": [
{
"id": "img-1",
"name": "Bus exterior",
"url": "https://example.com/bus.jpg"
}
]
},
"carriage": {
"id": "carriage-1",
"name": "Автопарк №1",
"phones": [
"+380501234567"
]
},
"route": {
"id": "route-1",
"name": "Київ — Варшава",
"slug": "kyiv-warsaw",
"description": "Щоденний нічний рейс",
"company": {
"id": "company-1",
"name": "PrexSell Lines",
"slug": "prexsell-lines",
"email": "ops@prexsell-lines.com",
"website": "https://prexsell-lines.com",
"rules": "Пасажир має прибути за 20 хвилин до відправлення.",
"logoUrl": "https://example.com/logo.png",
"ceo": "Олена Коваль",
"socials": [
"https://facebook.com/prexsell.lines"
],
"partnerCompany": null
},
"permissions": [
{
"id": "perm-1",
"role": "Agent",
"accesses": [
"book",
"cancel"
],
"type": "Partner"
}
],
"services": [
{
"id": "svc-1",
"name": "Wi-Fi"
},
{
"id": "svc-2",
"name": "Кондиціонер"
}
]
},
"stops": [
{
"id": "stop-1",
"cityStopId": "cs-1",
"departureTime": "06:30",
"arrivalTime": null,
"platform": "3",
"place": "Центральний автовокзал",
"latitude": 50.4501,
"longitude": 30.5234,
"city": {
"id": "city-kyiv",
"name": "Київ",
"slug": "kyiv",
"country": "UA",
"timeZone": "Europe/Kyiv"
}
},
{
"id": "stop-2",
"cityStopId": "cs-2",
"departureTime": null,
"arrivalTime": "08:00",
"platform": "5",
"place": "Dworzec Zachodni",
"latitude": 52.2297,
"longitude": 21.0122,
"city": {
"id": "city-warsaw",
"name": "Варшава",
"slug": "warsaw",
"country": "PL",
"timeZone": "Europe/Warsaw"
}
}
]
}
],
"refundRules": [
{
"id": "rule-1",
"hours": 24,
"amount": 800
},
{
"id": "rule-2",
"hours": 6,
"amount": 400
}
],
"discounts": [
{
"id": "disc-1",
"name": "Студентська знижка",
"description": "Знижка 10% для студентів з дійсним квитком",
"rule": "Percent",
"startDate": "2026-06-01T00:00:00.000Z",
"endDate": "2026-12-31T23:59:59.000Z",
"amount": 100
}
]
}
],
"source": "PrexSell"
}
}{
"errors": [
{
"message": "AUTH_INVALID_CREDENTIALS",
"errorCode": "UNAUTHORIZED"
}
]
}Search bookable offers
Returns bookable offers for the given city pair, date, and passenger count. Authenticated via the api-key header; data scoped to the caller’s partner. Offer ids are 20-minute signed JWT booking tokens — use expiresAt to detect expiry before attempting to book.
curl --request GET \
--url https://staging.api.prexsell.com/v2/offers \
--header 'x-api-key: <api-key>'import requests
url = "https://staging.api.prexsell.com/v2/offers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://staging.api.prexsell.com/v2/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.prexsell.com/v2/offers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.prexsell.com/v2/offers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.prexsell.com/v2/offers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.prexsell.com/v2/offers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"offers": [
{
"id": "eyJhbGciOiJIUzI1NiJ9...",
"source": "PrexSell",
"seatsLeft": 12,
"arrivalDate": "2026-06-15T08:00:00.000Z",
"expiresAt": "2026-06-14T00:20:00.000Z",
"prices": [
{
"id": "price-1",
"amount": 1450,
"currency": "UAH"
}
],
"slices": [
{
"id": "seg-123",
"duration": 480,
"departureDate": "2026-06-15T00:00:00.000Z",
"arrivalDate": "2026-06-15T08:00:00.000Z",
"bus": {
"id": "bus-1",
"seatsQty": 50,
"registrationNumber": "AA1234BB",
"brand": "Mercedes-Benz",
"model": "Tourismo",
"images": [
{
"id": "img-1",
"name": "Bus exterior",
"url": "https://example.com/bus.jpg"
}
]
},
"carriage": {
"id": "carriage-1",
"name": "Автопарк №1",
"phones": [
"+380501234567"
]
},
"route": {
"id": "route-1",
"name": "Київ — Варшава",
"slug": "kyiv-warsaw",
"description": "Щоденний нічний рейс",
"company": {
"id": "company-1",
"name": "PrexSell Lines",
"slug": "prexsell-lines",
"email": "ops@prexsell-lines.com",
"website": "https://prexsell-lines.com",
"rules": "Пасажир має прибути за 20 хвилин до відправлення.",
"logoUrl": "https://example.com/logo.png",
"ceo": "Олена Коваль",
"socials": [
"https://facebook.com/prexsell.lines"
],
"partnerCompany": null
},
"permissions": [
{
"id": "perm-1",
"role": "Agent",
"accesses": [
"book",
"cancel"
],
"type": "Partner"
}
],
"services": [
{
"id": "svc-1",
"name": "Wi-Fi"
},
{
"id": "svc-2",
"name": "Кондиціонер"
}
]
},
"stops": [
{
"id": "stop-1",
"cityStopId": "cs-1",
"departureTime": "06:30",
"arrivalTime": null,
"platform": "3",
"place": "Центральний автовокзал",
"latitude": 50.4501,
"longitude": 30.5234,
"city": {
"id": "city-kyiv",
"name": "Київ",
"slug": "kyiv",
"country": "UA",
"timeZone": "Europe/Kyiv"
}
},
{
"id": "stop-2",
"cityStopId": "cs-2",
"departureTime": null,
"arrivalTime": "08:00",
"platform": "5",
"place": "Dworzec Zachodni",
"latitude": 52.2297,
"longitude": 21.0122,
"city": {
"id": "city-warsaw",
"name": "Варшава",
"slug": "warsaw",
"country": "PL",
"timeZone": "Europe/Warsaw"
}
}
]
}
],
"refundRules": [
{
"id": "rule-1",
"hours": 24,
"amount": 800
},
{
"id": "rule-2",
"hours": 6,
"amount": 400
}
],
"discounts": [
{
"id": "disc-1",
"name": "Студентська знижка",
"description": "Знижка 10% для студентів з дійсним квитком",
"rule": "Percent",
"startDate": "2026-06-01T00:00:00.000Z",
"endDate": "2026-12-31T23:59:59.000Z",
"amount": 100
}
]
}
],
"source": "PrexSell"
}
}{
"errors": [
{
"message": "AUTH_INVALID_CREDENTIALS",
"errorCode": "UNAUTHORIZED"
}
]
}Authorizations
Partner API key, sent in the x-api-key request header. Required for bookable offer search and all booking operations. To obtain a key, register as a PREXSELL partner in the backoffice (backoffice.prexsell.com, or staging.backoffice.prexsell.com for staging) and contact support if you need help.
Query Parameters
URL-friendly slug of the departure city.
1"kyiv"
URL-friendly slug of the arrival city.
1"warsaw"
Database ID of the departure city. Use slug addressing where possible; id addressing is kept pending Moesif usage analysis (ADR-0033 §7).
1"city-abc123"
Database ID of the arrival city. Use slug addressing where possible; id addressing is kept pending Moesif usage analysis (ADR-0033 §7).
1"city-def456"
Departure date in ISO 8601 format (YYYY-MM-DD). Garbage values yield 400.
"2026-06-15"
Number of passengers (renamed from legacy passengersQty). Minimum 1.
x >= 12
Response
Offer search results.
Offer search results.
Show child attributes
Show child attributes
