Documentation

GetPlayFabIDsFromGameCenterIDs

Retrieves the unique PlayFab identifiers for the given set of Game Center identifiers (referenced in the Game Center Programming Guide as the Player Identifier).

Request Details

GetPlayFabIDsFromGameCenterIDsRequest
Request Properties
GameCenterIDs (required) List<String>

Array of unique Game Center identifiers (the Player Identifier) for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Client/GetPlayFabIDsFromGameCenterIDs
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "GameCenterIDs": [
    "857498576495",
    "759374651209"
  ]
}
        

Response Details

For Game Center identifiers which have not been linked to PlayFab accounts, null will be returned.

GetPlayFabIDsFromGameCenterIDsResult
Result Properties
Data List<GameCenterPlayFabIdPair>

Mapping of Game Center identifiers to PlayFab identifiers.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": [
      {
        "GameCenterId": "857498576495",
        "PlayFabId": "5a446c83645201"
      },
      {
        "GameCenterId": "759374651209",
        "PlayFabId": "6345cd25a6c7cc"
      }
    ]
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001