Skip to content

REST API v2. Authenticate with a Bearer JWT in the Authorization header unless an endpoint is marked public.

Servers​

https://v2-staging.tscheckout.comCurrent host

Get system version information​

GET
/api/v2/utilities/system-version

Returns version metadata about the running TicketSocket installation, including the application version, PHP version, last-updated timestamp, and copyright year.

Authorizations​

bearerAuth
Type
HTTP (bearer)

Responses​

System version information

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization

Samples​


Get supported countries​

GET
/api/v2/utilities/supported-countries

Returns the map of supported ISO 3166-1 alpha-2 country codes to display names used by checkout and other settings.

Authorizations​

bearerAuth
Type
HTTP (bearer)

Responses​

Supported countries map

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization

Samples​


Get the currencies currently supported​

GET
/api/v2/utilities/get-supported-currencies

Returns a list of supported 3-letter currencies

Authorizations​

bearerAuth
Type
HTTP (bearer)

Responses​

Playground​

Authorization

Samples​


Get the display name of a currency​

GET
/api/v2/utilities/get-currency-display-name

Returns a display name for the provided 3-letter currency name

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Query Parameters

currency*

The three letter currency that you want to get the display name for

Type
string
Required

Responses​

Playground​

Authorization
Variables
Key
Value

Samples​


Round an amount of a currency​

GET
/api/v2/utilities/round-currency

Returns a rounded float to 2 decimals (currently), may be expanded to support other options in the future

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Query Parameters

amount*

Amount of the currency in raw form

Type
string
Required

Responses​

Playground​

Authorization
Variables
Key
Value

Samples​


Powered by VitePress OpenAPI