Creates a virtual item.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
sku | string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$ Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores. | ||||||||||
object Object with localizations for item's name. Two-letter lowercase language code. | |||||||||||
object Object with localizations for item's description. Two-letter lowercase language code. | |||||||||||
object Object with localizations for long description of item. Two-letter lowercase language code. | |||||||||||
image_url | string Image URL. | ||||||||||
Array of objects Item's additional assets such as screenshots, gameplay video and so on. | |||||||||||
groups | Array of strings Groups the item belongs to. Note. The string value refers to group `external_id`. | ||||||||||
Array of objects <= 20 items List of attributes. Attention. You can't specify more than 20 attributes for the item. Any attempts to exceed the limit result in an error.
| |||||||||||
Array (<= 20 items) | |||||||||||
Array of objects | |||||||||||
Array
| |||||||||||
Array of objects | |||||||||||
is_enabled | boolean | ||||||||||
is_deleted | boolean | ||||||||||
is_show_in_store | boolean | ||||||||||
is_free | boolean Default: false If | ||||||||||
order | integer Defines arrangement order. | ||||||||||
object Defines the inventory item options. | |||||||||||
object | |||||||||||
Array of objects | |||||||||||
object Item limits. | |||||||||||
Array of objects or null Item sales period. | |||||||||||
custom_attributes | object <json> <= 500 characters A JSON object containing item attributes and values. Attributes allow you to add more info to items like the player's required level to use the item. Attributes enrich your game's internal logic and are accessible through dedicated GET methods and webhooks. |
Virtual item was successfully created.
Invalid request.
{- "sku": "sword",
- "name": {
- "en": "Sword",
- "de": "Schwert"
}, - "is_enabled": true,
- "is_free": false,
- "groups": [
- "weapons"
], - "order": 1,
- "description": {
- "en": "A sword is a bladed melee weapon intended for cutting or thrusting that is longer than a knife or dagger, consisting of a long blade attached to a hilt.",
- "de": "Ein Schwert ist eine Nahkampfwaffe mit Klinge, die zum Schneiden oder Stechen bestimmt ist, länger als ein Messer oder Dolch ist und aus einer langen Klinge besteht, die an einem Griff befestigt ist."
}, - "prices": [
- {
- "amount": 100,
- "currency": "USD",
- "is_enabled": true,
- "is_default": true
}, - {
- "amount": 200,
- "currency": "CZK",
- "country_iso": "CZ",
- "is_enabled": false,
- "is_default": true
}
], - "vc_prices": [ ],
- "is_show_in_store": true,
- "attributes": [
- {
- "external_id": "craft-materials",
- "name": {
- "en": "Craft materials"
}, - "values": [
- {
- "external_id": "steel",
- "value": {
- "en-US": "5"
}
}, - {
- "external_id": "leather",
- "value": {
- "en-US": "1"
}
}
]
}
], - "limits": {
- "per_user": 5,
- "per_item": 100
}, - "periods": [
- {
- "date_from": "2020-08-11T10:00:00+03:00",
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "custom_attributes": {
- "purchased": 0,
- "attr": "value"
}
}
{- "sku": "new-sku"
}