Documentation

GetPlayFabIDsFromNintendoSwitchDeviceIds

Retrieves the unique PlayFab identifiers for the given set of Nintendo Switch identifiers.

Request Details

GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest
Request Properties
NintendoSwitchDeviceIds (required) List<String>

Array of unique Nintendo Switch Device identifiers for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Client/GetPlayFabIDsFromNintendoSwitchDeviceIds
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "NintendoSwitchDeviceIds": [
    "526f79204261747478",
    "526f79204261747479"
  ]
}
        

Response Details

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

GetPlayFabIDsFromNintendoSwitchDeviceIdsResult
Result Properties
Data List<NintendoSwitchPlayFabIdPair>

Mapping of Nintendo Switch Device identifiers to PlayFab identifiers.

Sample Response

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

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001