Creates a promo code promotion.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
Promo code was successfully created.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid request.
{- "external_id": "coupon_external_id",
- "date_start": "2020-04-15T18:16:00+05:00",
- "date_end": "2020-04-15T18:16:00+05:00",
- "name": {
- "en-US": "Coupon title",
- "de-DE": "Gutscheintitel"
}, - "bonus": [
- {
- "sku": "elven_shield",
- "quantity": 1
}
], - "redeem_total_limit": 10,
- "redeem_user_limit": 10,
- "redeem_code_limit": 10,
- "discount": {
- "percent": "10.10"
}, - "discounted_items": [
- {
- "sku": "elven_shield",
- "discount": {
- "percent": "10.00"
}
}
]
}
{- "external_id": "coupon_external_id"
}