Verify Receiver Registration
POST/wallet-registration/verification
This endpoint verifies the receiver's registration by validating the OTP and other verification values provided in the request body. A valid SEP-24 token should be included in the Authorization header of the request.
Request
Header Parameters
Authorization stringrequired
SEP-24 token for authorization (Format: 'Bearer {token}')
- application/json
Body
required
Verification data including phone number, OTP, verification value, and reCAPTCHA token
phone_number string
Phone number used in registration
otp string
One-Time Password received for verification
verification string
Verification value provided by the user
verification_type string
Possible values: [DATE_OF_BIRTH
, PIN
, NATIONAL_ID_NUMBER
, YEAR_MONTH
]
Type of verification value
recaptcha_token string
Token received from Google reCAPTCHA
Responses
- 200
- 400
- 401
Verification successful
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "ok"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
Details about the error
extras
object
object
{
"error": "Invalid input",
"extras": {
"field_foo": "field_foo is required",
"field_bar": "field_bar needs to be an integer"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
extras
object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Loading...