Generate OTP
Sends an OTP (One-Time Password) to the user via the specified notification modes. Supports multiple delivery channels including SMS and WhatsApp for secure user verification.
Authorizations
Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.
The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.
Headers
API version to be used. Format is in YYYY-MM-DD.
"2025-11-01"
Body
Request parameters to generate an OTP for the user.
Unique identifier that you create to identify the OTP verification request in your system. Maximum 50 characters. Only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.
1 - 50"Test123"
Unique identifier for the user, as provided by you during PPI user creation.
1 - 50"USER827364"
Array of notification modes for OTP delivery. Supported modes are SMS and WHATSAPP.
1SMS, WHATSAPP ["SMS", "WHATSAPP"]Response
Success response for generating an OTP.
Unique identifier for the OTP verification request, as provided by you during the request.
"Test123"
Unique identifier for the OTP verification request, generated by Cashfree.
"8901234567890123456"
Status of the OTP generation process.
OTP_GENERATED, FAILED "OTP_GENERATED"
Unique identifier for the user, as provided by you during PPI user creation.
"USER827364"
Array of notification modes used for OTP delivery.
SMS, WHATSAPP ["SMS", "WHATSAPP"]