---
title: "Validate Token"
method: POST
path: "/token/validate"
tags: ["ValidateToken"]
---

# Validate Token

`POST /token/validate`

## Request

- Base URL: `http://api.payu.in`
- URL: `http://api.payu.in/token/validate`
- Auth: none declared. Required headers: `Authorization`, `clientType`

Validate token

## Headers

- `Authorization` string, required
- `clientType` string, required

## Request body

- TokenRequestDTO
  - `token` string: Token Value
  - `mobileNumber` string: Mobile Number should be same as used in token generation
  - `email` string: Email to which OTP should be send
  - `sendOtpRequestDTO` SendOtpRequestDTO: Send otp request params to send otp if token validation fails
    - `mobileNumber` string, required: Mobile Number in which OTP should be send
    - `merchantName` string, required: Merchant Name is used in OTP Message
    - `merchantDomain` string, required: Merchant domain is used in OTP Message
    - `amount` number, double: Amount is used in OTP Message
    - `provider` string: Provider is flipkart Loyalty service
    - `webfrontPrefix` string: Webfront Prefix for Omnichannel eligibility client
    - `subClient` string: subClient is widget
    - `channel` 'SMS' | 'EMAIL' | 'WHATSAPP': subClient is widget
    - `recipient` RecipientDTO
      - `email` string: Email to which OTP should be send
      - `mobileNumber` string
    - `userIdentifier` string
    - `merchantId` string
  - `sendOtpOnFailureEnabled` boolean: Send otp when token validation fails

## Response `200`

Token validated successfully

- string

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/payu/apis/payu-api.md) - [All operations](https://skmtc.dev/payu/apis/payu-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payu/apis/payu-api/revisions/94819b539402?raw)
