Card Tokenize
POST https://gateway-api.paycertify.com/api/tokens/tokenize
This endpoint tokenizes a given credit card number. You will need to provide the card number you wish to store and then you will be able to retrieve the card number with the original number out of the token provided on the response.
Parameter | Type | Length | Presence | Description | Example |
---|---|---|---|---|---|
card_number |
string |
8-19 | Required | The credit card to tokenize | 4111111111111111 |
card_expiry_month |
string |
2 | Required | The expiration month with two positions | 12 |
card_expiry_year |
string |
4 | Required | The expiration year with four positions | 2025 |
Parameter | Type | Length | Description | Example |
---|---|---|---|---|
card_token.id |
uuid |
36 | This token’s ID | 41f00869-d7b3-413e-9476-9ef1a8bc2f28 |
card_token.merchant_id |
uuid |
36 | The token’s merchant ID | 41f00869-d7b3-413e-9476-9ef1a8bc2f28 |
card_token.card_token |
string |
8-19 | The tokenized credit card | 4111098765431111 |
curl --request POST \
--url https://gateway-api.paycertify.com/api/tokens/tokenize \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--form 'card_number=4111111111111111' \
--form 'card_expiry_month=12' \
--form 'card_expiry_year=2025' \
Responds with:
{
"card_token": {
"id": "41f00869-d7b3-413e-9476-9ef1a8bc2f28",
"merchant_id": "41f00869-d7b3-413e-9476-9ef1a8bc2f28",
"card_token": "4111098765431111"
}
}