Customer Cards
Activate a customer card
Activate a customer card. This operation is scoped to the customer portal and returns only customer-accessible data.
POST
/
cards
/
{cardId}
/
activate
Activate a customer card
curl --request POST \
--url https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expiryMonth": 123,
"expiryYear": 123,
"cvv": "<string>",
"pin": "<string>",
"pinConfirmation": "<string>"
}
'import requests
url = "https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate"
payload = {
"expiryMonth": 123,
"expiryYear": 123,
"cvv": "<string>",
"pin": "<string>",
"pinConfirmation": "<string>"
}
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({
expiryMonth: 123,
expiryYear: 123,
cvv: '<string>',
pin: '<string>',
pinConfirmation: '<string>'
})
};
fetch('https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate', 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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate",
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([
'expiryMonth' => 123,
'expiryYear' => 123,
'cvv' => '<string>',
'pin' => '<string>',
'pinConfirmation' => '<string>'
]),
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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate"
payload := strings.NewReader("{\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate")
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 \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"accountId": "<string>",
"accountParticipantId": "<string>",
"cardProgramId": "<string>",
"cardType": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"last4": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"cardholderName": "<string>",
"status": "active",
"issuedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"lockedAt": "2023-11-07T05:31:56Z",
"blockedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"account": {
"id": "<string>",
"clientId": "<string>",
"currency": "<string>",
"accountNumberLast4": "<string>",
"status": "<string>"
},
"accountParticipant": {
"id": "<string>",
"clientId": "<string>",
"clientType": "<string>",
"role": "<string>",
"canTransact": true,
"canReceiveCard": true,
"canViewCardDetails": true,
"status": "<string>"
},
"cardProgram": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"networkScheme": "<string>",
"cardType": "<string>",
"productType": "<string>",
"formFactor": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
⌘I
Activate a customer card
curl --request POST \
--url https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expiryMonth": 123,
"expiryYear": 123,
"cvv": "<string>",
"pin": "<string>",
"pinConfirmation": "<string>"
}
'import requests
url = "https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate"
payload = {
"expiryMonth": 123,
"expiryYear": 123,
"cvv": "<string>",
"pin": "<string>",
"pinConfirmation": "<string>"
}
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({
expiryMonth: 123,
expiryYear: 123,
cvv: '<string>',
pin: '<string>',
pinConfirmation: '<string>'
})
};
fetch('https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate', 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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate",
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([
'expiryMonth' => 123,
'expiryYear' => 123,
'cvv' => '<string>',
'pin' => '<string>',
'pinConfirmation' => '<string>'
]),
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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate"
payload := strings.NewReader("{\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\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://{tenantDomain}/api/v1/customer/cards/{cardId}/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/customer/cards/{cardId}/activate")
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 \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"cvv\": \"<string>\",\n \"pin\": \"<string>\",\n \"pinConfirmation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"accountId": "<string>",
"accountParticipantId": "<string>",
"cardProgramId": "<string>",
"cardType": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"last4": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"cardholderName": "<string>",
"status": "active",
"issuedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"lockedAt": "2023-11-07T05:31:56Z",
"blockedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"account": {
"id": "<string>",
"clientId": "<string>",
"currency": "<string>",
"accountNumberLast4": "<string>",
"status": "<string>"
},
"accountParticipant": {
"id": "<string>",
"clientId": "<string>",
"clientType": "<string>",
"role": "<string>",
"canTransact": true,
"canReceiveCard": true,
"canViewCardDetails": true,
"status": "<string>"
},
"cardProgram": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"networkScheme": "<string>",
"cardType": "<string>",
"productType": "<string>",
"formFactor": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}