Skip to main content

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 environmentProduction environment
Base URLhttps://dev-api.globalticket.uz/esboProvided at onboarding
DataTest catalog, sessions and prices; may change without noticeReal 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}
MethodResponseMeaningWhat to do
login200Logged inStore the tokens
login400Wrong email or password, or fields are emptyCheck the credentials
login429Login from this IP address is temporarily blockedRetry after the time in the Retry-After header
refresh-token400refreshToken has expired or is invalidLog in again with login
Private method401Token expired, invalid or missingCall refresh-token; if it returned 400, log in again

Request rules​

RuleValue
FormatJSON in UTF-8, header Content-Type: application/json
LanguageAccept-Language header — language of names and error texts
AmountsIn sums (UZS). Prices and the order total are calculated by the server
Date and timeA string like 2026-12-01T19:00:00, Tashkent local time (UTC+5), without an offset
Paginated listsGET /catalog and GET /orders: page starts at 1, limit up to 100. Response: items, totalElements, page, size, totalPages

Languages​

LanguageAccept-Languagephoto bannerticketLanguage
RussianruruRU
Uzbek (Latin)uzuzUZ
Uzbek (Cyrillic)uz-CyrluzCyrlUZ_CYRL
EnglishenenEN
KarakalpakkaakaaKAA

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:

  1. Go through the testing checklist
  2. Request a production account and the production base URL from the ESBO team
  3. Replace the base URL and credentials
  4. Make a control sale