Creates a virtual currency.
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 required | string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$ Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores. | ||||||||||
required | 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 | ||||||||||
Array of objects Item's additional assets such as screenshots, gameplay video and so on. | |||||||||||
Array of objects Default: [] Groups the item belongs to. | |||||||||||
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 | ||||||||||
is_hard | boolean | ||||||||||
order | integer Defines arrangement order. | ||||||||||
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": "coin",
- "name": {
- "en-US": "Gold coin",
- "de-DE": "Goldmünze"
}, - "is_enabled": true,
- "is_free": false,
- "groups": [
- "gold"
], - "order": 1,
- "description": {
- "en-US": "The main currency of your kingdom",
- "de-DE": "Die Hauptwährung deines Königreichs"
}, - "prices": [
- {
- "amount": 100,
- "currency": "USD",
- "is_enabled": true,
- "is_default": true
}
], - "attributes": [
- {
- "external_id": "material",
- "name": {
- "en-US": "Material"
}, - "values": [
- {
- "external_id": "gold",
- "value": {
- "en-US": "Gold"
}
}
]
}
], - "limits": {
- "per_user": 5,
- "per_item": 10000
}, - "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"
}