Updates a virtual currency package.
required | Array of objects |
sku required | string 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. | |
Array of objects | |
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 of objects or null | |
Array of objects | |
is_enabled | boolean |
is_deleted | boolean |
is_show_in_store | boolean |
is_free | boolean If |
order | integer Defines arrangement order. |
object | |
Array of objects |
Virtual item was successfully updated.
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,
- "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": [
], - "groups": [
- "witcher"
], - "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
}
]
}
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}