Documentation

AddGenericID

Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other players.

Request Details

AddGenericIDRequest
Request Properties
GenericId (required) GenericServiceId

Generic service identifier to add to the player account.

PlayFabId (required) String

PlayFabId of the user to link.

POST https://{{TitleID}}.playfabapi.com/Server/AddGenericID
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "GenericId": {
    "ServiceName": "BigBizSocial",
    "UserId": "1234567890"
  }
}
        

Response Details

EmptyResult
Result Properties

Sample Response

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


Authentication

SecretKey

Possible Error Codes

Name Code
IdentifierAlreadyClaimed 1238
UserisNotValid 1030