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 de projet. Ce paramètre se trouve dans le Compte éditeur à côté du nom du projet. Example: 44056 |
promocode_code required | string [ 1 .. 128 ] characters Code unique sensible à la casse. Comprend des lettres et des chiffres. Example: SO6rew99j9 |
List of promo code rewards was successfully received.
L'authentification n'a pas été passée ou est incorrecte.
L'en-tête d'autorisation n'a pas été passé.
Entrez un code promo valide.
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
}