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 '{
  "otp": "111000",
  "action": "SUBMIT_OTP"
}'
{
  "cf_payment_id": "975654863",
  "authenticate_status": "FAILED",
  "action": "SUBMIT_OTP",
  "payment_message": "otp is invalid"
}

Headers

x-api-version
string
default:2023-08-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/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