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
SEP-24 token for authorization (Format: 'Bearer {token}')
- application/json
Body
required
Verification data including phone_number/email, OTP, verification value, and reCAPTCHA token
Email associated with the receiver in the SDP database. Either phone_number
or email
is required.
Phone number associated with the receiver in the SDP database. Either phone_number
or email
is required.
One-Time Password received for verification
Verification value provided by the user
Possible values: [DATE_OF_BIRTH
, YEAR_MONTH
, PIN
, NATIONAL_ID_NUMBER
]
Token received from Google reCAPTCHA
Responses
- 200
- 400
- 401
Verification successful
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "ok"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Details about the error
extras
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
extras
object
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}