curl --request POST \
--url https://sandbox-api.cardcore.cloud/institutions/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardProgram": "{{cardProgramId}}",
"referenceCode": "CARD123456",
"pinEnabled": true,
"defaultPIN": {
"encryptedData": "A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708",
"publicKeyFingerprint": "a884d7744252e1ec674983a91e6"
},
"account": {
"currency": "NGN",
"bankCode": "000002",
"type": "00",
"number": "1234567890"
},
"customer": {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"honorific": "Mr",
"gender": "M",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
}
}
'import requests
url = "https://sandbox-api.cardcore.cloud/institutions/cards"
payload = {
"cardProgram": "{{cardProgramId}}",
"referenceCode": "CARD123456",
"pinEnabled": True,
"defaultPIN": {
"encryptedData": "A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708",
"publicKeyFingerprint": "a884d7744252e1ec674983a91e6"
},
"account": {
"currency": "NGN",
"bankCode": "000002",
"type": "00",
"number": "1234567890"
},
"customer": {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"honorific": "Mr",
"gender": "M",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
}
}
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({
cardProgram: '{{cardProgramId}}',
referenceCode: 'CARD123456',
pinEnabled: true,
defaultPIN: {
encryptedData: 'A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708',
publicKeyFingerprint: 'a884d7744252e1ec674983a91e6'
},
account: {currency: 'NGN', bankCode: '000002', type: '00', number: '1234567890'},
customer: {
firstName: 'John',
middleName: 'Robert',
lastName: 'Doe',
emailAddress: 'john.doe@example.com',
phoneNumber: '+2341234567890',
honorific: 'Mr',
gender: 'M',
dateOfBirth: '1990-01-01T00:00:00.000Z',
address: {
line1: '123 Main Street',
line2: 'Apt 4B',
city: 'Lagos',
state: 'Lagos',
country: 'Nigeria',
postalCode: '100001'
}
}
})
};
fetch('https://sandbox-api.cardcore.cloud/institutions/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://sandbox-api.cardcore.cloud/institutions/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([
'cardProgram' => '{{cardProgramId}}',
'referenceCode' => 'CARD123456',
'pinEnabled' => true,
'defaultPIN' => [
'encryptedData' => 'A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708',
'publicKeyFingerprint' => 'a884d7744252e1ec674983a91e6'
],
'account' => [
'currency' => 'NGN',
'bankCode' => '000002',
'type' => '00',
'number' => '1234567890'
],
'customer' => [
'firstName' => 'John',
'middleName' => 'Robert',
'lastName' => 'Doe',
'emailAddress' => 'john.doe@example.com',
'phoneNumber' => '+2341234567890',
'honorific' => 'Mr',
'gender' => 'M',
'dateOfBirth' => '1990-01-01T00:00:00.000Z',
'address' => [
'line1' => '123 Main Street',
'line2' => 'Apt 4B',
'city' => 'Lagos',
'state' => 'Lagos',
'country' => 'Nigeria',
'postalCode' => '100001'
]
]
]),
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://sandbox-api.cardcore.cloud/institutions/cards"
payload := strings.NewReader("{\n \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\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://sandbox-api.cardcore.cloud/institutions/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/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 \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Card Created Successfully",
"data": {
"_id": "6a12fb4764e77fc7a0e2ae9d",
"institution": "68da3e6080b90fbbb96716c9",
"cardProgram": "68da531880b90fbbb9671b38",
"referenceCode": "SUPRPR21172571779628777201",
"scheme": "Mastercard",
"type": "virtual",
"bin": "0902322423",
"expiryMonth": "06",
"expiryYear": 2029,
"pinEnabled": true,
"seqNumber": "001",
"enroll2FA": true,
"status": "active",
"expiryDate": "2029-06-13T00:00:00.000Z",
"account": {
"currency": "NGN",
"type": "00",
"number": "7030338024",
"bankCode": "999241"
},
"customer": {
"uniqueId": "9992417030338024",
"firstName": "Prince",
"middleName": "",
"lastName": "Muteh",
"emailAddress": "Prince.muteh@gmail.com",
"phoneNumber": "07030338024",
"dateOfBirth": "1995-05-18T00:00:00.000Z",
"address": {
"line1": "University Of Maiduguri",
"line2": "pop",
"city": "Maiduguri",
"state": "Borno",
"country": "Nigeria",
"postalCode": "600211"
}
},
"cardHolderId": "sandbox-cardholder-bca4d47a-1c82-4106-8ad0-e684ccea833e",
"lastFour": "2368",
"pan": "090232QV2368",
"cvv2": "tok_dev_U7MIkc3OpG7plnkh5qtYqU",
"icvv": "tok_dev_SaZotECxTr5s9rGyliAxwM",
"pinOffset": "tok_dev_amja7bvDi9X6CXEcjY3WYg",
"serviceCode": "601",
"printCard": false,
"token": "<sandbox-token>",
"cvv": "tok_dev_DodbT7LKOI21V1apSA0TjS",
"allowDigitization": true,
"embossingName": "Prince Muteh",
"twoFAEnrolled": false,
"pinAttempts": 0,
"honorific": "",
"gender": "",
"createdAt": "2026-05-24T13:21:11.061Z",
"updatedAt": "2026-05-24T13:21:11.061Z",
"id": "6a12fb4764e77fc7a0e2ae9d"
}
}Create Card
Create a single card.
curl --request POST \
--url https://sandbox-api.cardcore.cloud/institutions/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cardProgram": "{{cardProgramId}}",
"referenceCode": "CARD123456",
"pinEnabled": true,
"defaultPIN": {
"encryptedData": "A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708",
"publicKeyFingerprint": "a884d7744252e1ec674983a91e6"
},
"account": {
"currency": "NGN",
"bankCode": "000002",
"type": "00",
"number": "1234567890"
},
"customer": {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"honorific": "Mr",
"gender": "M",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
}
}
'import requests
url = "https://sandbox-api.cardcore.cloud/institutions/cards"
payload = {
"cardProgram": "{{cardProgramId}}",
"referenceCode": "CARD123456",
"pinEnabled": True,
"defaultPIN": {
"encryptedData": "A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708",
"publicKeyFingerprint": "a884d7744252e1ec674983a91e6"
},
"account": {
"currency": "NGN",
"bankCode": "000002",
"type": "00",
"number": "1234567890"
},
"customer": {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"honorific": "Mr",
"gender": "M",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
}
}
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({
cardProgram: '{{cardProgramId}}',
referenceCode: 'CARD123456',
pinEnabled: true,
defaultPIN: {
encryptedData: 'A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708',
publicKeyFingerprint: 'a884d7744252e1ec674983a91e6'
},
account: {currency: 'NGN', bankCode: '000002', type: '00', number: '1234567890'},
customer: {
firstName: 'John',
middleName: 'Robert',
lastName: 'Doe',
emailAddress: 'john.doe@example.com',
phoneNumber: '+2341234567890',
honorific: 'Mr',
gender: 'M',
dateOfBirth: '1990-01-01T00:00:00.000Z',
address: {
line1: '123 Main Street',
line2: 'Apt 4B',
city: 'Lagos',
state: 'Lagos',
country: 'Nigeria',
postalCode: '100001'
}
}
})
};
fetch('https://sandbox-api.cardcore.cloud/institutions/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://sandbox-api.cardcore.cloud/institutions/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([
'cardProgram' => '{{cardProgramId}}',
'referenceCode' => 'CARD123456',
'pinEnabled' => true,
'defaultPIN' => [
'encryptedData' => 'A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708',
'publicKeyFingerprint' => 'a884d7744252e1ec674983a91e6'
],
'account' => [
'currency' => 'NGN',
'bankCode' => '000002',
'type' => '00',
'number' => '1234567890'
],
'customer' => [
'firstName' => 'John',
'middleName' => 'Robert',
'lastName' => 'Doe',
'emailAddress' => 'john.doe@example.com',
'phoneNumber' => '+2341234567890',
'honorific' => 'Mr',
'gender' => 'M',
'dateOfBirth' => '1990-01-01T00:00:00.000Z',
'address' => [
'line1' => '123 Main Street',
'line2' => 'Apt 4B',
'city' => 'Lagos',
'state' => 'Lagos',
'country' => 'Nigeria',
'postalCode' => '100001'
]
]
]),
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://sandbox-api.cardcore.cloud/institutions/cards"
payload := strings.NewReader("{\n \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\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://sandbox-api.cardcore.cloud/institutions/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/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 \"cardProgram\": \"{{cardProgramId}}\",\n \"referenceCode\": \"CARD123456\",\n \"pinEnabled\": true,\n \"defaultPIN\": {\n \"encryptedData\": \"A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708A1B2C3D4E5F60708\",\n \"publicKeyFingerprint\": \"a884d7744252e1ec674983a91e6\"\n },\n \"account\": {\n \"currency\": \"NGN\",\n \"bankCode\": \"000002\",\n \"type\": \"00\",\n \"number\": \"1234567890\"\n },\n \"customer\": {\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\n \"honorific\": \"Mr\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-01-01T00:00:00.000Z\",\n \"address\": {\n \"line1\": \"123 Main Street\",\n \"line2\": \"Apt 4B\",\n \"city\": \"Lagos\",\n \"state\": \"Lagos\",\n \"country\": \"Nigeria\",\n \"postalCode\": \"100001\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Card Created Successfully",
"data": {
"_id": "6a12fb4764e77fc7a0e2ae9d",
"institution": "68da3e6080b90fbbb96716c9",
"cardProgram": "68da531880b90fbbb9671b38",
"referenceCode": "SUPRPR21172571779628777201",
"scheme": "Mastercard",
"type": "virtual",
"bin": "0902322423",
"expiryMonth": "06",
"expiryYear": 2029,
"pinEnabled": true,
"seqNumber": "001",
"enroll2FA": true,
"status": "active",
"expiryDate": "2029-06-13T00:00:00.000Z",
"account": {
"currency": "NGN",
"type": "00",
"number": "7030338024",
"bankCode": "999241"
},
"customer": {
"uniqueId": "9992417030338024",
"firstName": "Prince",
"middleName": "",
"lastName": "Muteh",
"emailAddress": "Prince.muteh@gmail.com",
"phoneNumber": "07030338024",
"dateOfBirth": "1995-05-18T00:00:00.000Z",
"address": {
"line1": "University Of Maiduguri",
"line2": "pop",
"city": "Maiduguri",
"state": "Borno",
"country": "Nigeria",
"postalCode": "600211"
}
},
"cardHolderId": "sandbox-cardholder-bca4d47a-1c82-4106-8ad0-e684ccea833e",
"lastFour": "2368",
"pan": "090232QV2368",
"cvv2": "tok_dev_U7MIkc3OpG7plnkh5qtYqU",
"icvv": "tok_dev_SaZotECxTr5s9rGyliAxwM",
"pinOffset": "tok_dev_amja7bvDi9X6CXEcjY3WYg",
"serviceCode": "601",
"printCard": false,
"token": "<sandbox-token>",
"cvv": "tok_dev_DodbT7LKOI21V1apSA0TjS",
"allowDigitization": true,
"embossingName": "Prince Muteh",
"twoFAEnrolled": false,
"pinAttempts": 0,
"honorific": "",
"gender": "",
"createdAt": "2026-05-24T13:21:11.061Z",
"updatedAt": "2026-05-24T13:21:11.061Z",
"id": "6a12fb4764e77fc7a0e2ae9d"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The preconfigured card setup to issue this card from. This setup already exists in the system and defines how the card should behave.
"507f1f77bcf86cd799439012"
Your own unique tracking number for this card request.
"CARD123456"
Set this to true if the card should support PIN transactions.
true
The card's starting PIN, sent in a protected format. Do not send the actual PIN as plain text.
Show child attributes
Show child attributes
The bank account that should be linked to the card.
Show child attributes
Show child attributes
The person who will own or use the card.
Show child attributes
Show child attributes
The name to print or display on the card.
"Customer Name"
The date the card should become valid.
"2025-12-31"
The date the card should expire.
"2028-12-31"
The card number to use. Only provide this if your setup allows you to bring your own card number; otherwise the system will create one.
"4111111111111111"
The starting status of the card.
active, inactive, suspended, expired The card's sequence number. If you do not provide it, the system takes it from the card setup.
"001"
Set this to true if the card should be enrolled for extra cardholder verification.
true
Set this to true if a physical card should be printed.
true
Response
Create Card completed successfully.
The response is of type object.