Retrieve Token Information
curl --request GET \
--url https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <api-key>'import requests
url = "https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}"
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<api-key>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<api-key>',
Authorization: '<authorization>'
}
};
fetch('https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}', 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://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"X-Date: <x-date>",
"X-Login: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<api-key>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<api-key>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<api-key>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"holder_name": "<string>",
"expiration_month": 6,
"expiration_year": 123,
"last_four_digits": "<string>",
"brand": "<string>",
"first_six": "<string>"
}{
"code": 123,
"description": "<string>"
}{
"code": 123,
"description": "<string>"
}{
"code": 123,
"description": "<string>"
}Saving cards (card-on-file)
Retrieve a stored card
Fetches basic information about a previously tokenized credit card using its unique identifier.
GET
/
v3
/
tokenization
/
{card_identifier}
Retrieve Token Information
curl --request GET \
--url https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-Date: <x-date>' \
--header 'X-Login: <api-key>'import requests
url = "https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}"
headers = {
"Content-Type": "<content-type>",
"X-Date": "<x-date>",
"X-Login": "<api-key>",
"Authorization": "<authorization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'X-Date': '<x-date>',
'X-Login': '<api-key>',
Authorization: '<authorization>'
}
};
fetch('https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}', 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://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>",
"X-Date: <x-date>",
"X-Login: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-Date", "<x-date>")
req.Header.Add("X-Login", "<api-key>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}")
.header("Content-Type", "<content-type>")
.header("X-Date", "<x-date>")
.header("X-Login", "<api-key>")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cc-api-stg.directa24.com/v3/tokenization/{card_identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["X-Date"] = '<x-date>'
request["X-Login"] = '<api-key>'
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"holder_name": "<string>",
"expiration_month": 6,
"expiration_year": 123,
"last_four_digits": "<string>",
"brand": "<string>",
"first_six": "<string>"
}{
"code": 123,
"description": "<string>"
}{
"code": 123,
"description": "<string>"
}{
"code": 123,
"description": "<string>"
}Headers
Response
Successfully retrieved card information