Documentation

EvaluateRandomResultTable

Returns the result of an evaluation of a Random Result Table - the ItemId from the game Catalog which would have been added to the player inventory, if the Random Result Table were added via a Bundle or a call to UnlockContainer.

Request Details

EvaluateRandomResultTableRequest
Request Properties
CatalogVersion String

Specifies the catalog version that should be used to evaluate the Random Result Table. If unspecified, uses default/primary catalog.

TableId (required) String

The unique identifier of the Random Result Table to use.

POST https://{{TitleID}}.playfabapi.com/Server/EvaluateRandomResultTable
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "TableId": "RareElementCard",
  "CatalogVersion": "1"
}
        

Response Details

Note that if the Random Result Table contains no entries, or does not exist for the catalog specified (the Primary catalog if one is not specified), an InvalidDropTable error will be returned.

EvaluateRandomResultTableResult
Result Properties
ResultItemId String

Unique identifier for the item returned from the Random Result Table evaluation, for the given catalog.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "ResultItemId": "RareGreenAttackCard"
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
CatalogNotConfigured 1218
InvalidDropTable 1201