Determines if the code is a promo code or coupon code and if the user can apply it.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
code required | string [ 1 .. 128 ] characters Unique case-sensitive code. Contains letters and numbers. Example: WINTER2021 |
Information about the code.
Authentication not passed or wrong.
Authorization header not sent.
Code not found. Make sure the code
value is correct.
Invalid code promotion.
{- "type": "coupon",
- "code": "WINTER2023",
- "rewards": {
- "bonus": [
- {
- "item": {
- "sku": "game_1",
- "name": "Game name",
- "type": "unit",
- "description": "Game description",
- "unit_items": [
- {
- "sku": "game_key_01",
- "name": "Game name",
- "type": "game_key",
- "is_free": false,
- "drm_name": "Steam",
- "drm_sku": "steam"
}, - {
- "sku": "game_key_02",
- "name": "Game name",
- "type": "game_key",
- "drm_name": "Origin",
- "drm_sku": "origin"
}
]
}, - "quantity": 1
}, - {
- "item": {
- "sku": "game_2",
- "name": "Game name",
- "type": "unit",
- "description": "Game description",
- "unit_items": [
- {
- "sku": "game_key_01",
- "type": "game_key",
- "name": "Game name",
- "drm_name": "Steam",
- "drm_sku": "steam"
}
]
}, - "quantity": 2
}
], - "is_selectable": true
}
}