Get Platform Entitlements Prepared By Player Uuid
GET/inventory/v2/player/:player_uuid/entitlement/prepared
Get list of entitlements from the platform, as we will grant them to the user
Required Permissions:
-
For any player (including themselves) any of:
inv:*,inv:platform_entitlements:any -
For the player themselves :
inv:platform_entitlements:self
Request
Path Parameters
Query Parameters
Platform this entitlement was purchased was made on
Platform token that can be used to verify the identity of the user
Platform Environment to check for ownership
Possible values: [Unknown, NA, EU]
region this purchase was made in
Possible values: [UNKNOWN, WIN, MAC, XBOXONE, PS4, SWITCH, ANDROID, IOS, PS5, LINUX, XSX]
client type this purchase was made on
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
- EntitlementType
- MOD1
]
- MOD1
entitlements
object[]
platform_entitlement_id
object
Unique identifier for this instance of an entitlement on the platform
anyOf
string
Unique SKU from the platform
Default value: 1
Quantity available to be used from the platform
received_type
object
Type of entitlement the platform sent us. If they provide this metadata, then RallyHere Entitlement SKUs must be configured with matching types, or the entitlement will not process
anyOf
The method of granting a Platform Entitlement SKU
string
Possible values: [consumable, durable, durable_single_use]
platform_label
object
anyOf
string
Default value: [object Object]
Platform-specific metadata about this entitlement
error_code
object
anyOf
string
{
"entitlements": [
{
"platform_entitlement_id": "string",
"sku": "string",
"quantity": 1,
"received_type": "consumable",
"platform_label": "string",
"platform_metadata": {}
}
],
"error_code": "string"
}
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}