Get a Machine Product
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID}"
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}/machineProducts/{MachineProductID}', 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}/machineProducts/{MachineProductID}",
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}/machineProducts/{MachineProductID}"
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}/machineProducts/{MachineProductID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID}")
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{
"DexPrice": 123,
"ProductRef": "<string>",
"MachineProductRef": "<string>",
"ProductGroupRef": "<string>",
"MachineRef": "<string>",
"MachineProductID": 123,
"NayaxProductID": 123,
"MachineID": 123,
"MDBCode": 123,
"PAR": 123,
"CashPrice": 123,
"CreditCardPrice": 123,
"MachinePrice": 123,
"RetailPrice": 123,
"DEXProductName": "<string>",
"PACode": "<string>",
"PCCode": "<string>",
"ProductMinimumPickQTY": 123,
"VendOutAlertThreshold": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"MissingStockByDEX": 123,
"DEXMissingStockLastUpdated": "2023-11-07T05:31:56Z",
"PrePaidCardPrice": 123,
"OperatorButtonCode": "<string>",
"LastUpdatedByMobile": "2023-11-07T05:31:56Z",
"ProductGroupID": 123,
"MissingStockByMDB": 123,
"MDBMissingStockLastUpdated": "2023-11-07T05:31:56Z",
"SelectionVendOutBit": true,
"CommissionValue": 123,
"ExternalPrepaidPrice": 123,
"product_mark_for_alerts": 123,
"last_sale_dt": "2023-11-07T05:31:56Z",
"last_sale_mdb_dt": "2023-11-07T05:31:56Z",
"slow_mover": true
}Machine Products
Get a Machine Product
Retrieves details of a specific machine product identified by MachineProductID within the machine identified by MachineID.
Get a Machine Product
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID}"
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}/machineProducts/{MachineProductID}', 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}/machineProducts/{MachineProductID}",
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}/machineProducts/{MachineProductID}"
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}/machineProducts/{MachineProductID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts/{MachineProductID}")
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{
"DexPrice": 123,
"ProductRef": "<string>",
"MachineProductRef": "<string>",
"ProductGroupRef": "<string>",
"MachineRef": "<string>",
"MachineProductID": 123,
"NayaxProductID": 123,
"MachineID": 123,
"MDBCode": 123,
"PAR": 123,
"CashPrice": 123,
"CreditCardPrice": 123,
"MachinePrice": 123,
"RetailPrice": 123,
"DEXProductName": "<string>",
"PACode": "<string>",
"PCCode": "<string>",
"ProductMinimumPickQTY": 123,
"VendOutAlertThreshold": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"MissingStockByDEX": 123,
"DEXMissingStockLastUpdated": "2023-11-07T05:31:56Z",
"PrePaidCardPrice": 123,
"OperatorButtonCode": "<string>",
"LastUpdatedByMobile": "2023-11-07T05:31:56Z",
"ProductGroupID": 123,
"MissingStockByMDB": 123,
"MDBMissingStockLastUpdated": "2023-11-07T05:31:56Z",
"SelectionVendOutBit": true,
"CommissionValue": 123,
"ExternalPrepaidPrice": 123,
"product_mark_for_alerts": 123,
"last_sale_dt": "2023-11-07T05:31:56Z",
"last_sale_mdb_dt": "2023-11-07T05:31:56Z",
"slow_mover": true
}Authorizations
Path Parameters
Response
200 - application/json
The machine product was successfully retrieved.
Represents a product associated with a machine, including pricing, stock levels, and other product-specific data.
Was this page helpful?