Resend OTP
This will be used to resend OTP request for a transaction. There will be max OTP send limit set for each provider configured.
Request
Type | Params | Values | Description |
---|---|---|---|
HEADER | api_key | string | |
EMBEDDED | id | string | Unique id generated for the transaction while generate OTP API call. |
EMBEDDED | challenge_id | string | Challenge id generated against the transaction. |
Example
curl -X POST https://api.juspay.in/v2/txns/txn_36dc6eada1d0463da91dc56c8262a8c3/authenticate/ch_xyz/resend -u your_api_key:
Response
{
"order_id" : ":order_id",
"txn_id" : ":txn_id",
"status" : "PENDING_VBV",
"payment" : {
"authentication": {
"method": "POST",
"url": "https://api.juspay.in/v2/txns/:id/authenticate",
"params": {
"id" : "8646a7a029974fa99995fec00340a507",
"challenge_id" : "ch_xyz",
"auth_method" : "OTP",
"card_isin" : "424242",
"card_issuer_bank_name" : "AXIS BANK LTD",
"times_otp_sent" : 2,
"max_otp_send_limit" : 4,
"current_attempt" : 1,
"max_attempts" : 4,
}
}
}
}
{
"status": "Invalid Request",
"error_code": "max_limit_exceeded",
"error_message": "Max OTP send limit exceeded."
}
Response Params | Values | Description |
---|---|---|
order_id | string | OrderID for which the payment is being started. |
txn_id | string | Transaction ID for the payment attempt. |
status | string | Status of the transaction. PENDING_VBV indicates that the transaction requires authentication to complete. Please do not validate this at your end. |
payment | string | Contains the payment authentication details. |
authentication | string | Contains the authentication details. |
method | string | HTTP Method for authentication. Can be one of GET or POST |
url | string | URL to which the user has to be taken to for completing the authentication |
params | object | Present only when method is POST. Parameter map that has to be sent along with the URL for authentication. |
id | string | Unique id generated for the transaction. |
challenge_id | string | Authentication id generated against the transaction for a given order. |
auth_method | string | Authentication method used. In this case it’s ‘OTP’ |
card_isin | string | Card first 6 digit. |
card_issuer_bank_name | string | Issuer name of the card used for transaction. |
times_otp_sent | string | Number of times otp sent. |
max_otp_send_limit | string | Maximum limit for sending otp. |
current_attempt | string | Current attempt for OTP validation. |
max_attempts | string | Maximum number of time OTP validation can be done for a given transaction. |
Updated over 2 years ago