Documentation

GetPlayFabIDsFromPSNAccountIDs

Retrieves the unique PlayFab identifiers for the given set of PlayStation Network identifiers.

Request Details

GetPlayFabIDsFromPSNAccountIDsRequest
Request Properties
IssuerId int32

Id of the PSN issuer environment. If null, defaults to 256 (production)

PSNAccountIDs (required) List<String>

Array of unique PlayStation Network identifiers for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Server/GetPlayFabIDsFromPSNAccountIDs
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PSNAccountIDs": [
    "857498576495",
    "759374651209"
  ]
}
        

Response Details

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

GetPlayFabIDsFromPSNAccountIDsResult
Result Properties
Data List<PSNAccountPlayFabIdPair>

Mapping of PlayStation Network identifiers to PlayFab identifiers.

Sample Response

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

Authentication

SecretKey

Possible Error Codes

Name Code
AccountNotFound 1001