Access and environments
Access to the Agent Sales API is granted by the ESBO team.
Getting access
You receive:
- An agent account — the email and password of a service account
- A list of organizations — museums, theaters and venues whose tickets you are allowed to sell. Only their sales cards are visible in the catalog
Environments
| Test environment | Production environment | |
|---|---|---|
| Base URL | https://dev-api.globalticket.uz/esbo | Provided at onboarding |
| Data | Test catalog, sessions and prices; may change without notice | Real sales |
A method URL is the base URL plus the path: https://dev-api.globalticket.uz/esbo/api/v1/private/agent/catalog.
Access token
Get a token:
POST /api/v1/public/agent/login
Content-Type: application/json
{ "email": "agent@example.com", "password": "<password>" }
The response contains accessToken, refreshToken and expiresIn (the accessToken lifetime in seconds). Refresh without logging in again:
POST /api/v1/public/agent/refresh-token
Content-Type: application/json
{ "refreshToken": "eyJhbGciOi..." }
The response is a new token pair: replace both. Call the login and refresh methods without the Authorization header. In all other methods:
Authorization: Bearer {accessToken}
| Method | Response | Meaning | What to do |
|---|---|---|---|
login | 200 | Logged in | Store the tokens |
login | 400 | Wrong email or password, or fields are empty | Check the credentials |
login | 429 | Login from this IP address is temporarily blocked | Retry after the time in the Retry-After header |
refresh-token | 400 | refreshToken has expired or is invalid | Log in again with login |
| Private method | 401 | Token expired, invalid or missing | Call refresh-token; if it returned 400, log in again |
Request rules
| Rule | Value |
|---|---|
| Format | JSON in UTF-8, header Content-Type: application/json |
| Language | Accept-Language header — language of names and error texts |
| Amounts | In sums (UZS). Prices and the order total are calculated by the server |
| Date and time | A string like 2026-12-01T19:00:00, Tashkent local time (UTC+5), without an offset |
| Paginated lists | GET /catalog and GET /orders: page starts at 1, limit up to 100. Response: items, totalElements, page, size, totalPages |
Languages
| Language | Accept-Language | photo banner | ticketLanguage |
|---|---|---|---|
| Russian | ru | ru | RU |
| Uzbek (Latin) | uz | uz | UZ |
| Uzbek (Cyrillic) | uz-Cyrl | uzCyrl | UZ_CYRL |
| English | en | en | EN |
| Karakalpak | kaa | kaa | KAA |
Accept-Language sets the response language; ticketLanguage in confirm sets the ticket language. They are independent.
Switching to the production environment
When testing is complete:
- Go through the testing checklist
- Request a production account and the production base URL from the ESBO team
- Replace the base URL and credentials
- Make a control sale