POST
/
v3
/
{id}
/
encryptcardpaymentinfo

Path Parameters

id
string
required

The card id for given card

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json
encryptionKey
string
required

Public key used to encrypt the fields in the result.

encryptionMethod
enum<string>

In this field the encryption method is selected. This is to prepare for future use since only one method is supported.

  • RSA_ECB_OAEP_SHA256_MGF1_2048 - RSA/ECB/OAEPWithSHA-256AndMGF1Padding. Public key length 2048.
Available options:
RSA_ECB_OAEP_SHA256_MGF1_2048
fields
enum<string>[]

In this field you can list which fields the service should encrypt and return. If a field is not listed, it will be left out from the response. Note that only fullCardNumber and cvv2 will be encrypted.

  • fullCardNumber - PAN number (card number) for the card
  • expirationDate - The expiration date of the card, in format MM/YY
  • cvv2 - The CVV2 (if Visa), or CVC2 (if Mastercard) value
Available options:
fullCardNumber,
expirationDate,
cvv2

Response

200 - application/json
fullCardNumber
string

The enrypted full card number (PAN). Base64 encoded

expirationDate
string

The expiration date of the card, in format MMYY

cvv2
string

The encrypted CVV2 (if Visa), or CVC2 (if Mastercard) value. Base64 encoded