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 del proyecto. Encontrará este parámetro en su Cuenta del editor junto al nombre del proyecto. Example: 44056 |
promocode_code required | string [ 1 .. 128 ] characters Código único que distingue entre mayúsculas y minúsculas. Contiene letras y números. Example: SO6rew99j9 |
List of promo code rewards was successfully received.
Autenticación no superada o errónea.
No se envió el encabezado de autorización.
Introduzca un código promocional válido.
Invalid request.
{- "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
}