Update Card Customer
curl --request PUT \
--url https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"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/{cardId}/customer"
payload = {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'John',
middleName: 'Robert',
lastName: 'Doe',
emailAddress: 'john.doe@example.com',
phoneNumber: '+2341234567890',
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/{cardId}/customer', 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/{cardId}/customer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'John',
'middleName' => 'Robert',
'lastName' => 'Doe',
'emailAddress' => 'john.doe@example.com',
'phoneNumber' => '+2341234567890',
'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/{cardId}/customer"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Customer Information Updated Successfully",
"data": {
"_id": "69d4dd694818713f69fec11b",
"institution": "68da3e6080b90fbbb96716c9",
"cardProgram": "68da531880b90fbbb9671b38",
"referenceCode": "SUPRPR65228531775557727619",
"scheme": "Mastercard",
"type": "virtual",
"bin": "0902322423",
"expiryMonth": "05",
"expiryYear": 2029,
"pinEnabled": true,
"seqNumber": "001",
"enroll2FA": true,
"status": "active",
"expiryDate": "2029-05-17T00:00:00.000Z",
"account": {
"currency": "NGN",
"type": "00",
"number": "0117964837",
"bankCode": "999241"
},
"customer": {
"uniqueId": "9992410117964837",
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
},
"cardHolderId": "sandbox-cardholder-e2a5bbc7-f201-4ef1-af49-e19383a851b9",
"lastFour": "2384",
"pan": "090232fF2384",
"cvv2": "tok_dev_BxiqEUdTyIdy7kqlPWSTKm",
"icvv": "tok_dev_kIULobJIBIF6FRKTOclZgg",
"serviceCode": "601",
"printCard": false,
"token": "<sandbox-token>",
"cvv": "tok_dev_kf9xEpfzCyHphXYcxiKUnv",
"allowDigitization": false,
"embossingName": "Prince Kyemuteh Muteh",
"twoFAEnrolled": false,
"pinAttempts": 0,
"honorific": "",
"gender": "",
"createdAt": "2026-04-07T10:33:13.188Z",
"updatedAt": "2026-05-25T12:38:20.932Z",
"hash": "7307208218A127E8E928285CAC663D1B56740F1B",
"secureData": "TQncGYwGLAP9Nb+mMz5rPEqiBUMTw92wBb16ixtKM8hvhuynLqFi+JR4qv1f03UOYPwwOqo/lGKaW7/Hi5xEjl/0+g0GbzXmcamBNDsHytJ1GE97j/T9rwuS9RxoYQZgdCowG+oy22q5P2HTDw4bbw5FWUP4XlbXJ+Al6sf8OzRyeTd+eLF2sdh26Kj6WX+aVc+hv464gpsliNHt8OJ3s5i6wtD5QC5QbmwHzGQkqhpAnlxxStrcyay6BxYsOKQW7Xc3rXBn+8hS2Kx6ln/ynkF2XfzKQbgvsRmer/S0tWJd80zcP09LlkMMZ2OPFG/G9KH72IPr4RKzWSa8GEcPjQ==",
"id": "69d4dd694818713f69fec11b"
}
}Institution Cards
Update Card Customer
Update cardholder details.
PUT
/
institutions
/
cards
/
{cardId}
/
customer
Update Card Customer
curl --request PUT \
--url https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"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/{cardId}/customer"
payload = {
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'John',
middleName: 'Robert',
lastName: 'Doe',
emailAddress: 'john.doe@example.com',
phoneNumber: '+2341234567890',
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/{cardId}/customer', 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/{cardId}/customer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'John',
'middleName' => 'Robert',
'lastName' => 'Doe',
'emailAddress' => 'john.doe@example.com',
'phoneNumber' => '+2341234567890',
'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/{cardId}/customer"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/cards/{cardId}/customer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"John\",\n \"middleName\": \"Robert\",\n \"lastName\": \"Doe\",\n \"emailAddress\": \"john.doe@example.com\",\n \"phoneNumber\": \"+2341234567890\",\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}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Customer Information Updated Successfully",
"data": {
"_id": "69d4dd694818713f69fec11b",
"institution": "68da3e6080b90fbbb96716c9",
"cardProgram": "68da531880b90fbbb9671b38",
"referenceCode": "SUPRPR65228531775557727619",
"scheme": "Mastercard",
"type": "virtual",
"bin": "0902322423",
"expiryMonth": "05",
"expiryYear": 2029,
"pinEnabled": true,
"seqNumber": "001",
"enroll2FA": true,
"status": "active",
"expiryDate": "2029-05-17T00:00:00.000Z",
"account": {
"currency": "NGN",
"type": "00",
"number": "0117964837",
"bankCode": "999241"
},
"customer": {
"uniqueId": "9992410117964837",
"firstName": "John",
"middleName": "Robert",
"lastName": "Doe",
"emailAddress": "john.doe@example.com",
"phoneNumber": "+2341234567890",
"dateOfBirth": "1990-01-01T00:00:00.000Z",
"address": {
"line1": "123 Main Street",
"line2": "Apt 4B",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001"
}
},
"cardHolderId": "sandbox-cardholder-e2a5bbc7-f201-4ef1-af49-e19383a851b9",
"lastFour": "2384",
"pan": "090232fF2384",
"cvv2": "tok_dev_BxiqEUdTyIdy7kqlPWSTKm",
"icvv": "tok_dev_kIULobJIBIF6FRKTOclZgg",
"serviceCode": "601",
"printCard": false,
"token": "<sandbox-token>",
"cvv": "tok_dev_kf9xEpfzCyHphXYcxiKUnv",
"allowDigitization": false,
"embossingName": "Prince Kyemuteh Muteh",
"twoFAEnrolled": false,
"pinAttempts": 0,
"honorific": "",
"gender": "",
"createdAt": "2026-04-07T10:33:13.188Z",
"updatedAt": "2026-05-25T12:38:20.932Z",
"hash": "7307208218A127E8E928285CAC663D1B56740F1B",
"secureData": "TQncGYwGLAP9Nb+mMz5rPEqiBUMTw92wBb16ixtKM8hvhuynLqFi+JR4qv1f03UOYPwwOqo/lGKaW7/Hi5xEjl/0+g0GbzXmcamBNDsHytJ1GE97j/T9rwuS9RxoYQZgdCowG+oy22q5P2HTDw4bbw5FWUP4XlbXJ+Al6sf8OzRyeTd+eLF2sdh26Kj6WX+aVc+hv464gpsliNHt8OJ3s5i6wtD5QC5QbmwHzGQkqhpAnlxxStrcyay6BxYsOKQW7Xc3rXBn+8hS2Kx6ln/ynkF2XfzKQbgvsRmer/S0tWJd80zcP09LlkMMZ2OPFG/G9KH72IPr4RKzWSa8GEcPjQ==",
"id": "69d4dd694818713f69fec11b"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Path parameter: cardId.
Body
application/json
Response
200 - application/json
Update Card Customer completed successfully.
The response is of type object.