Cortina StaticQR Authorization
curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Authorization \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
}
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Authorization"
payload = {
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
}
}
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: 2001102296,
MerchantId: 10011,
Name: 'Far East Dev Zone',
OperatorId: 2000305191,
OperatorName: 'TanyaT_OP'
},
BasicInfo: {
Amount: 0.1,
CurrencyCode: 'USD',
CurrencyNumeric: 376,
SiteId: 12,
TransactionId: '236584335969834429321847829253667359,'
},
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayStaticQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
}
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Authorization', 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/StaticQR/Authorization",
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' => 2001102296,
'MerchantId' => 10011,
'Name' => 'Far East Dev Zone',
'OperatorId' => 2000305191,
'OperatorName' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'CurrencyCode' => 'USD',
'CurrencyNumeric' => 376,
'SiteId' => 12,
'TransactionId' => '236584335969834429321847829253667359,'
],
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayStaticQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
]
]),
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/StaticQR/Authorization"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\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/StaticQR/Authorization")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Authorization")
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\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": true,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}StaticQR
Cortina StaticQR Authorization
Cortina StaticQR Authorization
curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Authorization \
--header 'Content-Type: application/*+json' \
--data '
{
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
}
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Authorization"
payload = {
"ActorInfo": {
"Id": 2001102296,
"MerchantId": 10011,
"Name": "Far East Dev Zone",
"OperatorId": 2000305191,
"OperatorName": "TanyaT_OP"
},
"BasicInfo": {
"Amount": 0.1,
"CurrencyCode": "USD",
"CurrencyNumeric": 376,
"SiteId": 12,
"TransactionId": "236584335969834429321847829253667359,"
},
"CustomData": {
"Actor": 12312312,
"DirectActor": 12312312,
"Distributor": "superDistributor",
"Machine": 131231348,
"Operator": 123121434134
},
"MachineInfo": {
"Country": {
"Alpha2Code": "US",
"Alpha3Code": "USA",
"Name": "United States of America",
"NumericCode": 840
},
"DecimalPlace": 2,
"GroupId": "Beverages",
"Id": 869761713,
"Name": "TestPayStaticQR V2",
"Offset": 2,
"OperatorId": 12345,
"TerminalId": 987654321,
"ZipCode": 10001
}
}
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: 2001102296,
MerchantId: 10011,
Name: 'Far East Dev Zone',
OperatorId: 2000305191,
OperatorName: 'TanyaT_OP'
},
BasicInfo: {
Amount: 0.1,
CurrencyCode: 'USD',
CurrencyNumeric: 376,
SiteId: 12,
TransactionId: '236584335969834429321847829253667359,'
},
CustomData: {
Actor: 12312312,
DirectActor: 12312312,
Distributor: 'superDistributor',
Machine: 131231348,
Operator: 123121434134
},
MachineInfo: {
Country: {
Alpha2Code: 'US',
Alpha3Code: 'USA',
Name: 'United States of America',
NumericCode: 840
},
DecimalPlace: 2,
GroupId: 'Beverages',
Id: 869761713,
Name: 'TestPayStaticQR V2',
Offset: 2,
OperatorId: 12345,
TerminalId: 987654321,
ZipCode: 10001
}
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Authorization', 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/StaticQR/Authorization",
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' => 2001102296,
'MerchantId' => 10011,
'Name' => 'Far East Dev Zone',
'OperatorId' => 2000305191,
'OperatorName' => 'TanyaT_OP'
],
'BasicInfo' => [
'Amount' => 0.1,
'CurrencyCode' => 'USD',
'CurrencyNumeric' => 376,
'SiteId' => 12,
'TransactionId' => '236584335969834429321847829253667359,'
],
'CustomData' => [
'Actor' => 12312312,
'DirectActor' => 12312312,
'Distributor' => 'superDistributor',
'Machine' => 131231348,
'Operator' => 123121434134
],
'MachineInfo' => [
'Country' => [
'Alpha2Code' => 'US',
'Alpha3Code' => 'USA',
'Name' => 'United States of America',
'NumericCode' => 840
],
'DecimalPlace' => 2,
'GroupId' => 'Beverages',
'Id' => 869761713,
'Name' => 'TestPayStaticQR V2',
'Offset' => 2,
'OperatorId' => 12345,
'TerminalId' => 987654321,
'ZipCode' => 10001
]
]),
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/StaticQR/Authorization"
payload := strings.NewReader("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\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/StaticQR/Authorization")
.header("Content-Type", "application/*+json")
.body("{\n \"ActorInfo\": {\n \"Id\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Authorization")
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\": 2001102296,\n \"MerchantId\": 10011,\n \"Name\": \"Far East Dev Zone\",\n \"OperatorId\": 2000305191,\n \"OperatorName\": \"TanyaT_OP\"\n },\n \"BasicInfo\": {\n \"Amount\": 0.1,\n \"CurrencyCode\": \"USD\",\n \"CurrencyNumeric\": 376,\n \"SiteId\": 12,\n \"TransactionId\": \"236584335969834429321847829253667359,\"\n },\n \"CustomData\": {\n \"Actor\": 12312312,\n \"DirectActor\": 12312312,\n \"Distributor\": \"superDistributor\",\n \"Machine\": 131231348,\n \"Operator\": 123121434134\n },\n \"MachineInfo\": {\n \"Country\": {\n \"Alpha2Code\": \"US\",\n \"Alpha3Code\": \"USA\",\n \"Name\": \"United States of America\",\n \"NumericCode\": 840\n },\n \"DecimalPlace\": 2,\n \"GroupId\": \"Beverages\",\n \"Id\": 869761713,\n \"Name\": \"TestPayStaticQR V2\",\n \"Offset\": 2,\n \"OperatorId\": 12345,\n \"TerminalId\": 987654321,\n \"ZipCode\": 10001\n }\n}"
response = http.request(request)
puts response.read_body{
"PaymentInfo": {
"AdditionalData": "string",
"AuthAmount": 0,
"AuthCode": "string",
"AuthDateTime": "string",
"AuthSource": "string",
"IsGatewayTimeout": true,
"RRN": "string",
"SettAmount": 0,
"SettDateTime": "string",
"SrvTranId": "string",
"Token": "string",
"TraceNumber": "string"
},
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Holds funds for a transaction where the final amount isn’t known yet. Nayax calls this endpoint to validate the customer’s account and temporarily reserve funds (pre-authorization) before the actual usage is calculated. It must be followed later by a settlement or cancellation.
Body
application/*+jsonapplication/jsontext/json
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
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?
⌘I