Get payment methods by ActorID
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/paymentMethods \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/paymentMethods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/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[
{
"ActorID": 123,
"PaymentMethodID": 123,
"ExtraChargePercentageBit": true,
"ExtraChargeValue": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"ExternalPaymentProviderURL": "<string>",
"ExternalPaymentProviderID": 123,
"ExternalPaymentProviderModeID": 123,
"ExternalPaymentProviderUsername": "<string>",
"ExternalPaymentProviderPassword": "<string>",
"ExternalPaymentProviderMerchantID": "<string>",
"ExternalPaymentProviderKey": "<string>",
"ExternalPaymentProviderAppID": "<string>",
"ExternalPaymentProviderCertificatePath": "<string>",
"ExternalPaymentProviderCertificatePassword": "<string>",
"ExternalPaymentProviderApiKey": "<string>",
"ExternalPaymentProviderLocationIdentifier": "<string>",
"PaymentMethodWorkingDays": [
{
"name": "<string>",
"week_day": 123,
"start_time": "<string>",
"end_time": "<string>",
"work_hour_lut_id": 123
}
],
"PaymentMethodCustomData": "<string>",
"ExtraChargeBackupValue": 123,
"ChargeMachineID": 123
}
]Actors
Get payment methods by ActorID
Retrieves a list of payment methods associated with a specific actor, identified by the ActorID.
Get payment methods by ActorID
curl --request GET \
--url https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/paymentMethods \
--header 'Authorization: Bearer <token>'import requests
url = "https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/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/actors/{ActorID}/paymentMethods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/actors/{ActorID}/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[
{
"ActorID": 123,
"PaymentMethodID": 123,
"ExtraChargePercentageBit": true,
"ExtraChargeValue": 123,
"LastUpdated": "2023-11-07T05:31:56Z",
"ExternalPaymentProviderURL": "<string>",
"ExternalPaymentProviderID": 123,
"ExternalPaymentProviderModeID": 123,
"ExternalPaymentProviderUsername": "<string>",
"ExternalPaymentProviderPassword": "<string>",
"ExternalPaymentProviderMerchantID": "<string>",
"ExternalPaymentProviderKey": "<string>",
"ExternalPaymentProviderAppID": "<string>",
"ExternalPaymentProviderCertificatePath": "<string>",
"ExternalPaymentProviderCertificatePassword": "<string>",
"ExternalPaymentProviderApiKey": "<string>",
"ExternalPaymentProviderLocationIdentifier": "<string>",
"PaymentMethodWorkingDays": [
{
"name": "<string>",
"week_day": 123,
"start_time": "<string>",
"end_time": "<string>",
"work_hour_lut_id": 123
}
],
"PaymentMethodCustomData": "<string>",
"ExtraChargeBackupValue": 123,
"ChargeMachineID": 123
}
]Authorizations
Path Parameters
Response
200 - application/json
A list of payment methods associated with the actor was retrieved successfully.
Was this page helpful?