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 --request GET \
--url https://api.thanx.com/card_signature \
--header 'Authorization: Bearer <token>' \
--data '{
"card_type": "<card_type>"
}'
curl https://api.thanxsandbox.com/card_signature?card_type=amex
{
"card_signature": {
"amex": {
"public_key": "sfjwoiruweoirw20394jf09wr80294",
"uid": "957f8a1c944d9ce1b9cafc2c0f6ac6"
}
}
}
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/card_signature?card_type=amex
{
"card_signature": {
"amex": {
"public_key": "sfjwoiruweoirw20394jf09wr80294",
"uid": "957f8a1c944d9ce1b9cafc2c0f6ac6"
}
}
}