Récupère la liste des promotions d'un projet.
project_id required | integer ID de projet. Ce paramètre se trouve dans le Compte éditeur à côté du nom du projet. Example: 44056 |
La liste des promotions a été reçue avec succès.
L'authentification de base n'a pas été passée ou est incorrecte. Vérifiez que vous avez utilisé l'authentification de base ou des informations d'identification correctes.
{- "active_promotions_count": 3,
- "inactive_promotions_count": 2,
- "promotions": [
- {
- "bonus": [
- {
- "item": {
- "bundle_type": "virtual_currency_package",
- "content": [ ],
- "description": null,
- "image_url": null,
- "name": {
- "en-US": "Diamonds pack",
- "ru-RU": "Пак кристаллов"
}, - "sku": "diamonds_pack",
- "type": "bundle"
}, - "quantity": 1
}
], - "condition": [
- {
- "item": {
- "description": null,
- "image_url": null,
- "inventory_options": {
- "consumable": true,
- "expiration_period": null
}, - "name": {
- "en-US": "VG name",
- "ru-RU": "Название VG"
}, - "sku": "virtual_good_bonus_2",
- "type": "virtual_good"
}
}
], - "date_end": null,
- "date_start": "2020-01-01T00:00",
- "discount": null,
- "id": 1,
- "is_enabled": true,
- "name": "promotion_1",
- "type": "item_bonus"
}, - {
- "bonus": null,
- "condition": [
- {
- "item": {
- "description": null,
- "image_url": null,
- "inventory_options": {
- "consumable": true,
- "expiration_period": null
}, - "name": {
- "en-US": "VG name",
- "ru-RU": "Название VG"
}, - "sku": "virtual_good_bonus_2",
- "type": "virtual_good"
}
}
], - "date_end": "2030-01-01T00:00",
- "date_start": "2020-01-01T00:00",
- "discount": {
- "percent": "10.99"
}, - "id": 2,
- "is_enabled": false,
- "name": "promotion_2",
- "type": "item_discount"
}, - {
- "bonus": [
- {
- "item": {
- "description": null,
- "image_url": null,
- "inventory_options": {
- "consumable": true,
- "expiration_period": null
}, - "name": {
- "en-US": "VG name",
- "ru-RU": "Название VG"
}, - "sku": "virtual_good_bonus_2",
- "type": "virtual_good"
}, - "quantity": 2
}
], - "condition": [
- {
- "item": {
- "external_id": "coupon_2",
- "is_enabled": true,
- "name": {
- "en-US": "Coupon name",
- "ru-RU": "Название купона"
}, - "redeem_code_limit": 1,
- "redeem_total_limit": null,
- "redeem_user_limit": null
}
}
], - "date_end": "2030-01-01T00:00",
- "date_start": "2022-01-01T00:00",
- "discount": null,
- "id": 3,
- "is_enabled": true,
- "name": "promotion_3",
- "type": "coupon_bonus"
}, - {
- "bonus": [
- {
- "item": {
- "description": null,
- "image_url": null,
- "inventory_options": {
- "consumable": true,
- "expiration_period": null
}, - "name": {
- "en-US": "VG name",
- "ru-RU": "Название VG"
}, - "sku": "virtual_good_bonus_2",
- "type": "virtual_good"
}, - "quantity": 2
}
], - "condition": [
- {
- "item": {
- "external_id": "coupon_3",
- "is_enabled": true,
- "name": {
- "en-US": "Coupon name",
- "ru-RU": "Название купона"
}, - "redeem_code_limit": 1,
- "redeem_total_limit": null,
- "redeem_user_limit": null
}
}
], - "date_end": "2031-01-01T00:00",
- "date_start": "2018-01-01T00:00",
- "discount": {
- "percent": "12.99"
}, - "id": 4,
- "is_enabled": false,
- "name": "promotion_4",
- "type": "promocode_bonus_discount"
}, - {
- "bonus": [
- {
- "item": {
- "description": null,
- "image_url": null,
- "name": {
- "en-US": "VG name",
- "ru-RU": "Название VG"
}, - "sku": "virtual_good_bonus_4",
- "type": "virtual_good"
}, - "quantity": 1
}
], - "condition": null,
- "date_end": null,
- "date_start": "2020-01-01T00:00",
- "discount": null,
- "id": 5,
- "is_enabled": true,
- "name": "promotion_5",
- "type": "cart_bonus"
}
], - "total_promotions_count": 5
}