Validate Username
POST/v1.2/customer/username/validate
This is used in registration to check the usernames and suggests unique usernames to the customers.
Request
Header Parameters
Throttle-Key string
- application/json
Body
required
username stringrequired
Possible values: non-empty
and <= 50 characters
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- FAILED
- SUCCESS
Schema
isUnique boolean
suggestions string[]
status stringrequired
Possible values: [SUCCESS
, FAILED
]
reason string
Possible values: non-empty
rejectCode number
Find error codes here
{
"isUnique": true,
"suggestions": [
"string"
],
"status": "SUCCESS",
"reason": "string",
"rejectCode": 0
}
{
"isUnique": false,
"suggestions": [
"test5",
"test7",
"test8",
"test9"
],
"status": "FAILED",
"reason": "username is not unique",
"rejectCode": 0
}
{
"isUnique": true,
"status": "SUCCESS",
"rejectCode": 0
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
timestamp string
status string
error string
message string
path string
rejectCode string
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.2/customer/register/validate-username",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.2/customer/register/validate-username",
"rejectCode": "1007"
}
Loading...
Is this page helpful for you?