Check
Using the Credit Card Check API provides you with a simple and effective way against fraud
We run a zero amount authorization request against the Visa, Mastercard, and American Express network to check if the card is still valid, not stolen, or expired. The authorization request does not appear on the customer statement but still gives you the ability to test the validity of a stored credit card.
The service requires HTTP basic authentication. The required credentials can be found in our dashboard. Please refer to API authentication data for more information.
Please contact the PCI Proxy team to activate the credit card check feature on your PCI Proxy account.
post
https://api.sandbox.datatrans.com
/v1/transactions/validate
Validate
Request
Response Success
Response error
curl -X POST \
https://api.sandbox.datatrans.com/v1/transactions/validate \
-H 'Authorization: Basic MTAwMDAwMTExMTpwWUU4bFE2TlBiM2thRXpR' \
-H 'Content-Type: application/json; charset=UTF-8' \
-d '{
"currency": "EUR",
"refno": "vptJ07xyr",
"card": {
"alias": "AAABcHxr-sDssdexyrAAAfyXWIgaAF40",
"expiryMonth": "06",
"expiryYear": "25"
}
}'
{
"transactionId": "191016104224286267",
"acquirerAuthorizationCode": "104224",
"card": {
"masked": "424242xxxxxx4242"
}
}
{
"error": {
"code": "EXPIRED_CARD",
"message": "expired card"
},
"transactionId": "191016104534077141",
}
UNKNOWN_ERROR
UNAUTHORIZED
INVALID_JSON_PAYLOAD
UNRECOGNIZED_PROPERTY
INVALID_PROPERTY
CLIENT_ERROR
SERVER_ERROR
INVALID_TRANSACTION_STATUS
TRANSACTION_NOT_FOUND
EXPIRED_CARD
INVALID_CARD
BLOCKED_CARD
UNSUPPORTED_CARD
INVALID_ALIAS
INVALID_CVV
DUPLICATE_REFNO
DECLINED
SOFT_DECLINED
INVALID_SIGN
BLOCKED_BY_VELOCITY_CHECKER
THIRD_PARTY_ERROR
REFERRAL
INVALID_SETUP
Last modified 1yr ago