Creates the bonus promotion.
Promotion adds free bonus items to the purchase made by a user. The promotion can be applied to every purchase within a project or to a purchase that includes particular items.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
required | Array of objects or null Set of items required to be included in the purchase for applying a promotion. If this parameters is | ||||||||||||||||||
required | Array of objects or null | ||||||||||||||||||
required | object Name of promotion. Should contain key/value pairs where key is a locale with "^[a-z]{2}-[A-Z]{2}$" format, value is string. | ||||||||||||||||||
id | integer Promotion ID. Unique promotion identifier within the project. | ||||||||||||||||||
date_start | string or null <date-time> Default: "2020-04-15T18:16:00+05:00" Date when your promotion will be started. | ||||||||||||||||||
date_end | string or null <date-time> Default: "2020-04-15T18:16:00+05:00" Date when your promotion will be finished. Can be | ||||||||||||||||||
Array of type = string (objects) or Array of type = date (objects) or Array of type = number (objects) | |||||||||||||||||||
One of: [ 1 .. 100 ] items Array ([ 1 .. 100 ] items) | |||||||||||||||||||
object Promotion limits. | |||||||||||||||||||
Array of objects or null Array of objects with conditions that set the price range for applying the promotion. | |||||||||||||||||||
Array
| |||||||||||||||||||
excluded_promotions | Array of integers List of promotion IDs to exclude when applying this promotion. |
Promotion was successfully created.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Invalid request.
{- "date_start": "2020-04-15T18:16:00+05:00",
- "date_end": "2020-04-25T18:16:00+05:00",
- "name": {
- "en-US": "New Year Bonus",
- "de-DE": "Neujahrsbonus"
}, - "condition": [
- {
- "sku": "elven_boots"
}, - {
- "sku": "elven_knife"
}
], - "bonus": [
- {
- "sku": "elven_sword",
- "quantity": 1
}, - {
- "sku": "elven_shield",
- "quantity": 2
}, - {
- "sku": "elven_gloves",
- "quantity": 2
}
]
}
{- "promotion_id": 2384756
}