On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/intelligent-commerce/developer/all/rest/intelligent-commerce/intelligent-commerce-intro-requirements/intelligent-commerce-passkey-intro/tms-net-tkn-card-validate-otp-intro.md)  
Filter  
FILTER BY TAG

Validate a One-Time Password or Issuer Authentication Code {#tms-net-tkn-card-validate-otp-intro}
=================================================================================================

This section describes how to validate one-time passwords (OTPs) and issuer authentication codes. When the cardholder receives their OTP by means of their selected method (SMS, email, or online banking) or an issuer authentication code from their banking application, you can verify the OTP or issuer authentication code by including it in the endpoint here.

Endpoint
--------

**Test:** `POST ``https://apitest.cybersource.com``/tms/v2/tokenized-cards/`*{tokenId}*`/authentication-options/validate`  
**Production:** `POST ``https://api.cybersource.com``/tms/v2/tokenized-cards/`*{tokenId}*`/authentication-options/validate`  
**Production in India:** `POST ``https://api.in.cybersource.com``/tms/v2/tokenized-cards/`*{tokenId}*`/authentication-options/validate`  
The *`{tokenId}`* is the identifier of the tokenized card.

Required Field for Validating an OTP or Issuer Authentication Code {#tms-net-tkn-card-validate-otp-reqfields}
=============================================================================================================

clientCorrelationId
:
Set to the client reference ID.

issuerAuthCode
:
Required when otp is not included in the request.

otp
:
Required when issuerAuthCode is not included in the request.

stepUpOption.id
:

Related Information
-------------------

* [API Field Reference for the REST API](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/rest-api-fields-intro.md "")
  {#tms-net-tkn-card-validate-otp-reqfields_ul_kpc_xzz_sxb}

REST Example: Validating an OTP or Issuer Authentication Code {#tms-net-tkn-card-validate-otp-ex-rest}
======================================================================================================

Request

```
{
  "clientCorrelationId": "aB3cD4eF5gH6iJ7kL8mN9oP0qR1sT2uV3wX",
  "stepUpOption": {
    "id": "YWEwMjFhZmFkZDU4ZWI0NDJjYTM0MzY4OTY1YjdhMDE="
  },
  "otp": "456789",
  "issuerAuthCode": "HTZlY2YwOWQ3MDZmYWZj4GMww2Y0YjllZWFkODZkHJI="
}
```

{#tms-net-tkn-card-validate-otp-ex-rest_codeblock_c51_vmt_gwb}  
Response to a Successful Request

```
{
  "action": "AUTHENTICATION_REGISTRATION"
}
```

RELATED TO THIS PAGE

