LogoLogo
Document ValidationsPayment Methods
Latest
Latest
  • D24 APIs
  • Getting Started with D24
  • API Documentation
    • Deposits API
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Deposit Creation Endpoint
          • Notifications
        • PCI Deposit Creation Endpoint
        • Deposit Status Endpoint
        • Payment Methods Endpoint
        • Currency Exchange Endpoint
        • Crypto Exchange Endpoint
        • Country States Codes Endpoint
        • Refund Creation Endpoint
          • Notifications
        • Refund Status Endpoint
      • Payment Methods
        • ๐ŸŒŽAmerica
          • ๐Ÿ‡ฆ๐Ÿ‡ทArgentina
          • ๐Ÿ‡ง๐Ÿ‡ดBolivia
          • ๐Ÿ‡ง๐Ÿ‡ทBrazil
          • ๐Ÿ‡จ๐Ÿ‡ฑChile
          • ๐Ÿ‡จ๐Ÿ‡ฆCanada
          • ๐Ÿ‡จ๐Ÿ‡ดColombia
          • ๐Ÿ‡ช๐Ÿ‡จEcuador
          • ๐Ÿ‡ฌ๐Ÿ‡นGuatemala
          • ๐Ÿ‡ฒ๐Ÿ‡ฝMexico
          • ๐Ÿ‡ต๐Ÿ‡พParaguay
          • ๐Ÿ‡ต๐Ÿ‡ชPeru
        • ๐ŸŒAfrica
          • ๐Ÿ‡ง๐Ÿ‡ผBotswana
          • ๐Ÿ‡จ๐Ÿ‡ฒCameroon
          • ๐Ÿ‡จ๐Ÿ‡ฌCongo Brazzaville
          • ๐Ÿ‡จ๐Ÿ‡ฉCongo DRC
          • ๐Ÿ‡ช๐Ÿ‡ฌEgypt
          • ๐Ÿ‡ฌ๐Ÿ‡ฆGabon
          • ๐Ÿ‡ฌ๐Ÿ‡ญGhana
          • ๐Ÿ‡จ๐Ÿ‡ฎIvory Coast
          • ๐Ÿ‡ฐ๐Ÿ‡ชKenya
          • ๐Ÿ‡ณ๐Ÿ‡ฌNigeria
          • ๐Ÿ‡ฒ๐Ÿ‡ผMalawi
          • ๐Ÿ‡ท๐Ÿ‡ผRwanda
          • ๐Ÿ‡ฟ๐Ÿ‡ฆSouth Africa
          • ๐Ÿ‡บ๐Ÿ‡ฌUganda
          • ๐Ÿ‡ฟ๐Ÿ‡ฒZambia
          • ๐Ÿ‡น๐Ÿ‡ฟTanzania
        • ๐ŸŒAsia
          • ๐Ÿ‡ง๐Ÿ‡ฉBangladesh
          • ๐Ÿ‡จ๐Ÿ‡ณChina
          • ๐Ÿ‡ญ๐Ÿ‡ฐHong Kong
          • ๐Ÿ‡ฎ๐Ÿ‡ณIndia
          • ๐Ÿ‡ฎ๐Ÿ‡ฉIndonesia
          • ๐Ÿ‡ฏ๐Ÿ‡ตJapan
          • ๐Ÿ‡ฒ๐Ÿ‡พMalaysia
          • ๐Ÿ‡ต๐Ÿ‡ฐPakistan
          • ๐Ÿ‡น๐Ÿ‡ญThailand
          • ๐Ÿ‡น๐Ÿ‡ทTurkey
          • ๐Ÿ‡ป๐Ÿ‡ณVietnam
      • API Codes
    • Cashouts API
      • Technical and Security Aspects
        • Calculating the Payload-Signature
      • Endpoints
        • Cashout Creation Endpoint
          • Notifications
        • Cashout Status Endpoint
        • Cashout Update Status Endpoint
        • Cashout Cancellation Endpoint
        • Cashout Bank Codes
      • Countries Validations
        • American Countries
          • ๐Ÿ‡ง๐Ÿ‡ดBolivia
          • ๐Ÿ‡ง๐Ÿ‡ทBrazil
          • ๐Ÿ‡จ๐Ÿ‡ฆCanada
          • ๐Ÿ‡จ๐Ÿ‡ฑChile
          • ๐Ÿ‡จ๐Ÿ‡ดColombia
          • ๐Ÿ‡ช๐Ÿ‡จEcuador
          • ๐Ÿ‡ฒ๐Ÿ‡ฝMexico
          • ๐Ÿ‡ต๐Ÿ‡ชPeru
          • ๐Ÿ‡ฆ๐Ÿ‡ทArgentina
          • ๐Ÿ‡ต๐Ÿ‡พParaguay
        • African Countries
          • ๐Ÿ‡ง๐Ÿ‡ผBotwsana
          • ๐Ÿ‡จ๐Ÿ‡ฒCameroon
          • ๐Ÿ‡จ๐Ÿ‡ฌCongo Brazzaville
          • ๐Ÿ‡จ๐Ÿ‡ฉCongo DRC
          • ๐Ÿ‡ช๐Ÿ‡ฌEgypt
          • ๐Ÿ‡ฌ๐Ÿ‡ฆGabon
          • ๐Ÿ‡ฌ๐Ÿ‡ญGhana
          • ๐Ÿ‡ฐ๐Ÿ‡ชKenya
          • ๐Ÿ‡ฒ๐Ÿ‡ผMalawi
          • ๐Ÿ‡ณ๐Ÿ‡ฌNigeria
          • ๐Ÿ‡ท๐Ÿ‡ผRwanda
          • ๐Ÿ‡ฟ๐Ÿ‡ฆSOUTH AFRICA
          • ๐Ÿ‡ฟ๐Ÿ‡ฒZambia
        • Asian Countries
          • ๐Ÿ‡ง๐Ÿ‡ฉBangladesh
          • ๐Ÿ‡จ๐Ÿ‡ณChina
          • ๐Ÿ‡ฎ๐Ÿ‡ณIndia
          • ๐Ÿ‡ฎ๐Ÿ‡ฉIndonesia
          • ๐Ÿ‡ฏ๐Ÿ‡ตJapan
          • ๐Ÿ‡ฒ๐Ÿ‡พMalaysia
          • ๐Ÿ‡น๐Ÿ‡ญThailand
          • ๐Ÿ‡น๐Ÿ‡ทTurkey
          • ๐Ÿ‡ต๐Ÿ‡ฐPakistan
          • ๐Ÿ‡ป๐Ÿ‡ณVietnam
        • Oceania Countries
          • ๐Ÿ‡ฆ๐Ÿ‡บAustralia
      • API Codes
    • Subscriptions API
      • Technical and Security Aspects
        • Calculating the Signature
      • Subscription Creation Endpoints
        • OneShot Subscription Creation
        • PCI Subscription Creation Endpoint
        • Notifications
      • Subscription Cancellation Endpoint
      • Subscription Status Endpoint
    • Card-On-File API
      • Technical and Security Aspects
        • Calculating the Signature
      • Create Card Token Endpoint
      • Retrieve Card Token Endpoint
      • Delete Card Token Endpoint
    • Bank Accounts Validation API
      • Technical and Security Aspects
        • Calculating the Signature
      • Endpoints
        • Bank Account Validation Endpoint
        • Pix Key Validation Endpoint
      • API Codes
    • KYC API
      • Technical and Security Aspects
        • Calculating the Signature
      • KYC Endpoint
      • API Codes
    • Reconciliation API
      • Technical and Security Aspects
      • Endpoints
      • API Codes
    • Quickpay
      • Endpoints
        • Deposit creation endpoint
          • Notifications
        • Deposit Status Endpoint
    • Tools for Platforms
      • Technical and Security Aspects
        • Calculating the Signature
      • SubMerchant Creation
        • Notifications
      • SubMerchant Status Endpoint
      • Commission Update Endpoint
  • PLUGINS
    • Shopify
      • Installation
      • Onboarding
      • Customer flow
      • Admin Flow
      • Tutorials
      • FAQ
    • WooCommerce
      • Installation
      • Configuration
  • Deposits Tools
    • Cards SDK
      • With User Interface
        • ๐Ÿš€Color Customization
      • Without User Interface
    • Java SDK
    • PHP SDK
  • Knowledge Base
    • Countries Specifications
    • Subscriptions with Card On File
    • Deposits with Cards SDK
      • With User Interface
      • Without User Interface
    • Deposits with 3DS Authentication
    • Deposits with Installments
  • v1 Developers Guide
  • Status Page
Powered by GitBook
On this page

Was this helpful?

  1. API Documentation
  2. Card-On-File API

Retrieve Card Token Endpoint

PreviousCreate Card Token EndpointNextDelete Card Token Endpoint

Last updated 1 day ago

Was this helpful?

Request

Path Parameters

Parameter
Type
Required
Description

card_identifier

String

Yes

The unique card token obtained during tokenization

Response

Success Response (200 OK)

{
  "holder_name": "Luis Perez",
  "expiration_month": 10,
  "expiration_year": 2028,
  "last_four_digits": "1111"
}

Response Fields

Field
Type
Description

holder_name

String

Cardholder name

expiration_month

Integer

Expiration month

expiration_year

Integer

Expiration year

last_four_digits

String

Last four digits of the card

Error Responses

HTTP Status
Error Code
Description

404

510

Token not found

401

511

Token expired

401

512

Unauthorized access

Error Response Example

{
    "code": 510,
    "description": "Token not found"
}

Integration Example

cURL Example

curl --request GET \
  --url https://cc-api-stg.directa24.com/v3/tokenization/YOUR_CARD_IDENTIFIER \
  --header 'Content-Type: application/json' \
  --header 'X-Date: 2024-05-12T14:30:00Z' \
  --header 'X-Login: YOUR_API_KEY' \
  --header 'Authorization: YOUR_AUTHORIZATION_HASH'

Common Use Cases

  1. Display masked card details: Use the returned information to show card details to users in a PCI-compliant way

  2. Pre-fill checkout forms: Use the card information to pre-populate checkout forms while keeping sensitive data secure

  3. Verify expiration: Check if a card is approaching expiration to prompt the user for an update

Notes

  • For security reasons, this endpoint only returns basic card information (cardholder name, expiration date, and last four digits)

  • The complete card number and CVV are never returned

  • The token must belong to your merchant account; otherwise, a 404 error will be returned

  • This endpoint is useful for displaying saved payment methods to your users

Retrieve Token Information

get

Fetches basic information about a previously tokenized credit card using its unique identifier.

Authorizations
Path parameters
card_identifierstringRequired

The unique card token obtained during tokenization

Header parameters
Content-TypestringRequired

Media type of the body sent to the API

Default: application/json
X-Datestring ยท date-timeRequired

ISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ)

X-LoginstringRequired

Merchant X-Login API Key

AuthorizationstringRequired

Authorization control hash

X-Idempotency-KeystringOptional

Unique idempotency key for ensuring that the same request is not processed more than once

Responses
200
Successfully retrieved card information
application/json
400
Invalid request format
application/json
401
Unauthorized
application/json
404
Token not found
application/json
get
GET /v3/tokenization/{card_identifier} HTTP/1.1
Host: cc-api-stg.directa24.com
X-Login: text
Content-Type: application/json
X-Date: 2025-05-14T11:42:17.121Z
Authorization: text
Accept: */*
{
  "holder_name": "Luis Perez",
  "expiration_month": 10,
  "expiration_year": 2028,
  "last_four_digits": "1111"
}
  • GETRetrieve Token Information
  • Request
  • Path Parameters
  • Response
  • Success Response (200 OK)
  • Response Fields
  • Error Responses
  • Error Response Example
  • Integration Example
  • cURL Example
  • Common Use Cases
  • Notes