Gets promo code rewards by its code.
Can be used to allow users to choose one of many items as a bonus.
The usual case is choosing a DRM if the promo code contains a game as a bonus (type=unit
).
project_id required | integer ID проекта. Вы можете найти этот параметр в Личном кабинете рядом с названием проекта. Example: 44056 |
promocode_code required | string [ 1 .. 128 ] characters Уникальный код, чувствительный к регистру. Содержит буквы и цифры. Example: SO6rew99j9 |
List of promo code rewards was successfully received.
Данные для аутентификации не переданы или ошибочны.
Заголовок Authorization не отправлен.
Введите действительный промокод.
Неверный запрос.
{- "bonus": [
- {
- "item": {
- "description": "Game description",
- "name": "Game name",
- "sku": "game_1",
- "type": "unit",
- "unit_items": [
- {
- "drm_name": "Steam",
- "drm_sku": "steam",
- "is_free": false,
- "name": "Game name",
- "sku": "game_key_01",
- "type": "game_key"
}, - {
- "drm_name": "Origin",
- "drm_sku": "origin",
- "name": "Game name",
- "sku": "game_key_02",
- "type": "game_key"
}
]
}, - "quantity": 1
}, - {
- "item": {
- "description": "Game description",
- "name": "Game name",
- "sku": "game_2",
- "type": "unit",
- "unit_items": [
- {
- "drm_name": "Steam",
- "drm_sku": "steam",
- "name": "Game name",
- "sku": "game_key_01",
- "type": "game_key"
}
]
}, - "quantity": 2
}
], - "discount": {
- "percent": "10.00"
}, - "discounted_items": [
- {
- "discount": {
- "percent": "10.00"
}, - "sku": "elven_sword"
}
], - "is_selectable": true
}