Token Management
Create/Update Token Details
Create/Update a token using the OnlinePay Tokenisation Service.
If a token exists for the card already, it is updated with the information in the request. Otherwise, a new token is created for the given card.
put/api/v2/card
Request body
Example request
{
"token_scope": "0e48425a-f1bc-431a-b7d8-f866de8ba276",
"encrypted_card": "U3dhZ2dlciByb2Nrcw=="
}Response
Token result
Example response
{
"bin": "492912",
"expiry_month": 12,
"expiry_year": 2021,
"last_four": "3127",
"card_holder_name": "MR J HOLDER",
"bin_details": {
"bin": "492912",
"brand": "VISA",
"issuer_name": "HSBC",
"last_four": "3127",
"type": "CREDIT",
"variant": "NEW_WORLD"
},
"token_status": "ACTIVE"
}