Get Pick List
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList"
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}/pickList', 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}/pickList",
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}/pickList"
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}/pickList")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList")
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[
{
"NayaxProductID": 123,
"ProductID": "<string>",
"MachineID": 123,
"MDBCode": 123,
"PACode": "<string>",
"SelectionID": "<string>",
"OperatorButtonCode": "<string>",
"PAR": 123,
"MissingStock": 123,
"OnHandStock": 123,
"VendOutAlertThreshold": 123,
"MachinePrice": 123,
"CreditCardPrice": 123,
"RetailPrice": 123,
"DEXPrice": 123,
"LastPickQTY": 123,
"PrePaidCardPrice": 123,
"CashPrice": 123,
"DEXProductName": "<string>",
"ProductName": "<string>",
"SalesSourceID": 123,
"MachineInventoryRef": "<string>",
"MachineRef": "<string>",
"ProductRef": "<string>"
}
]Machine Inventory
Get Pick List
Retrieves the pick list associated with a specific machine identified by MachineID.
Get Pick List
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList"
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}/pickList', 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}/pickList",
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}/pickList"
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}/pickList")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/pickList")
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[
{
"NayaxProductID": 123,
"ProductID": "<string>",
"MachineID": 123,
"MDBCode": 123,
"PACode": "<string>",
"SelectionID": "<string>",
"OperatorButtonCode": "<string>",
"PAR": 123,
"MissingStock": 123,
"OnHandStock": 123,
"VendOutAlertThreshold": 123,
"MachinePrice": 123,
"CreditCardPrice": 123,
"RetailPrice": 123,
"DEXPrice": 123,
"LastPickQTY": 123,
"PrePaidCardPrice": 123,
"CashPrice": 123,
"DEXProductName": "<string>",
"ProductName": "<string>",
"SalesSourceID": 123,
"MachineInventoryRef": "<string>",
"MachineRef": "<string>",
"ProductRef": "<string>"
}
]Authorizations
Path Parameters
Response
200 - application/json
The pick list was successfully retrieved.
Was this page helpful?