Get Specific Machine Statistics
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status"
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/machines/{MachineID}/status', 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/machines/{MachineID}/status",
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/machines/{MachineID}/status"
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/machines/{MachineID}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status")
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{
"CoinTubesChangeSum": 123,
"MachineCashBoxLevel": 123,
"CancelledTransactionsCount": 123,
"TemperatureFahrenheit": 123,
"TemperatureCelcius": 123,
"MachineRemarksUpdateDateTime": "2023-11-07T05:31:56Z",
"Machine24HEventCount": 123,
"CardSalesCounter": 123,
"ActorID": 123,
"MachineID": 123,
"PickListGeneratedDateTime": "2023-11-07T05:31:56Z",
"MachineInstallationDate": "2023-11-07T05:31:56Z",
"InventoryCountDateTime": "2023-11-07T05:31:56Z",
"QTYSoldSinceLastVisitDEXSales": 123,
"LastCashSaleDateTime": "2023-11-07T05:31:56Z",
"LastCashlessSaleDateTime": "2023-11-07T05:31:56Z",
"LastDEXReadDateTime": "2023-11-07T05:31:56Z",
"LastGPRSFailureCount": 123,
"LastKeepAliveDateTime": "2023-11-07T05:31:56Z",
"LastPowerDownDateTime": "2023-11-07T05:31:56Z",
"LastPowerUpDateTime": "2023-11-07T05:31:56Z",
"LastReceptionLevel(RSSI)": 123,
"LastTransactionDateTime": "2023-11-07T05:31:56Z",
"LastVisitDateTime": "2023-11-07T05:31:56Z",
"LastLCDMSISDN(CLI)": "<string>",
"ReaderStateErrorDateTime": "2023-11-07T05:31:56Z",
"ReaderStateEnableDateTime": "2023-11-07T05:31:56Z",
"MachineStockRefilDateTime": "2023-11-07T05:31:56Z",
"MachineRemarks": "<string>",
"MachineStatusUpdateDateTime": "2023-11-07T05:31:56Z",
"LastCashlesstransactionID": 123,
"DeviceLastIPAddress": "<string>",
"QTYSoldSinceLastVisitOnlineSales": 123,
"LastCashCollectionDateTime(UTC)": "2023-11-07T05:31:56Z",
"Href": "<string>",
"MachineMQTTStatus": true
}Machines
Get Specific Machine Statistics
Retrieves the current status and statistics of a specific machine identified by the provided MachineID. This includes details like operational status, performance metrics, and other relevant statistics.
Get Specific Machine Statistics
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status"
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/machines/{MachineID}/status', 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/machines/{MachineID}/status",
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/machines/{MachineID}/status"
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/machines/{MachineID}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/status")
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{
"CoinTubesChangeSum": 123,
"MachineCashBoxLevel": 123,
"CancelledTransactionsCount": 123,
"TemperatureFahrenheit": 123,
"TemperatureCelcius": 123,
"MachineRemarksUpdateDateTime": "2023-11-07T05:31:56Z",
"Machine24HEventCount": 123,
"CardSalesCounter": 123,
"ActorID": 123,
"MachineID": 123,
"PickListGeneratedDateTime": "2023-11-07T05:31:56Z",
"MachineInstallationDate": "2023-11-07T05:31:56Z",
"InventoryCountDateTime": "2023-11-07T05:31:56Z",
"QTYSoldSinceLastVisitDEXSales": 123,
"LastCashSaleDateTime": "2023-11-07T05:31:56Z",
"LastCashlessSaleDateTime": "2023-11-07T05:31:56Z",
"LastDEXReadDateTime": "2023-11-07T05:31:56Z",
"LastGPRSFailureCount": 123,
"LastKeepAliveDateTime": "2023-11-07T05:31:56Z",
"LastPowerDownDateTime": "2023-11-07T05:31:56Z",
"LastPowerUpDateTime": "2023-11-07T05:31:56Z",
"LastReceptionLevel(RSSI)": 123,
"LastTransactionDateTime": "2023-11-07T05:31:56Z",
"LastVisitDateTime": "2023-11-07T05:31:56Z",
"LastLCDMSISDN(CLI)": "<string>",
"ReaderStateErrorDateTime": "2023-11-07T05:31:56Z",
"ReaderStateEnableDateTime": "2023-11-07T05:31:56Z",
"MachineStockRefilDateTime": "2023-11-07T05:31:56Z",
"MachineRemarks": "<string>",
"MachineStatusUpdateDateTime": "2023-11-07T05:31:56Z",
"LastCashlesstransactionID": 123,
"DeviceLastIPAddress": "<string>",
"QTYSoldSinceLastVisitOnlineSales": 123,
"LastCashCollectionDateTime(UTC)": "2023-11-07T05:31:56Z",
"Href": "<string>",
"MachineMQTTStatus": true
}Authorizations
Path Parameters
Response
200 - application/json
The current status and statistics of the specified machine.
The date and time of the last keep-alive signal from the device linked to this machine. A keep-alive is a signal the device sends to the Nayax servers to confirm it's connected. The value is null when no keep-alive was ever received. A common cause is that the machine never had a device connected and online.
Was this page helpful?