v1
latestOpenAPI 3.0.02026-07-242035712.0 MBCard PaySecure WS
Pan To Token
<ul> <li class="docBullet">This web service allows to get token for the provided PAN.</li> <li class="docBullet">Pass the AES encrypted PAN,EXPIRY CVV2 to the API.</li> <li class="docBullet">Expiry must be in YYMM format before encryption.</li></ul>post/sc/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
Example request
{
"client_id": 760131,
"expiry": "+RyrdXnhXhXb6qbV2L6d1F92Y7l=",
"iv": "Xb6qbV2L6d1F92YU",
"pan": "+AyrdXnhXhXb6qbV2L6d1F92YNj=",
"cvv2": "+NyuNUEimdODnelI6qbV2L6d1F92YUc="
}Response
Successful Response
Example response
{
"header": {
"error_desc": "success"
},
"body": {
"token": 9845739047
}
}