v1

latestOpenAPI 3.0.02026-07-242035712.0 MB
Card

Get Pan Number

This web service retrieves the PAN number for a specified token.
The PAN number is retrieved based on the following options:

  • 2 = first BIN digits (6 or 8 depending on BIN length)
  • 3 = last four digits
  • 4 = first BIN digits (6 or 8) + last four digits
post/pws/pws_get_pan_number/

Request body

api_call_unique_identifierstring required

Unique number that must be passed at each API request. Identifier to make each API request unique

client_idinteger required

Unique identifier for the client which Paymentology will provide at outset

pan_optionsinteger required
<ul> <li class="docBullet">2 = first BIN digits (6 or 8 depending on BIN length)</li> <li class="docBullet">3 = last four digits</li> <li class="docBullet">4 = first BIN digits (6 or 8) + last four digits</li> </ul>
tokeninteger required

Public token

user_idstring

User Id of the Customer who triggered the API request.

remarksstring

Remarks for API request

Example request

{
  "api_call_unique_identifier": "438574845790657485",
  "client_id": 760131,
  "pan_options": 2,
  "token": 311012081
}

Response

Successful Response

Example response

{
  "header": {
    "error_desc": "success"
  },
  "body": {
    "pan": "545454******7384"
  }
}