# Validate OTP

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /pay/otp/validate:
    post:
      summary: Validate OTP
      deprecated: false
      description: >-

        :::highlight purple 📌

        Use this API to validate the OTP entered by the user on your payment
        page. This step confirms the user's identity and authorizes the
        transaction, ensuring secure and compliant payment processing.

        :::
      tags:
        - Payment Gateway/APIs - Payment Gateway /Payment
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPValidationRequest'
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationResponseOTPResponse'
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Payment Gateway/APIs - Payment Gateway /Payment
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-10664810-run
components:
  schemas:
    OTPValidationRequest:
      required:
        - ekPayId
        - otp
      type: object
      properties:
        ekPayId:
          type: string
        otp:
          type: string
        checkSum:
          type: string
      x-apidog-orders:
        - ekPayId
        - otp
        - checkSum
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponseOTPResponse:
      type: object
      properties:
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/OTPResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    OTPResponse:
      type: object
      properties:
        uniqueTransactionId:
          type: string
        publicIdentifierKey:
          type: string
        transactionId:
          type: string
        amount:
          type: string
        currency:
          type: string
        otpReferenceNumber:
          type: string
        txnMessage:
          type: string
        txnStatus:
          type: string
        txnDate:
          type: string
        orderId:
          type: string
      x-apidog-orders:
        - uniqueTransactionId
        - publicIdentifierKey
        - transactionId
        - amount
        - currency
        - otpReferenceNumber
        - txnMessage
        - txnStatus
        - txnDate
        - orderId
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
