Xsolla-logo

Create code for linking accounts

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.

Request
Security:
Responses
200

OK

400

Bad Request

404

Not Found

422

Unprocessable Entity

429

Too Many Requests

Request samples
curl -i -X POST \
  https://login.xsolla.com/api/users/account/code \
  -H 'Authorization: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "code": "123456"
}