v1

latestOpenAPI 3.0.02026-07-242035712.0 MB
Card PaySecure WS V3

Pan To Token V3

<ul> <li class="docBullet">This web service allows to get token for the provided PAN.</li> <li class="docBullet">The API will only needs the AES encrypted PAN </ul>
post/sc/v3/sc_pan_to_token/

Headers

Session-Idstring required

Session Id for Current Request - 32 byte AES key encrypted by RSA Public Key passed in Header in every PaySecure API call.

x-api-keystring

The X-API key is sent to the client in an email during client creation

Request body

client_idinteger required

Unique identifier for the client which Paymentology will provide at outset

ivstring required

16 bits initialization vector (IV) used while encryption (Base64 encoded)

panstring required

AES Encrypted PAN (Base64 encoded)

Example request

{
  "client_id": 760131,
  "iv": "Xb6qbV2L6d1F92YU",
  "pan": "+AyrdXnhXhXb6qbV2L6d1F92YNj="
}

Response

Successful Response

Example response

{
  "header": {
    "error_desc": "success"
  },
  "body": {
    "token": 9845739047
  }
}