Update Machine Products
curl --request PUT \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"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
}
]
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts"
payload = [
{
"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
}
]
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([
{
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
}
])
};
fetch('https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts', 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",
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([
[
'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
]
]),
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/{MachineID}/machineProducts"
payload := strings.NewReader("[\n {\n \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\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/{MachineID}/machineProducts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts")
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 \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\n }\n]"
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
Update Machine Products
Updates the products associated with a specific machine identified by MachineID, with an option to avoid deletion. You can’t change product prices through the Lynx API, because the machine controls pricing.
Update Machine Products
curl --request PUT \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"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
}
]
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts"
payload = [
{
"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
}
]
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([
{
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
}
])
};
fetch('https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts', 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",
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([
[
'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
]
]),
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/{MachineID}/machineProducts"
payload := strings.NewReader("[\n {\n \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\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/{MachineID}/machineProducts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/machineProducts")
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 \"MachineProductID\": 123,\n \"NayaxProductID\": 123,\n \"MachineID\": 123,\n \"MDBCode\": 123,\n \"PAR\": 123,\n \"CashPrice\": 123,\n \"CreditCardPrice\": 123,\n \"MachinePrice\": 123,\n \"RetailPrice\": 123,\n \"DEXProductName\": \"<string>\",\n \"PACode\": \"<string>\",\n \"PCCode\": \"<string>\",\n \"ProductMinimumPickQTY\": 123,\n \"VendOutAlertThreshold\": 123,\n \"LastUpdated\": \"2023-11-07T05:31:56Z\",\n \"MissingStockByDEX\": 123,\n \"DEXMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"PrePaidCardPrice\": 123,\n \"OperatorButtonCode\": \"<string>\",\n \"LastUpdatedByMobile\": \"2023-11-07T05:31:56Z\",\n \"ProductGroupID\": 123,\n \"MissingStockByMDB\": 123,\n \"MDBMissingStockLastUpdated\": \"2023-11-07T05:31:56Z\",\n \"SelectionVendOutBit\": true,\n \"CommissionValue\": 123,\n \"ExternalPrepaidPrice\": 123,\n \"product_mark_for_alerts\": 123,\n \"last_sale_dt\": \"2023-11-07T05:31:56Z\",\n \"last_sale_mdb_dt\": \"2023-11-07T05:31:56Z\",\n \"slow_mover\": true\n }\n]"
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
Query Parameters
Body
application/json
Response
200 - application/json
The machine products were successfully updated.
Was this page helpful?