Appearance
Resend user number
Xash appSends the account's user number to its phone again by SMS. Use it when the first SMS was lost.
POST /api/v1/auth/resend-user-number/{phone}
No token and no body.
phone is the account's phone number exactly as Xash stores it: digits only, with the country code, for example 263770000001. Other forms such as 0770000001 are not recognised here.
bash
curl -X POST https://app.xash.co.zw/api/v1/auth/resend-user-number/263770000001json
{
"success": true,
"message": "User number resent successfully."
}This resends the user number only. It does not send a new code. To get a code, use POST /api/v1/auth/request-pin-otp.
Errors
| Status | When | Body |
|---|---|---|
404 | No account has this phone number. | {"success": false, "message": "User not found."} |
500 | The SMS could not be sent. | {"success": false, "message": "Failed to resend user number via SMS."} |