Skip to main content

Validate PIN/OTP (One-Time Password)

Description

Use this request to confirm that the PIN/OTP you received from your user matches the one sent by Rakuten CPaaS in your confirm request.

Production Endpoint URL: https://api.cpaas.symphony.rakuten.net/twofa/v1/pin/$request_id

Methods: POST

HTTP Headers

ParameterRequiredValue
AuthenticationYType: Bearer
Token: JWT Token
AcceptYapplication/json
Content-TypeYapplication/json; charset=UTF-8

Request Body Schema: application/json

ParameterRequiredDescription/Values
pinYSubmit the PIN entered by customer for validation

Sample Request

{
"pin": "12345678",
}

Response:

If successful, the API call will return an HTTP 200 OK with a Json document as a response. Please see section “Errors Codes" for a description of the failure responses.

ParameterDescription
successtrue
result_codeRefer Result Code List
result_messageDescription of the result code
client_referenceClient reference is returned only when specified in request.
request_idThe request_id provided in the request is returned for reference

Correct PIN/OTP Response

{
"success" : true,
"result_code" : 0,
"result_message" : "Request successfully submitted",
"client_reference": "...if provided during original request...",
"request_id" : "...the request_id provided in the request is returned for reference...",
}

Incorrect PIN/OTP Response

{
"result_code" : 211,
"result_message" : "The submitted PIN was not the expected PIN for this request",
}