Cortina StaticQR Start
curl --request POST \
--url https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start \
--header 'Content-Type: application/*+json' \
--data '
{
"AppUserId": 111111,
"Balance": 0,
"SecretToken": "43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff",
"TerminalId": 77788,
"TransactionId": 12345678
}
'import requests
url = "https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start"
payload = {
"AppUserId": 111111,
"Balance": 0,
"SecretToken": "43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff",
"TerminalId": 77788,
"TransactionId": 12345678
}
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({
AppUserId: 111111,
Balance: 0,
SecretToken: '43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff',
TerminalId: 77788,
TransactionId: 12345678
})
};
fetch('https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start', 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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start",
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([
'AppUserId' => 111111,
'Balance' => 0,
'SecretToken' => '43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff',
'TerminalId' => 77788,
'TransactionId' => 12345678
]),
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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start"
payload := strings.NewReader("{\n \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start")
.header("Content-Type", "application/*+json")
.body("{\n \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start")
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 \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}StaticQR
Cortina StaticQR Start
Cortina StaticQR Start
curl --request POST \
--url https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start \
--header 'Content-Type: application/*+json' \
--data '
{
"AppUserId": 111111,
"Balance": 0,
"SecretToken": "43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff",
"TerminalId": 77788,
"TransactionId": 12345678
}
'import requests
url = "https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start"
payload = {
"AppUserId": 111111,
"Balance": 0,
"SecretToken": "43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff",
"TerminalId": 77788,
"TransactionId": 12345678
}
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({
AppUserId: 111111,
Balance: 0,
SecretToken: '43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff',
TerminalId: 77788,
TransactionId: 12345678
})
};
fetch('https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start', 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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start",
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([
'AppUserId' => 111111,
'Balance' => 0,
'SecretToken' => '43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff',
'TerminalId' => 77788,
'TransactionId' => 12345678
]),
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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start"
payload := strings.NewReader("{\n \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\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://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start")
.header("Content-Type", "application/*+json")
.body("{\n \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://lynx.nayax.com/payment/v2/transactions/Cortina/{integratorName}/start")
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 \"AppUserId\": 111111,\n \"Balance\": 0,\n \"SecretToken\": \"43262a8f8136f704b3d42b3f116e4bb0c4bf69e6d3415aff6e2cb9dfe06630ff\",\n \"TerminalId\": 77788,\n \"TransactionId\": 12345678\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"StatusMessage": "Cortina V2 Stub Tester",
"Verdict": "Approved"
}
}Path Parameters
Integrator name assigned by Nayax
Body
application/*+jsonapplication/jsontext/json
- Mandatory
- Length: 40
- Unique identifier of the consumer in Mobile App provider system
- Optional
- Decimal (max 3 digits for cents)
- The balance of user's account.
- Data received from a third party and will be sent back in response
Show child attributes
Show child attributes
- Mandatory
- Length: 64
- Unique key for the your system. This value will be Provided by Nayax in advance. You should keep this value as a secret in your system.
- Conditional, must be sent if UniQR is not sent.
- Length: 255
- Unique Identifier for the vending machine printed on a sticker or encoded in the QR (HW-Serial of the device)
- Mandatory
- Length: 40
- Unique identifier for the transaction which will be echoed in further requests and responses. Minimum of 8 chars.
- Conditional, must be sent if TerminalId is not sent.
- Machine reference unique qr number
Response
Success
Transaction status
Show child attributes
Show child attributes
Was this page helpful?
⌘I