POST
/
orders
/
pay
/
authenticate
/
{cf_payment_id}
curl --request POST \
--url https://sandbox.cashfree.com/pg/orders/pay/authenticate/{cf_payment_id} \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '{
"action": "SUBMIT_OTP",
"otp": 111000
}'
{
  "action": "SUBMIT_OTP",
  "authenticate_status": "SUCCESS",
  "cf_payment_id": "3991872901",
  "payment_message": "payment successful"
}

Refer to the sample responses below:

Headers

x-api-version
string
default:2025-01-01
required

API version to be used. Format is in YYYY-MM-DD.

x-request-id
string

Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to Cashfree.

x-idempotency-key
string

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

cf_payment_id
string
required

The Cashfree payment or transaction ID.

Body

application/json

Request body to submit or resend OTP in Native OTP flow.

To use this API, Native OTP needs to be enabled for your account.

Response

200
application/json

OK

Submit or resend OTP API response.