Skip to main content
POST
/
payments
/
authenticate-direct-otp
Authenticate direct OTP
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/payments/authenticate-direct-otp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "txn_id": "<string>",
  "challenge_id": "<string>",
  "otp": "<string>"
}
'
{
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Access token

Body

application/json
txn_id
string
required

You can get the txn_id from the response of create order API under the payment object inside the payment_info object. The key is 'id' under the params object inside the authentication object.

challenge_id
string
required

You can get the challenge_id from the response of create order API under the payment object inside the payment_info object. The key is 'challenge_id' under the params object inside the authentication object.

otp
string
required

Response

OK

message
string
success
boolean