Create a token for a credit card

This service generates a credit card token for use during payments.

Request
Request Body schema: application/json
source
required
string [ 2 .. 20 ] characters

Specifies the source system for this request

pan
required
string^[0-9]{13,19}$

Card PAN to be tokenised

expiryMonth
required
integer [ 1 .. 12 ]
expiryYear
required
integer >= 2018
cardHolderName
string

The name of the card holder, as printed on the card

Responses
200

OK

default

Error

post/tokenise
Request samples
application/json
{
  • "source": "string",
  • "pan": "string",
  • "expiryMonth": 1,
  • "expiryYear": 2018,
  • "cardHolderName": "string"
}
Response samples
application/json
{
  • "outcome": "accepted",
  • "token": "string"
}
Copyright © nib Travel 2022. All right reserved.