If you accept OTP on your own page, you can use the below API to send OTP to Cashfree.
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.
The Cashfree payment or transaction ID.
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
OK
This is the response shared when merchant inovkes the OTP submit or resend API