curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}', 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://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"TimeZoneKey": 123,
"TimeZoneID": "<string>",
"TimeZoneDisplayName": "<string>",
"TimeZoneStandardName": "<string>",
"TimeZoneDayLightName": "<string>",
"TimeZoneOffset": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"LastUpdated": "2023-11-07T05:31:56Z",
"DaylightSavingsBit": true,
"Latitude": 123,
"Longitude": 123
}Get Time Zones by Time Zone Key
Retrieves a specific time zone identified by TimeZoneKey.
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}', 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://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/timeZones/{TimeZoneKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"TimeZoneKey": 123,
"TimeZoneID": "<string>",
"TimeZoneDisplayName": "<string>",
"TimeZoneStandardName": "<string>",
"TimeZoneDayLightName": "<string>",
"TimeZoneOffset": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"LastUpdated": "2023-11-07T05:31:56Z",
"DaylightSavingsBit": true,
"Latitude": 123,
"Longitude": 123
}Authorizations
Enter your Bearer token. It's required to authenticate API requests.
Path Parameters
The unique identifier (key) of the time zone to be retrieved.
Response
The time zone associated with the specified key.
Represents detailed information about a time zone, including its identifiers, display names, offset, and geographical coordinates.
The unique key identifier for the time zone.
The unique identifier string for the time zone.
The display name of the time zone, typically shown to users.
The standard name of the time zone, used during non-daylight saving time.
The daylight saving time name of the time zone, used during daylight saving time.
The time zone offset from Coordinated Universal Time (UTC), measured in hours.
The date and time when the time zone record was created.
The date and time when the time zone record was last updated.
Indicates whether the time zone observes daylight saving time.
The latitude coordinate of the location associated with the time zone.
The longitude coordinate of the location associated with the time zone.
Was this page helpful?