Submit or Resend OTP
If you accept OTP on your own page, you can use the below API to send OTP to Cashfree.
Headers
API version to be used. Format is in YYYY-MM-DD
Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
Path Parameters
The Cashfree payment or transaction ID.
Body
OTP to be submitted for headless/native OTP
OTP to be submitted
The action for this workflow. Could be either SUBMIT_OTP or RESEND_OTP
SUBMIT_OTP
, RESEND_OTP
Response
This is the response shared when merchant inovkes the OTP submit or resend API
The payment id for which this request was sent
The action that was invoked for this request.
SUBMIT_OTP
, RESEND_OTP
Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status.
FAILED
, SUCCESS
Human readable message which describes the status in more detail
Was this page helpful?