Gets the promotion by a promo code or coupon code.
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 |
Promotion was successfully received.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Redeemable code not found. Make sure the provided code value is correct.
Incorrect redeemable code format. The code can contain only letters and numerals.
{- "date_start": "2023-05-01T01:00:00+05:00",
- "date_end": "2023-05-31T23:59:59+05:00",
- "bonus": [ ],
- "is_enabled": true,
- "external_id": "falls2023",
- "name": {
- "ru": "Скидка по промокоду на Epic Fall Hammer",
- "en": "Promo Code discount for Epic Fall Hammer"
}, - "redeem_total_limit": 2,
- "redeem_user_limit": 3,
- "redeem_code_limit": null,
- "total_limit_state": {
- "available": 1,
- "reserved": 1,
- "used": 0
}, - "discount": {
- "percent": null
}, - "discounted_items": [
- {
- "sku": "Epic Fall Hammer",
- "discount": {
- "percent": "20.00"
}
}
]
}