Using the card check API provides you with a simple and effective way against fraud. Thereby we run a zero amount call against the Visa, MasterCard and AMEX 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 PCI Proxy team to activate the credit card check feature on your PCI Proxy account.
CHF
, USD
or EUR
and for AMEX cards use EUR
{"transactionId": "190828124101219812","acquirerAuthorizationCode": "124101"}
{"error": {"code": "EXPIRED_CARD","message": "expired card"},"transactionId": "191016104534077141","card": {}}
In test mode, only test credit cards are allowed.
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": "12","expiryYear": "21"}}'
{"transactionId": "191016104224286267","acquirerAuthorizationCode": "104224","card": {"masked": "424242xxxxxx4242"}}
{"error": {"code": "EXPIRED_CARD","message": "expired card"},"transactionId": "191016104534077141",}
"UNKNOWN_ERROR"
,"UNRECOGNIZED_PROPERTY"
,"INVALID_PROPERTY"
,"INVALID_TRANSACTION_STATUS"
,"TRANSACTION_NOT_FOUND"
,"INVALID_JSON_PAYLOAD"
,"UNAUTHORIZED"
,"EXPIRED_CARD"
,"INVALID_CARD"
,"UNSUPPORTED_CARD"
,"DUPLICATED_REFNO"
,"DECLINED"
,"BLOCKED_BY_VELOCITY_CHECKER"
,"CLIENT_ERROR"
,"SERVER_ERROR"