Cortina StaticQR Settlement
curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Settlement \
--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
},
"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"
},
"Products": [
{
"Code": 0,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Settlement"
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
},
"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"
},
"Products": [
{
"Code": 0,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
}
]
}
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
},
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'
},
Products: [
{Code: 0, Measurement: 1, Name: 'Stella', Price: 0.1, UnitOfMeasurement: 'USD'}
]
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Settlement', 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/Settlement",
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
],
'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'
],
'Products' => [
[
'Code' => 0,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'USD'
]
]
]),
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/Settlement"
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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\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/Settlement")
.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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Settlement")
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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Code": 10,
"CustomDeclineCode": 10,
"StatusMessage": "Amount is missing",
"Verdict": "Declined"
}
}StaticQR
Cortina StaticQR Settlement
Cortina StaticQR Settlement
curl --request POST \
--url https://{domain}:{port}/Cortina/StaticQR/Settlement \
--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
},
"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"
},
"Products": [
{
"Code": 0,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
}
]
}
'import requests
url = "https://{domain}:{port}/Cortina/StaticQR/Settlement"
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
},
"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"
},
"Products": [
{
"Code": 0,
"Measurement": 1,
"Name": "Stella",
"Price": 0.1,
"UnitOfMeasurement": "USD"
}
]
}
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
},
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'
},
Products: [
{Code: 0, Measurement: 1, Name: 'Stella', Price: 0.1, UnitOfMeasurement: 'USD'}
]
})
};
fetch('https://{domain}:{port}/Cortina/StaticQR/Settlement', 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/Settlement",
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
],
'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'
],
'Products' => [
[
'Code' => 0,
'Measurement' => 1,
'Name' => 'Stella',
'Price' => 0.1,
'UnitOfMeasurement' => 'USD'
]
]
]),
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/Settlement"
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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\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/Settlement")
.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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}:{port}/Cortina/StaticQR/Settlement")
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 \"PaymentInfo\": {\n \"AdditionalData\": \"string\",\n \"AuthAmount\": 0,\n \"AuthCode\": \"string\",\n \"AuthDateTime\": \"string\",\n \"AuthSource\": \"string\",\n \"IsGatewayTimeout\": true,\n \"RRN\": \"string\",\n \"SettAmount\": 0,\n \"SettDateTime\": \"string\",\n \"SrvTranId\": \"string\",\n \"Token\": \"string\",\n \"TraceNumber\": \"string\"\n },\n \"Products\": [\n {\n \"Code\": 0,\n \"Measurement\": 1,\n \"Name\": \"Stella\",\n \"Price\": 0.1,\n \"UnitOfMeasurement\": \"USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Code": 10,
"CustomDeclineCode": 10,
"StatusMessage": "Amount is missing",
"Verdict": "Declined"
}
}Upon successful dispense of a product/service by the operator’s machine, Nayax will call this method to complete and capture the transaction with the integrator.This call will include the transaction’s final amount to be cleared by the integrator.
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
Products details
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Success
Transaction status
Show child attributes
Show child attributes
Was this page helpful?
⌘I