Documentation

LinkXboxAccount

Links the Xbox Live account associated with the provided access code to the user's PlayFab account

Request Details

LinkXboxAccountRequest
Request Properties
ForceLink Boolean

If another user is already linked to the account, unlink the other user and re-link.

PlayFabId (required) String

Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Xbox Live identifier.

XboxToken (required) String

Token provided by the Xbox Live SDK/XDK method GetTokenAndSignatureAsync("POST", "https://playfabapi.com", "").

POST https://{{TitleID}}.playfabapi.com/Server/LinkXboxAccount
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "XboxToken": "XBL3.0 x=1981989841;akljdlkafdknad",
  "PlayFabId": "5a446c83645201"
}
        

Response Details

LinkXboxAccountResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
AccountAlreadyLinked 1011
InvalidPublisherId 1126
InvalidXboxLiveToken 1188
LinkedAccountAlreadyClaimed 1012