Get Entitlement Events
GET/inventory/v1/entitlement-event
Get entitlement events for a player. If no player is provided, all events will be returned.
Required Permissions:
- For any player (including themselves) any of:
inv:*,inv:entitlement_event:read
Request
Query Parameters
Player to get entitlement events for
Player to get entitlement events for. Will be ignored if player_uuid is provided
Cursor for pagination
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- EntitlementType
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
- MOD1
events
object[]
required
The list of events
The unique identifier for the event
Possible values: [grant, refund, chargeback, chargeback_reversal]
The type of the event
entitlement_type
object
The type of entitlement when the event occurred
anyOf
The method of granting a Platform Entitlement SKU
string
Possible values: [consumable, durable, durable_single_use]
Possible values: [success, sku_not_found, not_implemented, player_not_found, ban_failed]
The status of the event
player_uuid
object
required
The player UUID for the event
anyOf
string
player_id
object
deprecated
The player ID for the event
anyOf
integer
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
The platform for the event
Possible values: <= 2048 characters
The platform user ID for the event
Possible values: <= 2048 characters
The SKU for the event
The quantity for the event
platform_transaction_id
object
The external transaction ID for the event
anyOf
string
Possible values: <= 4096 characters
platform_data
object
The platform specific data for the event
anyOf
object
order_id
object
The order ID for the event
anyOf
string
loot_id
object
The loot ID for the event
anyOf
integer
key_claim_uuid
object
The portal user key claim id
anyOf
string
The timestamp for the event
The timestamp for the event
cursor
object
The cursor for the next page of events
anyOf
string
{
"events": [
{
"event_id": "string",
"action_type": "grant",
"entitlement_type": "consumable",
"status": "success",
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"platform": "Anon",
"platform_user_id": "string",
"sku": "string",
"quantity": 0,
"platform_transaction_id": "string",
"platform_data": {},
"order_id": "string",
"loot_id": 0,
"key_claim_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created": "2023-01-23T21:07:02.000000+00:00",
"last_modified": "2023-01-23T21:07:02.000000+00:00"
}
],
"cursor": "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"
}
]
}