Submit or Resend OTP
If you accept OTP on your own page, you can use the below API to send OTP to Cashfree.
POST
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
application/json
Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
OTP to be submitted for headless/native OTP
Response
200
application/json
OK
This is the response shared when merchant inovkes the OTP submit or resend API