The store/purchase/username endpoint enables you to change your username.
store/purchase/username
POST
username: ID of the item you want to buy
{
"id": "454",
"username": "xxx"
}Insufficient permissions (not being logged in)
{
"data": [
"You are not authorized to access this resource."
],
"status": "notAuthorized",
}id or username is missing
{
"data": [
"xxxxxxxx is required"
],
"status": "requestError",
}{
'data': [{
'count': 1,
'name': 'username',
'pp': 0
}],
'meta': {},
'status': 'ok',
'time': 'xx.xxxxxxxxxxx'
}