# Generate Transaction OTP

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/otp:
    post:
      summary: Generate Transaction OTP
      deprecated: false
      description: >-
        :::highlight purple 📌

        Generate Transaction OTP sends a one-time passcode to the user via SMS
        to approve sensitive wallet actions. The OTP is linked to a specific
        transaction, valid for a limited time, and can be used only once to add
        an extra layer of security.

        :::
      tags:
        - Wallet/APIs - Wallet/Wallet Management
      parameters:
        - name: authorization
          in: header
          description: ''
          required: true
          example: Bearer j8o6WSg6p6W7uOzycG6Yewzn06E
          schema:
            type: string
        - name: partnerId
          in: header
          description: ''
          required: true
          example: CRM338L2H
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Cookie
          in: header
          description: ''
          required: true
          example: >-
            _cfuvid=jS8C5lxGW4Q6FRWotUQnMGhbxbpGmvk3fGg1kdmq4WM-1752680737979-0.0.1.1-604800000;
            JSESSIONID=0358753FB975001E868ABA71D2AA2204
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                cardOtpAction:
                  type: string
                  description: TRANSACTION_OTP,ACTIVATE,
                companyId:
                  type: string
                enKashCardId:
                  type: string
              required:
                - cardOtpAction
                - companyId
                - enKashCardId
              x-apidog-orders:
                - cardOtpAction
                - companyId
                - enKashCardId
            example:
              cardOtpAction: TRANSACTION_OTP
              cardAccountId: CAC7975
              enKashCardId: EKCBEFFEC1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  payload:
                    type: object
                    properties:
                      otpRequestId:
                        type: string
                        description: OTP unique Request ID generated by system
                      mobileNumber:
                        type: string
                        description: Mobile number on which otp is triggered
                    required:
                      - otpRequestId
                      - mobileNumber
                    x-apidog-orders:
                      - otpRequestId
                      - mobileNumber
                required:
                  - code
                  - message
                  - payload
                x-apidog-orders:
                  - code
                  - message
                  - payload
              example:
                code: 0
                message: Success
                payload:
                  otpRequestId: EK7E5CKFQX
                  mobileNumber: 60XXXXXX11
          headers: {}
          x-apidog-name: OK
      security:
        - bearer: []
      x-apidog-folder: Wallet/APIs - Wallet/Wallet Management
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-19201679-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
