Create Virtual Card
curl --request POST \
--url https://qa-lynx.nayax.com/operational/v1/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardUserIdentity": "<string>",
"CountryID": 123,
"Currency": 123,
"MobileNumber": "<string>",
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": true
}
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/cards"
payload = {
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardUserIdentity": "<string>",
"CountryID": 123,
"Currency": 123,
"MobileNumber": "<string>",
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ActorID: 123,
CardUniqueIdentifier: '<string>',
CardDisplayNumber: '<string>',
CardHolderName: '<string>',
CardUserIdentity: '<string>',
CountryID: 123,
Currency: 123,
MobileNumber: '<string>',
Email: '<string>',
CardPhysicalType: 123,
MemberType: 123,
CardActivationDate: '2023-11-07T05:31:56Z',
CardExpirationDate: '2023-11-07T05:31:56Z',
CardImageUrl: '<string>',
CardNote: '<string>',
wd_limits_money: '<string>',
wd_limits_trans: '<string>',
use_wd_limit: true
})
};
fetch('https://qa-lynx.nayax.com/operational/v1/cards', 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/cards",
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([
'ActorID' => 123,
'CardUniqueIdentifier' => '<string>',
'CardDisplayNumber' => '<string>',
'CardHolderName' => '<string>',
'CardUserIdentity' => '<string>',
'CountryID' => 123,
'Currency' => 123,
'MobileNumber' => '<string>',
'Email' => '<string>',
'CardPhysicalType' => 123,
'MemberType' => 123,
'CardActivationDate' => '2023-11-07T05:31:56Z',
'CardExpirationDate' => '2023-11-07T05:31:56Z',
'CardImageUrl' => '<string>',
'CardNote' => '<string>',
'wd_limits_money' => '<string>',
'wd_limits_trans' => '<string>',
'use_wd_limit' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://qa-lynx.nayax.com/operational/v1/cards"
payload := strings.NewReader("{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://qa-lynx.nayax.com/operational/v1/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}"
response = http.request(request)
puts response.read_body{
"MobileNumber": "<string>",
"CardID": 123,
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardStatus": 123,
"CardType": 123,
"CardUserIdentity": "<string>",
"UpdatedDt": "2023-11-07T05:31:56Z",
"CreatedDt": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"UpdatedBy": 123,
"CountryID": 123,
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": true,
"CardExternalApplicationUserID": "<string>",
"Refs": {}
}Cards
Create Virtual Card
Creates a new virtual card with the provided details.
Create Virtual Card
curl --request POST \
--url https://qa-lynx.nayax.com/operational/v1/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardUserIdentity": "<string>",
"CountryID": 123,
"Currency": 123,
"MobileNumber": "<string>",
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": true
}
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/cards"
payload = {
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardUserIdentity": "<string>",
"CountryID": 123,
"Currency": 123,
"MobileNumber": "<string>",
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ActorID: 123,
CardUniqueIdentifier: '<string>',
CardDisplayNumber: '<string>',
CardHolderName: '<string>',
CardUserIdentity: '<string>',
CountryID: 123,
Currency: 123,
MobileNumber: '<string>',
Email: '<string>',
CardPhysicalType: 123,
MemberType: 123,
CardActivationDate: '2023-11-07T05:31:56Z',
CardExpirationDate: '2023-11-07T05:31:56Z',
CardImageUrl: '<string>',
CardNote: '<string>',
wd_limits_money: '<string>',
wd_limits_trans: '<string>',
use_wd_limit: true
})
};
fetch('https://qa-lynx.nayax.com/operational/v1/cards', 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/cards",
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([
'ActorID' => 123,
'CardUniqueIdentifier' => '<string>',
'CardDisplayNumber' => '<string>',
'CardHolderName' => '<string>',
'CardUserIdentity' => '<string>',
'CountryID' => 123,
'Currency' => 123,
'MobileNumber' => '<string>',
'Email' => '<string>',
'CardPhysicalType' => 123,
'MemberType' => 123,
'CardActivationDate' => '2023-11-07T05:31:56Z',
'CardExpirationDate' => '2023-11-07T05:31:56Z',
'CardImageUrl' => '<string>',
'CardNote' => '<string>',
'wd_limits_money' => '<string>',
'wd_limits_trans' => '<string>',
'use_wd_limit' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://qa-lynx.nayax.com/operational/v1/cards"
payload := strings.NewReader("{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://qa-lynx.nayax.com/operational/v1/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ActorID\": 123,\n \"CardUniqueIdentifier\": \"<string>\",\n \"CardDisplayNumber\": \"<string>\",\n \"CardHolderName\": \"<string>\",\n \"CardUserIdentity\": \"<string>\",\n \"CountryID\": 123,\n \"Currency\": 123,\n \"MobileNumber\": \"<string>\",\n \"Email\": \"<string>\",\n \"CardPhysicalType\": 123,\n \"MemberType\": 123,\n \"CardActivationDate\": \"2023-11-07T05:31:56Z\",\n \"CardExpirationDate\": \"2023-11-07T05:31:56Z\",\n \"CardImageUrl\": \"<string>\",\n \"CardNote\": \"<string>\",\n \"wd_limits_money\": \"<string>\",\n \"wd_limits_trans\": \"<string>\",\n \"use_wd_limit\": true\n}"
response = http.request(request)
puts response.read_body{
"MobileNumber": "<string>",
"CardID": 123,
"ActorID": 123,
"CardUniqueIdentifier": "<string>",
"CardDisplayNumber": "<string>",
"CardHolderName": "<string>",
"CardStatus": 123,
"CardType": 123,
"CardUserIdentity": "<string>",
"UpdatedDt": "2023-11-07T05:31:56Z",
"CreatedDt": "2023-11-07T05:31:56Z",
"CreatedBy": 123,
"UpdatedBy": 123,
"CountryID": 123,
"Email": "<string>",
"CardPhysicalType": 123,
"MemberType": 123,
"CardActivationDate": "2023-11-07T05:31:56Z",
"CardExpirationDate": "2023-11-07T05:31:56Z",
"CardImageUrl": "<string>",
"CardNote": "<string>",
"wd_limits_money": "<string>",
"wd_limits_trans": "<string>",
"use_wd_limit": true,
"CardExternalApplicationUserID": "<string>",
"Refs": {}
}Authorizations
Body
application/json
The details of the card to be created.
Represents the details required to create or update a card associated with an actor, including card attributes and contact information.
Response
200 - application/json
The virtual card was created successfully.
Represents the details of a card, including its attributes, status, and associated actor information.
Was this page helpful?