Process Platform Entitlements By Player Uuid
POST/inventory/v2/player/:player_uuid/entitlement
Process platform entitlements, consuming from the platform inventory where possible and generating orders.
Note that some orders may not be fulfilled at the completion of this request and need to be polled separately for results
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
- application/json
Body
required
- MOD1
Array [
]
unique id for this transaction on the platform
Platform token that can be used to verify the identity of the user
Platform this entitlement was purchased was made on
platform_environment
object
Specific platform environment to target with entitlement processing. Not supported by all platforms
anyOf
string
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
entitlements
object[]
Platform entitlements to process
platform identifier for this purchase type
unique identifier for this purchased item (instance owned by this user)
Default value: 1
number purchased
Possible values: [UNKNOWN, SUBMITTED, FULFILLED, FAILED, PREVIOUSLY_APPLIED, SKIPPED]
Default value: UNKNOWN
status of this entitlement
Default value: none
Error code for this entitlement
Order ID for this entitlement
Default value: true
Should the system process durables during this request?
Default value: true
Should the system process consumables during this request?
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Array [
]
Array [
]
unique id to allow tracking the request
Possible values: [UNKNOWN, WIN, MAC, XBOXONE, PS4, SWITCH, ANDROID, IOS, PS5, LINUX, XSX]
client type this purchase was made on
unique id for this transaction on the platform
Possible values: [Unknown, NA, EU]
region this purchase was made in
Default value: SUBMITTED
status of this result
error_code
object
Error code for failures not associated with a specific entitlement
anyOf
string
client_entitlements
object[]
Client entitlements that have been processed
platform identifier for this purchase type
unique identifier for this purchased item (instance owned by this user)
Default value: 1
number purchased
Possible values: [UNKNOWN, SUBMITTED, FULFILLED, FAILED, PREVIOUSLY_APPLIED, SKIPPED]
Default value: UNKNOWN
status of this entitlement
Default value: none
Error code for this entitlement
Order ID for this entitlement
server_entitlements
object[]
Server entitlements that have been processed
platform identifier for this purchase type
unique identifier for this purchased item (instance owned by this user)
Default value: 1
number purchased
Possible values: [UNKNOWN, SUBMITTED, FULFILLED, FAILED, PREVIOUSLY_APPLIED, SKIPPED]
Default value: UNKNOWN
status of this entitlement
Default value: none
Error code for this entitlement
Order ID for this entitlement
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
Platform these transactions were processed on
Unique identifier for the platform user that processed this entitlement
True if the server entitlements were skipped
{
"request_id": "string",
"client_type": "UNKNOWN",
"transaction_id": "string",
"platform_region": "Unknown",
"status": "SUBMITTED",
"error_code": "string",
"client_entitlements": [
{
"platform_sku": "string",
"platform_entitlement_id": "string",
"quantity": 1,
"status": "UNKNOWN",
"error_code": "none",
"order_id": "string"
}
],
"server_entitlements": [
{
"platform_sku": "string",
"platform_entitlement_id": "string",
"quantity": 1,
"status": "UNKNOWN",
"error_code": "none",
"order_id": "string"
}
],
"platform_id": "Anon",
"platform_user_id": "string",
"skipped_server_entitlements": false
}
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"
}
]
}