User Attributes
Entitlement
Catalog
Promotions
Coupons
Loot Boxes
post

/projects/{project_id}/virtual_items/items

Creates a virtual item.

Note

This API method can't be used under high load. When the number of requests is high, rate limits may apply. Contact your Account Manager to find out the rate limits for this API method.
Deprecated

Avoid using this API operation if possible. It will be removed in a future version.

Authorization

basic

Request Parameters

1 Path Parameter

Request Body

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
sku
string

Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, dashes, and underscores.

required
name
object

Localized item names.

required
description
object

Localized descriptions of the item.

required
long_description
object

Localized extended descriptions of the item.

prices
object

Item prices. Key = currency name (3 letters per ISO 4217); value = amount in that currency.’

required
default_currency
string

Default purchase currency. Three-letter code per ISO 4217.

required
enabled
boolean

Enables the item.

item_code
string

Additional item code.

permanent
boolean

If true, the item can only be purchased once.

image_url
string

Image URL.

item_type
string

Type of Item.

1 validation
expiration
integer

Lifetime in seconds. For Expiration-type items only.

groups
array[integer]

Groups the item belongs to.

user_attribute_conditions
array[object]

List of conditions on the user attribute.

advertisement_type
string

Type of a special banner to show for the item in the payment UI.

1 validation
virtual_currency_price
integer

Price in the in-game currency. If null, the item can only be purchased for real currency.

purchase_limit
integer

Number of times the item can be purchased. If null, there is no limit on the number of purchases.

keywords
array[string]

Keywords that can be used to find the item in the payment UI.

Responses

Created

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
item_id
integer

Virtual item ID.

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
1 path param not set
project_id
$$.env
2 variables not set
username
password