Get Machine Models
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels"
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/lookupTypes/machineModels', 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/lookupTypes/machineModels",
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/lookupTypes/machineModels"
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/lookupTypes/machineModels")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels")
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[
{
"MachineModelID": 123,
"MachineTypeID": 555001,
"ProviderID": 123,
"ProtocolTypeID": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"MachineModelName": "<string>",
"ActorID": 123,
"CreationDateTime": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"UpdatedBy": 123,
"MachineModelStatus": 123
}
]Lookups
Get Machine Models
Retrieves a list of machine models, optionally filtered by a specific MachineModeID.
Get Machine Models
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels"
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/lookupTypes/machineModels', 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/lookupTypes/machineModels",
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/lookupTypes/machineModels"
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/lookupTypes/machineModels")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/lookupTypes/machineModels")
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[
{
"MachineModelID": 123,
"MachineTypeID": 555001,
"ProviderID": 123,
"ProtocolTypeID": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"MachineModelName": "<string>",
"ActorID": 123,
"CreationDateTime": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"UpdatedBy": 123,
"MachineModelStatus": 123
}
]Authorizations
Query Parameters
Response
200 - application/json
A list of machine models matching the specified criteria.
The identifier of the machine type associated with this model.
Available options:
555001, 555002, 555003, 555004, 555005, 555006, 555007, 555008, 556017, 556018, 30000514, 30000515, 30000516, 30000517, 30000518, 30000519, 30000520, 30000521, 30000522, 30000523, 30000524, 30000525, 30000526, 30000527, 30000561, 30000578, 30000579, 30000580, 30000581, 30000582, 30000583, 30000602, 30000611, 30000612, 30000617, 30000618, 30000619, 30000620, 30000623, 176649542, 227707459, 227707460, 504059468, 529079224, 363311433, 244797254 Was this page helpful?