- Cards
- Get Signature
Cards
Get Signature
This endpoint provides a way to retrieve a signature for card encryption. The public key and certificate returned can be used with the card encryption SDK.
GET
/card_signature
Bearer*
curl https://api.thanxsandbox.com/cards \
-X POST \
$AUTH_HEADERS
-d '{
"card": {
"last4": "1234",
"type": "visa",
"encrypted_pan": "\{...\}",
"zip_code": "12345"
}
}'
{
"card_signature": {
"amex": {
"public_key": "sfjwoiruweoirw20394jf09wr80294"
}
}
}
Parameters
card_typeRequired
string
Card type (visa
, mastercard
, amex
)
Response
visa
hash
Signature information for Visa
visa.public_key
The public key to use for encryption.
mastercard
hash
Signature information for Mastercard
mastercard.public_key
The public key to use for encryption.
amex
hash
Signature information for American Express
amex.public_key
The public key to use for encryption.
curl https://api.thanxsandbox.com/cards \
-X POST \
$AUTH_HEADERS
-d '{
"card": {
"last4": "1234",
"type": "visa",
"encrypted_pan": "\{...\}",
"zip_code": "12345"
}
}'
{
"card_signature": {
"amex": {
"public_key": "sfjwoiruweoirw20394jf09wr80294"
}
}
}