Creates a virtual currency package.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
required | Array of objects | ||||||||||
Array
| |||||||||||
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. | ||||||||||
required | object Object with localizations for item's description. Two-letter lowercase language code. | ||||||||||
required | Array of objects = 1 characters Virtual currency package should contain only 1 position of virtual currency. | ||||||||||
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. | |||||||||||
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 | |||||||||||
is_enabled | boolean | ||||||||||
is_deleted | boolean | ||||||||||
is_show_in_store | boolean | ||||||||||
is_free | boolean Default: false If | ||||||||||
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.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid request.
{- "sku": "novigrad_crown_500",
- "name": {
- "en-US": "500x Novigradian crown",
- "ru-RU": "500x Новиградских крон"
}, - "is_enabled": true,
- "is_free": false,
- "groups": [
- "witcher"
], - "order": 1,
- "long_description": {
- "en-US": "Long Test new",
- "ru-RU": "Длинное описание"
}, - "description": {
- "en-US": "The Crown (also known as the Novigradian crown) is a monetary unit which is used in some Northern Kingdoms",
- "ru-RU": "Крона (Также известна как Новиградская крона) - платежная единица, используемая в северных королевствах"
}, - "media_list": [
], - "attributes": [
- {
- "external_id": "event",
- "name": {
- "en-US": "Event"
}, - "values": [
- {
- "external_id": "10-anniversary",
- "value": {
- "en-US": "10th anniversary"
}
}, - {
- "external_id": "christmas",
- "value": {
- "en-US": "Christmas"
}
}
]
}
], - "prices": [
- {
- "currency": "USD",
- "amount": 99.99,
- "is_default": true
}, - {
- "currency": "EUR",
- "amount": 80.03,
- "is_enabled": false
}
], - "vc_prices": null,
- "content": [
- {
- "sku": "novigrad_crown",
- "quantity": 500
}
], - "limits": {
- "per_user": null,
- "per_item": null
}, - "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"
}