AI-generated Key Takeaways
-
The
resendOtpendpoint enables issuers to send an additional OTP to the cardholder upon request, using the same information from the initialauthenticaterequest. -
The request body includes the
requestHeaderandauthenticateRequestId, which is the unique identifier from the originalauthenticaterequest. -
Successful responses return a
ResendOtpResponseobject with asuccessresult code, while errors are indicated by anErrorResponseobject. -
Potential error scenarios include request expiration (
requestExpired) or reaching the OTP request limit (otpRequestLimitReached). -
The endpoint uses a
POSTrequest tohttps://www.integratorhost.example.com/integrator-base-path/v1/payment-integrator-authenticated-card-fop-api/resendOtp.
Requests that the issuer send the cardholder an additional OTP if the user requests one. It is sent using the same information provided in the authenticate request.
If the endpoint encounters an error while processing the request, the response body from this endpoint should be of type .ErrorResponse
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1
},
"requestId": "cmVxdWVzdDE",
"requestTimestamp": {
"epochMillis": "1481899949606"
},
"paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR"
},
"authenticateRequestId": "G112YZH4XPDV88J"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": {
"epochMillis": "1481899949611"
}
},
"result": {
"success": {}
}
}
HTTP request
POST https://www.integratorhost.example.com/integrator-base-path/v1/payment-integrator-authenticated-card-fop-api/resendOtp
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requestHeader": {
object ( |
| Fields | |
|---|---|
requestHeader |
REQUIRED: Common header for all requests. |
authenticateRequestId |
REQUIRED: A unique identifier representing the request to send an OTP. This is the |
Response body
This method supports multiple return types. For additional information about what 4XX or 5XX HTTP status code to return with an ErrorResponse, consult the ErrorResponse object and HTTP status codes documentation.
| Possible response messages | |
|---|---|
| HTTP 200 Status |
|
| HTTP 4XX / 5XX Status |
|
ResendOtpResponse
Response object for the payment integrator hosted resendOtp method.
| JSON representation |
|---|
{ "responseHeader": { object ( |
| Fields | |
|---|---|
responseHeader |
REQUIRED: Common header for all responses. |
result |
REQUIRED: The result of the |
ResendOtpResultCode
Result codes for resendOtp.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field resend_otp_result_code. REQUIRED: The result of the resendOtp request. resend_otp_result_code can be only one of the following: |
|
success |
The request to send an OTP to the user was successful. |
requestExpired |
The request to authenticate the user has expired. A new |
otpRequestLimitReached |
The number of requests to send an OTP has reached its limit and no more OTPs can be requested for this |