Change phone
Route | Capability | Description |
---|---|---|
Request phone reset POST /account/phoneEmail |
N/A | Get a token sent to your new phonenumber |
Request SMS code GET /account/phoneSms |
N/A | Request an sms-code using your password token and e-mail address. |
Activate phonenumber POST /account/phoneActivate |
N/A | Activate the new phonenumber for a user. |
Request phone reset
POST account/phoneEmailGet a token sent to your new phonenumber.
Request attributes
Field | Type | Information |
---|---|---|
phone | string | required, format 324xxxxxxxx or 316xxxxxxxx |
Sample Request
{ "phone number":"+32476351490" }
Request sms code
POST account/phoneSmsGet an sms code for changing your phone number. This will be sent on the new phone number.
Request attributes
Field | Type | Information |
---|---|---|
string |
required | email_token | string |
required |
Sample Request
{ "email":"Wannes@vsrs.be", "email_token":"4ba6bd1e0c5386e17443e38d1f7d326a" }
Activate phone reset
POST account/PhoneActivateActivate the phone reset.
Request attributes
Field | Type | Information |
---|---|---|
email_token | string |
required |
sms_token | string [8] |
required | required |
Sample Request
{ "phone number":"+32476351490", "email_token":"4ba6bd1e0c5386e17443e38d1f7d326a", "sms_token":"12345678" }