Updates the promotion.
Promotions provide a discount (%) on items. The discount will be applied to all prices of the specified 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 |
| promotion_id required | integer Promotion ID. Unique promotion identifier within the project. Example: 111425 |
Object with promotion data.
required | Array of objects | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
required | object Name of promotion. Should contain key/value pairs, where key is locale with format "^[a-z]{2}-[A-Z]{2}$", value is string. | ||||||||||||||||||||||||
Array of objects Promotion validity periods. If multiple periods are specified, both | |||||||||||||||||||||||||
Array of type = string (object) or type = number (object) or type = date (object) [ 1 .. 100 ] items Conditions for validating user attributes. Determine promotion availability based on whether user attributes match all specified conditions. | |||||||||||||||||||||||||
Array ([ 1 .. 100 ] items) One of: | |||||||||||||||||||||||||
Array of objects or null Array of objects with conditions that set the price range for applying the promotion. | |||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
object Promotion limits. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| excluded_promotions | Array of integers List of promotion IDs to exclude when applying this promotion. | ||||||||||||||||||||||||
| is_enabled | boolean Whether promotion is enabled or not. | ||||||||||||||||||||||||
Promotion was successfully updated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Promotion not found. Make sure promotion_id is correct.
Invalid request.
{- "promotion_periods": [
- {
- "date_from": "2020-04-15T18:16:00+05:00",
- "date_until": "2020-04-25T18:16:00+05:00"
}, - {
- "date_from": "2020-05-16T18:16:00+05:00",
- "date_until": "2020-05-25T18:16:00+05:00"
}
], - "discount": {
- "percent": "10.00"
}, - "items": [
- {
- "sku": "com.xsolla.elven_sword_1"
}, - {
- "sku": "com.xsolla.elven_helmet_1"
}, - {
- "sku": "com.xsolla.elven_armor_1"
}
], - "name": {
- "en-US": "Promotion",
- "ru-RU": "Акция"
}, - "is_enabled": true
}{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}