Update Pick List
curl --request PUT \
--url https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"MachineId": 123,
"Products": [
{
"MachineProductId": 123,
"PickQty": 123
}
]
}
]
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update"
payload = [
{
"MachineId": 123,
"Products": [
{
"MachineProductId": 123,
"PickQty": 123
}
]
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([{MachineId: 123, Products: [{MachineProductId: 123, PickQty: 123}]}])
};
fetch('https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update', 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/inventory/picklists/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
'MachineId' => 123,
'Products' => [
[
'MachineProductId' => 123,
'PickQty' => 123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update"
payload := strings.NewReader("[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body[
{
"MachineID": 123,
"Products": [
{
"NayaxProductID": 123,
"MachineProductID": 123,
"ProductID": "<string>",
"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,
"AmountInTray": 123,
"GroupId": 123
}
]
}
]Machine Inventory
Update Pick List
Updates the pick list for a specific machine, allowing changes to the quantity of products to be picked.
Update Pick List
curl --request PUT \
--url https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"MachineId": 123,
"Products": [
{
"MachineProductId": 123,
"PickQty": 123
}
]
}
]
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update"
payload = [
{
"MachineId": 123,
"Products": [
{
"MachineProductId": 123,
"PickQty": 123
}
]
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([{MachineId: 123, Products: [{MachineProductId: 123, PickQty: 123}]}])
};
fetch('https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update', 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/inventory/picklists/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
'MachineId' => 123,
'Products' => [
[
'MachineProductId' => 123,
'PickQty' => 123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update"
payload := strings.NewReader("[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"MachineId\": 123,\n \"Products\": [\n {\n \"MachineProductId\": 123,\n \"PickQty\": 123\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body[
{
"MachineID": 123,
"Products": [
{
"NayaxProductID": 123,
"MachineProductID": 123,
"ProductID": "<string>",
"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,
"AmountInTray": 123,
"GroupId": 123
}
]
}
]Authorizations
Enter your Bearer token. It's required to authenticate API requests.
Body
application/json
Was this page helpful?
⌘I