Store a card
Creates a secure token for a credit card along with payer data. Optionally performs a micro-deposit validation to verify the card's validity.
Header parameters
Content-TypestringRequiredDefault:
Media type of the body sent to the API
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
Body
micro_deposit_enabledbooleanOptionalDefault:
When true (default), performs a micro-deposit to validate the card
true
Example: true
Responses
200
Successful operation
application/json
401
Unauthorized access
application/json
post
POST /v3/tokenization HTTP/1.1
Host: cc-api-stg.directa24.com
Content-Type: application/json
X-Date: 2025-08-29T19:05:00.887Z
X-Login: text
Authorization: text
Accept: */*
Content-Length: 267
{
"credit_card": {
"holder_name": "Luis Perez",
"expiration_month": 10,
"expiration_year": 2028,
"number": "4111111111111111",
"cvv": "123"
},
"payer": {
"country": "BR",
"first_name": "John",
"last_name": "Perez",
"document_type": "CPF",
"document": "12345678"
},
"micro_deposit_enabled": true
}
{
"holder_name": "Luis Perez",
"expiration_month": 10,
"expiration_year": 2028,
"last_four_digits": "1111",
"card_identifier": "CID-2210908e-6d8e-468d-9eb3-d551e8b541a0"
}
Last updated
Was this helpful?