Token Requestor API

This API is used by Token Requestors like Financial Institutions, Central Operators, Fintech aggregators etc. to provision a token and perform life cycle management operations on it.

API Overview

This API is used by Token Requestors like Financial Institutions, Central Operators, Fintech aggregators etc. to provision a token and perform life cycle management operations on it.

Note that when the Token Requestor or Financial Institution state is disabled or closed, all API requests are rejected with statusCode 9136: TOKEN_REQUESTOR_INVALID_STATE or statusCode 9141: FINANCIAL_ INSTITUTION_INVALID_STATE.

Available Endpoints

Endpoint Usage
/tokenize Used to tokenize an account.
/requestlifecyclemanagement Used to perform a state change operation on a Token.
/tokenstatusinquiry Used to enquire status of a token.
/updatetokenrestrictions Used to update restrictions of a token.

API Reference

<Link to APIC reference page>

Message Flows

The diagrams below provides an overview of the TR API message flows for Provisioning, Lifecycle Management, Token Status Inquiry and Update Token Restrictions.

The diagrams below provides an overview of the TR API message flows for Provisioning, Lifecycle Management, Token Status Inquiry and Update Token Restrictions.

pat service description message flows 20250925

Provisioning

Used to request a token for a real account number with optional restrictions including counterparty account number, token expiry date, single-use token, and transaction limits.

Used to request a token for a real account number. Optionally, the following restrictions can be added to the requested token:

  • Counterparty account number
  • Token Expiry Date
  • Single-use token
  • Transaction Maximum Amount Limit
  • Transaction Currency Code
  • Token Account and Counterparty Account Categories

The counterparty account number must be included if the real account numbers' Financial Institution has configured that the counterparty is required.

Also, the transaction currency code and maximum amount limit are validated against the Financial Institutions' token level restriction configuration.

pat servicedescription provisioning 20250925

Lifecycle Management

Token lifecycle management operations for state changes and token management.

Lifecycle management operations allow for state changes and management of tokens throughout their lifecycle.

pat servic edescription ch1 lifecycle management 20250925

Token Status Inquiry

Used to enquire about the current status of a token.

Token Status Inquiry allows you to check the current status and details of an existing token.

pat servicedescription token status inquiry 20250925

Update Token Restrictions

The following restrictions can be updated: Expiry Date, Counterparty, Multi Use, Transaction Maximum Amount Limit, Transaction Currency Code, and Token Account Categories.

The following restrictions can be updated:

  • Expiry Date
  • Counterparty
  • Multi Use
  • Transaction Maximum Amount Limit
  • Transaction Currency Code
  • Token Account and Counterparty Account Categories

For the restrictions Counterparty (required or not), Transaction Maximum Amount Limit and Transaction Currency Code, the Financial Institution can configure the required values per domain, token range and/or Token Requestor ID.

Update Expiry Date

A Bank (or third-party) can update a token's expiry date (yyMM) with this restriction.

A Bank (or third-party) can update a token's expiry date (yyMM) with this restriction.

The earliest expiry date value must be equal to the current month plus one. Example: If the request is sent on September 2020, the token expiry date value should be October 2020 or later.

pat servicedescription ch1 update expiry date 20250925

Update Counterparty

A Financial Institution (or a third-party) can instruct PAT to update the tokens' counterparty routing number or real account number.

A Financial Institution (or a third-party) can instruct PAT, through the Token Requestor Interface, to update the tokens' counterparty routing number or real account number with this restriction.

For assigning a counterparty to a token, PAT will apply the following rules if the:

  • counterparty sent in the request is a (real) account (maintained by a Financial Institution which may or may not be onboarded), and PAT assigns this account as a counterparty to the requested token.
  • counterparty sent in the request is a token, and PAT detokenizes it and uses the real account as counterparty of the requested token.
  • Financial Institution has configured the counterparty as required, and the counterparty account number must be present in the request.

pat servicedescription update counter party 20250925

Update Multi Use Token

Used by the Token Requestor to update the multi use of an existing token.

Used by the Token Requestor to update the multi use of an existing token.

The token becomes a single use token when the multiUseToken is set to false. The token can be used multiple times when set to true.

pat servicedescription update multiuse token 20250925

Update Transaction Maximum Amount Limit

Used by the Token Requestor to update the transaction maximum amount limit of an existing token.

Used by the Token Requestor to update the transaction maximum amount limit of an existing token.

The maximum amount limit is validated against the Token Level Restrictions configuration of the Financial Institution that owns the linked account number:

  • If the request contains a value that is <= the configured 'Maximum Transaction Amount' then the value assigned to the token will be the value supplied by the token requestor in the request.
  • If the request contains a value that is > the configured 'Maximum Transaction Amount' then the token request will be rejected with a new error code 'transactionMaxAmountLimit invalid'.

pat servicedescription ch1 update transaction maximum amount limit 20250925

Update Transaction Currency Code

Used by the Token Requestor to update the transaction currency code of an existing token.

Used by the Token Requestor to update the transaction currency code of an existing token.

The currency code is validated against the Token Level Restrictions configuration of the Financial Institution that owns the linked account number.

pat servicedescription update transaction currency code 20250925

Update Token Account Category

Token Requestor can assign one category restriction to the token during provisioning and restriction update.

Token Requestor can assign one category restriction to the token during provisioning and restriction update. Supported categories are:

  • Consumer
  • Corporate

This restriction can be validated during a transaction where the category of the originating token is checked against the supported categories of the counterparty account category.

pat servicedescription update token account category 20250925

Update Token Counterparty Account Category

Token Requestor can assign one or more category restrictions to the counterparty account of a token.

Token Requestor can assign one or more category restrictions to the counterparty account of a token during provisioning and restriction update. Supported categories are:

  • Consumer
  • Corporate

This restriction is used during a transaction where the category of the originating token is checked against the supported categories of the counterparty account category.

For example, when the Counterparty Account Category is 'Consumer, Corporate' and the token category is 'Consumer' then the restriction validation is successful.

pat servicedescription update token counterparty account category 20250925

Token Requestor API Response Codes

Response codes and status messages for Token Requestor API endpoints.

Response Codes

This section includes detailed information about the API Response fields statusCode and statusMessage.

Example HTTP 200 Response

{
"messageId": "6fdf4f09-7fbb-48ae-be1e-ac412a2949a7",
"statusCode": "00000",
"statusMessage": "Success."
}
		

Example HTTP 200 Response with encTokens

{
"messageId": "6fdf4f09-7fbb-48ae-be1e-ac412a2949a7",
"statusCode": "00000",
"statusMessage": "Success.", 
"encTokens": "..."
}
		

Response Message: HTTP Code, statusCode and statusMessage

HTTP Code statusCode statusMessage Applicable Message
200 0000 Success -
400 9001 INVALID_FORMAT; 1. Mandatory data fields are missing 2. The value of fields are not in the required format (length, data type) 3. When the field has a limited list of pre-defined allowed values (ENUM) and the submitted value is not one of them. -
400 9002 INVALID_VALUE; 1. The request contains a value for a field is used to locate an entity in the server, and the server cannot find the entity (note that other more specific errors might be returned rather than this error code to provide additional information) 2. The web service client making the request is not authorized to make the request. -
400 9104 TOKEN_INVALID_STATE; The token is not currently in a valid state for this request. -
400 9006 TOKEN_NOT_FOUND; Every command with tokenReferenceId in its request while token cannot be found in the token vault. -
500 9003 SERVER_NOT_AVAILABLE; The server is currently under heavy load and cannot handle the request at this time. -
500 9005 GENERIC_ERROR; An unknown error has occurred. This error is used if the occurred error does not match the defined errors, or when the cause of the error is unknown. -
403 9121 REQUEST_NOT_ALLOWED; The request was valid, but it is refused action. -
400 9124 ACCOUNT_TOKENIZATION_NOT_ALLOWED; The provided account is not eligible for tokenization. -
400 9125 TOKEN_ACCOUNT_ISSUER_MISMATCH; The account belongs to a different financial institution. -
400 9128 TOKEN_ACCOUNT_REQUESTER_NOT_ALLOWED; Financial Institution token requestors can only manage their own accounts. -
401 9022 AUTHORIZATION_FAILED; The request has not been applied because it lacks valid authentication credentials for the target resource. -
400 9109 CRYPTOGRAM_INVALID; The cryptogram was not verified successfully. -
400 9110 CRYPTOGRAM_EXPIRED; The cryptogram has expired. -
400 9116 KEYS_NOT_FOUND; Keys cannot be found in KMS. -
400 9117 CRYPTOGRAPHY_ERROR; Failed to encrypt/decrypt data with keys. -
400 9123 COUNTERPARTYDATA_NOT_FOUND; The counterpartydata received is unknown. -
400 9127 FEATURE_NOT_SUPPORTED; The feature is not supported. -
400 9136 TOKEN_REQUESTOR_INVALID_STATE; The token requestor is currently in a state that does not allow the requested action. -
400 9137 TRANSACTION_MAX_AMOUNT_LIMIT_INVALID; The system is configured to reject transactionMaxAmountLimit value included in the request. -
400 9138 COUNTER_PARTY_DATA_REQUIRED; The system is configured to require counterPartyData to be included in the request. -
400 9139 CURRENCY_INVALID; The system is configured to reject transactionCurrencyCode included in the request. -
400 9141 FINANCIAL_INSTITUTION_INVALID_STATE; The request cannot be processed because the financial institution state does not allow for it. -
400 9145 TR_DYNAMIC_TOKEN_ATTRIBUTES_INVALID; Dynamic token attributes are invalid. -
500 9146 NO_MORE_TOKENS_AVAILABLE; No tokens are available for provisioning. -

API Reference

<Link to APIC reference page>

Example HTTP 200 response

Example of a successful HTTP 200 response from the Token Requestor API.

Example Response

{
  'messageId': '6fdf4f09-7fbb-48ae-be1e-ac412a2949a7',
  'statusCode': '00000',
  'statusMessage': 'Success.'
}
		

Example HTTP 200 response with encTokens

Example of a successful HTTP 200 response with encrypted tokens from the Token Requestor API.

Example Response with Encrypted Tokens

{
  'messageId': '6fdf4f09-7fbb-48ae-be1e-ac412a2949a7',
  'statusCode': '00000',
  'statusMessage': 'Success.',
  'encTokens': '...'
}
		

Token Requestor Response Message Codes

Detailed response message codes for Token Requestor API operations.

Token Requestor Response Message Codes

This section provides detailed information about response message codes specific to Token Requestor API operations.

Token Operations

Token Requestor API responses cover various token operations:

  • Token provisioning
  • Lifecycle management
  • Status inquiries
  • Restriction updates

Error Resolution

Response message codes help Token Requestors understand and resolve issues:

  • Authentication and authorization errors
  • Token state conflicts
  • Restriction validation failures
  • System availability issues