Page Summary
-
This endpoint verifies an OTP value sent by the integrator for an account using a POST request to
https://payment-integrator-e-wallets-api.google.com/integrator-base-path/korea-e-wallets-v1/verifyOtp. -
The request body must include the
requestHeader,sendOtpRequestIdfrom the precedingsendOtpcall, and the user-providedotp. -
The response body contains a
responseHeader, an optional integrator-generatedpaymentIntegratorVerifyOtpId, and aresultindicating the outcome of the verification (e.g., SUCCESS, OTP_NOT_MATCHED). -
Possible response messages include a
VerifyOtpResponseobject for HTTP 200 status or anErrorResponseobject for HTTP 4XX/5XX status codes.
Verifies an OTP value was sent by the integrator for the account.
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,
"minor": 0,
"revision": 0
},
"requestId": "0123434-otp-abc",
"requestTimestamp": "1502545413098"
},
"sendOtpRequestId": "0123434-otp-abc",
"otp": "7754321"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1502545413132"
},
"paymentIntegratorVerifyOtpId": "5539163",
"result": "SUCCESS"
}
HTTP request
POST https://payment-integrator-e-wallets-api.google.com/integrator-base-path/korea-e-wallets-v1/verifyOtp
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requestHeader": {
object ( |
| Fields | |
|---|---|
requestHeader |
REQUIRED: Common header for all requests. |
sendOtpRequestId |
REQUIRED: |
otp |
REQUIRED: This is the OTP the user provided, which this call is verifying |
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 |
|
VerifyOtpResponse
Response object for the verifyOtp method.
| JSON representation |
|---|
{ "responseHeader": { object ( |
| Fields | |
|---|---|
responseHeader |
REQUIRED: Common header for all responses. |
paymentIntegratorVerifyOtpId |
OPTIONAL: Identifier the integrator knows this verify OTP request as. This is integrator generated. |
result |
REQUIRED: Result of this request |
VerifyOtpResultCode
Result codes for verify OTP request
| Enums | |
|---|---|
UNKNOWN_RESULT |
Do not ever set this default value! |
SUCCESS |
OTP matched what the integrator sent |
OTP_NOT_MATCHED |
OTP did not match what the integrator sent. |
OTP_ALREADY_USED |
OTP was already used. |