curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/Void \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001187922,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221121009",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": {
"dynamic_qr_channels_rec_ids": "18,19"
}
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"ReasonCode": 3,
"ReasonText": "Cashless Cancelled by machine"
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/Void"
payload = {
"ActorInfo": {
"Id": 2001187922,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221121009",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": { "dynamic_qr_channels_rec_ids": "18,19" }
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"ReasonCode": 3,
"ReasonText": "Cashless Cancelled by machine"
}
headers = {"Content-Type": "application/*+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/*+json'},
body: JSON.stringify({
ActorInfo: {Id: 2001187922, MerchantId: '123456789', Name: 'TanyaT_OP'},
BasicInfo: {
Amount: 0.1,
Currency: 'ILS',
MachineAuTime: '230221121009',
SiteId: 1,
TransactionId: '236584335969834429321847829253667359'
},
CustomData: {Actor: '', Machine: {dynamic_qr_channels_rec_ids: '18,19'}},
DeviceInfo: {FWVersion: '', HwSerial: 434324119376524, Id: 0, Type: 'ONYX'},
MachineInfo: {
Address: 'TestPayDynamicQR V2',
City: 'Abbeville',
Country: 'UNITED STATES',
CountryCode: 'US',
CountryISOCode: 'USA',
DecimalPlace: 2,
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: '2.00',
TerminalId: '987654321',
ZipCode: '1223311'
},
PaymentInfo: {
AuthAmount: 0.1,
AuthCode: '333333',
AuthDateTime: '230221101008',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 0.1,
SettDateTime: '230221101009',
SrvTranId: '236584335969834429321847829253667359',
Token: '',
TraceNumber: '4444'
},
ReasonCode: 3,
ReasonText: 'Cashless Cancelled by machine'
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/Void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "https://{domain}:{port}/Cortina/DynamicQR/Void",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ActorInfo' => [
'Id' => 2001187922,
'MerchantId' => '123456789',
'Name' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'Currency' => 'ILS',
'MachineAuTime' => '230221121009',
'SiteId' => 1,
'TransactionId' => '236584335969834429321847829253667359'
],
'CustomData' => [
'Actor' => '',
'Machine' => [
'dynamic_qr_channels_rec_ids' => '18,19'
]
],
'DeviceInfo' => [
'FWVersion' => '',
'HwSerial' => 434324119376524,
'Id' => 0,
'Type' => 'ONYX'
],
'MachineInfo' => [
'Address' => 'TestPayDynamicQR V2',
'City' => 'Abbeville',
'Country' => 'UNITED STATES',
'CountryCode' => 'US',
'CountryISOCode' => 'USA',
'DecimalPlace' => 2,
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => '2.00',
'TerminalId' => '987654321',
'ZipCode' => '1223311'
],
'PaymentInfo' => [
'AuthAmount' => 0.1,
'AuthCode' => '333333',
'AuthDateTime' => '230221101008',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 0.1,
'SettDateTime' => '230221101009',
'SrvTranId' => '236584335969834429321847829253667359',
'Token' => '',
'TraceNumber' => '4444'
],
'ReasonCode' => 3,
'ReasonText' => 'Cashless Cancelled by machine'
]),
CURLOPT_HTTPHEADER => [
"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://{domain}:{port}/Cortina/DynamicQR/Void"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://{domain}:{port}/Cortina/DynamicQR/Void")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/Void")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/*+json'
request.body = "{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Cortina DynamicQR Void
curl --request POST \
--url https://{domain}:{port}/Cortina/DynamicQR/Void \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001187922,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221121009",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": {
"dynamic_qr_channels_rec_ids": "18,19"
}
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"ReasonCode": 3,
"ReasonText": "Cashless Cancelled by machine"
}
'import requests
url = "https://{domain}:{port}/Cortina/DynamicQR/Void"
payload = {
"ActorInfo": {
"Id": 2001187922,
"MerchantId": "123456789",
"Name": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"Currency": "ILS",
"MachineAuTime": "230221121009",
"SiteId": 1,
"TransactionId": "236584335969834429321847829253667359"
},
"CustomData": {
"Actor": "",
"Machine": { "dynamic_qr_channels_rec_ids": "18,19" }
},
"DeviceInfo": {
"FWVersion": "",
"HwSerial": 434324119376524,
"Id": 0,
"Type": "ONYX"
},
"MachineInfo": {
"Address": "TestPayDynamicQR V2",
"City": "Abbeville",
"Country": "UNITED STATES",
"CountryCode": "US",
"CountryISOCode": "USA",
"DecimalPlace": 2,
"Id": 869761713,
"Name": "TestPayDynamicQR V2",
"Offset": "2.00",
"TerminalId": "987654321",
"ZipCode": "1223311"
},
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": False,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"ReasonCode": 3,
"ReasonText": "Cashless Cancelled by machine"
}
headers = {"Content-Type": "application/*+json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/*+json'},
body: JSON.stringify({
ActorInfo: {Id: 2001187922, MerchantId: '123456789', Name: 'TanyaT_OP'},
BasicInfo: {
Amount: 0.1,
Currency: 'ILS',
MachineAuTime: '230221121009',
SiteId: 1,
TransactionId: '236584335969834429321847829253667359'
},
CustomData: {Actor: '', Machine: {dynamic_qr_channels_rec_ids: '18,19'}},
DeviceInfo: {FWVersion: '', HwSerial: 434324119376524, Id: 0, Type: 'ONYX'},
MachineInfo: {
Address: 'TestPayDynamicQR V2',
City: 'Abbeville',
Country: 'UNITED STATES',
CountryCode: 'US',
CountryISOCode: 'USA',
DecimalPlace: 2,
Id: 869761713,
Name: 'TestPayDynamicQR V2',
Offset: '2.00',
TerminalId: '987654321',
ZipCode: '1223311'
},
PaymentInfo: {
AuthAmount: 0.1,
AuthCode: '333333',
AuthDateTime: '230221101008',
AuthSource: '55555',
IsGatewayTimeout: false,
RRN: '111111',
SettAmount: 0.1,
SettDateTime: '230221101009',
SrvTranId: '236584335969834429321847829253667359',
Token: '',
TraceNumber: '4444'
},
ReasonCode: 3,
ReasonText: 'Cashless Cancelled by machine'
})
};
fetch('https://{domain}:{port}/Cortina/DynamicQR/Void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "https://{domain}:{port}/Cortina/DynamicQR/Void",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ActorInfo' => [
'Id' => 2001187922,
'MerchantId' => '123456789',
'Name' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'Currency' => 'ILS',
'MachineAuTime' => '230221121009',
'SiteId' => 1,
'TransactionId' => '236584335969834429321847829253667359'
],
'CustomData' => [
'Actor' => '',
'Machine' => [
'dynamic_qr_channels_rec_ids' => '18,19'
]
],
'DeviceInfo' => [
'FWVersion' => '',
'HwSerial' => 434324119376524,
'Id' => 0,
'Type' => 'ONYX'
],
'MachineInfo' => [
'Address' => 'TestPayDynamicQR V2',
'City' => 'Abbeville',
'Country' => 'UNITED STATES',
'CountryCode' => 'US',
'CountryISOCode' => 'USA',
'DecimalPlace' => 2,
'Id' => 869761713,
'Name' => 'TestPayDynamicQR V2',
'Offset' => '2.00',
'TerminalId' => '987654321',
'ZipCode' => '1223311'
],
'PaymentInfo' => [
'AuthAmount' => 0.1,
'AuthCode' => '333333',
'AuthDateTime' => '230221101008',
'AuthSource' => '55555',
'IsGatewayTimeout' => false,
'RRN' => '111111',
'SettAmount' => 0.1,
'SettDateTime' => '230221101009',
'SrvTranId' => '236584335969834429321847829253667359',
'Token' => '',
'TraceNumber' => '4444'
],
'ReasonCode' => 3,
'ReasonText' => 'Cashless Cancelled by machine'
]),
CURLOPT_HTTPHEADER => [
"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://{domain}:{port}/Cortina/DynamicQR/Void"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://{domain}:{port}/Cortina/DynamicQR/Void")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/DynamicQR/Void")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/*+json'
request.body = "{\n \"ActorInfo\": {\n \"Id\": 2001187922,\n \"MerchantId\": \"123456789\",\n \"Name\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"Currency\": \"ILS\",\n \"MachineAuTime\": \"230221121009\",\n \"SiteId\": 1,\n \"TransactionId\": \"236584335969834429321847829253667359\"\n },\n \"CustomData\": {\n \"Actor\": \"\",\n \"Machine\": {\n \"dynamic_qr_channels_rec_ids\": \"18,19\"\n }\n },\n \"DeviceInfo\": {\n \"FWVersion\": \"\",\n \"HwSerial\": 434324119376524,\n \"Id\": 0,\n \"Type\": \"ONYX\"\n },\n \"MachineInfo\": {\n \"Address\": \"TestPayDynamicQR V2\",\n \"City\": \"Abbeville\",\n \"Country\": \"UNITED STATES\",\n \"CountryCode\": \"US\",\n \"CountryISOCode\": \"USA\",\n \"DecimalPlace\": 2,\n \"Id\": 869761713,\n \"Name\": \"TestPayDynamicQR V2\",\n \"Offset\": \"2.00\",\n \"TerminalId\": \"987654321\",\n \"ZipCode\": \"1223311\"\n },\n \"PaymentInfo\": {\n \"AuthAmount\": 0.1,\n \"AuthCode\": \"333333\",\n \"AuthDateTime\": \"230221101008\",\n \"AuthSource\": \"55555\",\n \"IsGatewayTimeout\": false,\n \"RRN\": \"111111\",\n \"SettAmount\": 0.1,\n \"SettDateTime\": \"230221101009\",\n \"SrvTranId\": \"236584335969834429321847829253667359\",\n \"Token\": \"\",\n \"TraceNumber\": \"4444\"\n },\n \"ReasonCode\": 3,\n \"ReasonText\": \"Cashless Cancelled by machine\"\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AuthAmount": 0.1,
"AuthCode": "333333",
"AuthDateTime": "230221101008",
"AuthSource": "55555",
"IsGatewayTimeout": false,
"RRN": "111111",
"SettAmount": 0.1,
"SettDateTime": "230221101009",
"SrvTranId": "236584335969834429321847829253667359",
"Token": "",
"TraceNumber": "4444"
},
"Status": {
"Code": 0,
"CustomDeclineCode": 0,
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Body
Merchant (Actor) details.
Show child attributes
Show child attributes
Basic transaction information.
Show child attributes
Show child attributes
Custom Fields Information, Contact Nayax TPOC to define.
Show child attributes
Show child attributes
Hardware and firmware information of the Nayax device.
Show child attributes
Show child attributes
Information about the machine involved in the transaction.
Show child attributes
Show child attributes
Identifies transaction information and references. Included in all response messages for payment calls.
When used in requests (e.g. /Settlement, /Void, /Refund, /Inquiry), this object should match the PaymentInfo returned in a previous call.
Show child attributes
Show child attributes
- Optional
- length: Short integer (16)
- Refund reason code as saved in Nayax system
- Optional
- length: 64
- Refund description as saved in Nayax system
Response
Success
Identifies transaction information and references. Included in all response messages for payment calls.
When used in requests (e.g. /Settlement, /Void, /Refund, /Inquiry), this object should match the PaymentInfo returned in a previous call.
Show child attributes
Show child attributes
Transaction status
Show child attributes
Show child attributes
Was this page helpful?