Cards
Issue a card
Issue a card. Access is subject to the permissions, authentication, and branch requirements documented for this operation.
POST
/
cards
Issue a card
curl --request POST \
--url https://{tenantDomain}/api/v1/staff/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>",
"cardProgramId": "<string>",
"cardholderName": "<string>",
"accountParticipantId": "<string>",
"issuer": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"tokenRef": "<string>",
"panFingerprintHash": "<string>",
"last4": "<string>",
"metadata": {}
}
'import requests
url = "https://{tenantDomain}/api/v1/staff/cards"
payload = {
"accountId": "<string>",
"cardProgramId": "<string>",
"cardholderName": "<string>",
"accountParticipantId": "<string>",
"issuer": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"tokenRef": "<string>",
"panFingerprintHash": "<string>",
"last4": "<string>",
"metadata": {}
}
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({
accountId: '<string>',
cardProgramId: '<string>',
cardholderName: '<string>',
accountParticipantId: '<string>',
issuer: '<string>',
productType: '<string>',
formFactor: '<string>',
network: '<string>',
expiryMonth: 123,
expiryYear: 123,
tokenRef: '<string>',
panFingerprintHash: '<string>',
last4: '<string>',
metadata: {}
})
};
fetch('https://{tenantDomain}/api/v1/staff/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://{tenantDomain}/api/v1/staff/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([
'accountId' => '<string>',
'cardProgramId' => '<string>',
'cardholderName' => '<string>',
'accountParticipantId' => '<string>',
'issuer' => '<string>',
'productType' => '<string>',
'formFactor' => '<string>',
'network' => '<string>',
'expiryMonth' => 123,
'expiryYear' => 123,
'tokenRef' => '<string>',
'panFingerprintHash' => '<string>',
'last4' => '<string>',
'metadata' => [
]
]),
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/staff/cards"
payload := strings.NewReader("{\n \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\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/staff/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/staff/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 \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"accountId": "<string>",
"accountParticipantId": "<string>",
"cardProgramId": "<string>",
"issuer": "<string>",
"cardType": "debit",
"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",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
⌘I
Issue a card
curl --request POST \
--url https://{tenantDomain}/api/v1/staff/cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "<string>",
"cardProgramId": "<string>",
"cardholderName": "<string>",
"accountParticipantId": "<string>",
"issuer": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"tokenRef": "<string>",
"panFingerprintHash": "<string>",
"last4": "<string>",
"metadata": {}
}
'import requests
url = "https://{tenantDomain}/api/v1/staff/cards"
payload = {
"accountId": "<string>",
"cardProgramId": "<string>",
"cardholderName": "<string>",
"accountParticipantId": "<string>",
"issuer": "<string>",
"productType": "<string>",
"formFactor": "<string>",
"network": "<string>",
"expiryMonth": 123,
"expiryYear": 123,
"tokenRef": "<string>",
"panFingerprintHash": "<string>",
"last4": "<string>",
"metadata": {}
}
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({
accountId: '<string>',
cardProgramId: '<string>',
cardholderName: '<string>',
accountParticipantId: '<string>',
issuer: '<string>',
productType: '<string>',
formFactor: '<string>',
network: '<string>',
expiryMonth: 123,
expiryYear: 123,
tokenRef: '<string>',
panFingerprintHash: '<string>',
last4: '<string>',
metadata: {}
})
};
fetch('https://{tenantDomain}/api/v1/staff/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://{tenantDomain}/api/v1/staff/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([
'accountId' => '<string>',
'cardProgramId' => '<string>',
'cardholderName' => '<string>',
'accountParticipantId' => '<string>',
'issuer' => '<string>',
'productType' => '<string>',
'formFactor' => '<string>',
'network' => '<string>',
'expiryMonth' => 123,
'expiryYear' => 123,
'tokenRef' => '<string>',
'panFingerprintHash' => '<string>',
'last4' => '<string>',
'metadata' => [
]
]),
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/staff/cards"
payload := strings.NewReader("{\n \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\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/staff/cards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/staff/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 \"accountId\": \"<string>\",\n \"cardProgramId\": \"<string>\",\n \"cardholderName\": \"<string>\",\n \"accountParticipantId\": \"<string>\",\n \"issuer\": \"<string>\",\n \"productType\": \"<string>\",\n \"formFactor\": \"<string>\",\n \"network\": \"<string>\",\n \"expiryMonth\": 123,\n \"expiryYear\": 123,\n \"tokenRef\": \"<string>\",\n \"panFingerprintHash\": \"<string>\",\n \"last4\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"accountId": "<string>",
"accountParticipantId": "<string>",
"cardProgramId": "<string>",
"issuer": "<string>",
"cardType": "debit",
"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",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}