Xsolla-logo

Create code for linking accountsClient-side

post/users/account/code

Creates the code for linking the platform account to the existing main account when the user logs in to the game via a gaming console.

The call is used with Link accounts by code request.

SecurityBearer
Responses
200

OK

400

Bad Request

404

Not Found

422

Unprocessable Entity

429

Too Many Requests

Request samples
curl --request POST \
  --url https://login.xsolla.com/api/users/account/code \
  --header 'Authorization: Bearer BEARER_TOKEN'
Response samples
application/json
{
  • "code": "123456"
}