Redeems a coupon code. The user gets a bonus after a coupon is redeemed.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
Coupon was successfully redeemed.
Authentication not passed or wrong.
Authorization header not sent.
Enter valid coupon code.
Invalid request.
{- "coupon_code": "WINTER2021",
- "selected_unit_items": {
- "game_1": "game_1_steam",
- "game_2": "game_2_playstation"
}
}
{- "items": [
- {
- "attributes": [ ],
- "description": "Take it, take it all! All of Xsolla's riches in one Mega Booster.",
- "groups": [
- {
- "external_id": "powerups",
- "name": "Power Ups"
}
], - "inventory_options": {
- "consumable": {
- "usages_count": 1
}, - "expiration_period": null
}, - "is_free": true,
- "name": "Xsolla Booster Mega",
- "price": null,
- "quantity": 1,
- "sku": "booster_mega_1",
- "type": "virtual_good",
- "virtual_item_type": "consumable",
- "virtual_prices": [ ]
}
]
}