curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods"
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}/paymentMethods', 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}/paymentMethods",
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}/paymentMethods"
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}/paymentMethods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods")
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[
{
"MachineID": 123,
"PaymentMethodID": 123,
"ConvenienceFeePercentageBit": true,
"ConvenienceFeeValue": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"ExternalPaymentProviderUsername": "<string>",
"ExternalPaymentProviderPassword": "<string>",
"ExternalPaymentProviderTerminalID": "<string>",
"ExternalPaymentProviderLocationIdentifier": "<string>",
"PaymentMethodWorkingDays": [
{
"name": "<string>",
"week_day": 123,
"start_time": "<string>",
"end_time": "<string>",
"work_hour_lut_id": 123
}
],
"PaymentMethodCustomData": "<string>",
"ConvenienceFeeBackupValue": 123,
"PaymentMethodQRString": "<string>"
}
]Get Payment Methods for Machine
Retrieves the list of payment methods associated with a specific machine, identified by MachineID. This allows users to view the available payment options configured for the machine.
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods"
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}/paymentMethods', 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}/paymentMethods",
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}/paymentMethods"
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}/paymentMethods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods")
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[
{
"MachineID": 123,
"PaymentMethodID": 123,
"ConvenienceFeePercentageBit": true,
"ConvenienceFeeValue": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"ExternalPaymentProviderUsername": "<string>",
"ExternalPaymentProviderPassword": "<string>",
"ExternalPaymentProviderTerminalID": "<string>",
"ExternalPaymentProviderLocationIdentifier": "<string>",
"PaymentMethodWorkingDays": [
{
"name": "<string>",
"week_day": 123,
"start_time": "<string>",
"end_time": "<string>",
"work_hour_lut_id": 123
}
],
"PaymentMethodCustomData": "<string>",
"ConvenienceFeeBackupValue": 123,
"PaymentMethodQRString": "<string>"
}
]Authorizations
Enter your Bearer token. It's required to authenticate API requests.
Path Parameters
The unique identifier of the machine.
Response
A list of payment methods configured for the specified machine.
The unique identifier of the machine associated with the payment method.
The unique identifier of the payment method.
Indicates whether a convenience fee is applied as a percentage.
The value of the convenience fee applied to the payment method.
The date and time when the payment method was last updated.
The username used to authenticate with an external payment provider.
The password used to authenticate with an external payment provider.
The terminal ID provided by the external payment provider.
The location identifier used by the external payment provider.
The working days during which the payment method is active.
Show child attributes
Show child attributes
Custom data related to the payment method, provided as a string.
A backup value for the convenience fee in case the primary value is unavailable.
A QR code string associated with the payment method.
Was this page helpful?