Create Entitlement Skus
POST/v1/sandbox/:sandbox_id/entitlement-sku
Create Entitlement Skus. Requires permission sandbox:config:edit.
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Array [
]
data
object[]
required
Possible values: >= 1
The Entitlement Skus to create.
custom_data
object
Custom data associated with the resource
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
An enumeration.
loot_entitlement
object
Represents the mapping of an External SKU to a Loot that will be granted to the player when the player has a matching sku
Possible values: [consumable, durable, durable_single_use]
Determine how the entitlement is handled on the Platform's side.
The Loot ID granted when this SKU is received.
The Loot ID granted when this SKU is refunded by the platform. Currently only supported on PSN
The Loot ID granted when this SKU is charged back by the platform. Currently only supported on PSN
The Loot ID granted when this SKU has a charged back reversed by the platform. Currently only supported on PSN
external_key_entitlement
object
Represents the mapping of an External SKU to a External Key that will be granted to the player when the player has a matching sku.
The External Key Campaign ID.
Possible values: > 0
The quantity of keys to grant to the player.
Possible values: non-empty and <= 256 characters
The External SKU.
Whether this SKU is a receipt SKU.
Responses
- 201
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
custom_data
object
Custom data associated with the resource
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
Possible values: [Anon, Basic, XboxLive, PSN, NintendoNAID, NintendoSwitch, NintendoPPID, Google, GooglePlay, Apple, Epic, Steam, Amazon, Twitch, RallyHere, LegacyName]
An enumeration.
loot_entitlement
object
Represents the mapping of an External SKU to a Loot that will be granted to the player when the player has a matching sku
Possible values: [consumable, durable, durable_single_use]
Determine how the entitlement is handled on the Platform's side.
The Loot ID granted when this SKU is received.
The Loot ID granted when this SKU is refunded by the platform. Currently only supported on PSN
The Loot ID granted when this SKU is charged back by the platform. Currently only supported on PSN
The Loot ID granted when this SKU has a charged back reversed by the platform. Currently only supported on PSN
The Loot Name. Only included when Loot is expanded.
The Legacy Loot ID granted when this SKU is received
The Refund Loot Name. Only included when Loot is expanded
The Legacy Loot ID granted when this SKU is refunded by the platform. Currently only supported on PSN
The Chargeback Loot Name. Only included when Loot is expanded
The Legacy Loot ID granted when this SKU is charged back by the platform. Currently only supported on PSN
The Chargeback Reversal Loot Name. Only included when Loot is expanded
The Legacy Loot ID granted when this SKU has a charged back reversed by the platform. Currently only supported on PSN
external_key_entitlement
object
Represents the mapping of an External SKU to a External Key that will be granted to the player when the player has a matching sku.
The External Key Campaign ID.
Possible values: > 0
The quantity of keys to grant to the player.
The External Key Campaign Name. Only included when External Key Campaign is expanded.
Possible values: non-empty and <= 256 characters
The External SKU.
Whether this SKU is a receipt SKU.
ID of the Sandbox
The Entitlement Sku ID.
[
{
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"custom_data": {},
"name": "string",
"description": "string",
"platform": "Anon",
"loot_entitlement": {
"type": "consumable",
"loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"refund_loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"chargeback_loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"chargeback_reversal_loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"loot_name": "string",
"legacy_loot_id": 0,
"refund_loot_name": "string",
"refund_legacy_loot_id": 0,
"chargeback_loot_name": "string",
"chargeback_legacy_loot_id": 0,
"chargeback_reversal_loot_name": "string",
"chargeback_reversal_legacy_loot_id": 0
},
"external_key_entitlement": {
"external_key_campaign_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": 0,
"external_key_campaign_name": "string"
},
"sku": "string",
"is_receipt": false,
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"entitlement_sku_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
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"
}
]
}