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. | ||||
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 or null Condition for applying the promotion to items priced within the specified price range. In the | |||||
| |||||
object Promotion limits. | |||||
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.
{- "date_start": "2020-04-15T18:16:00+05:00",
- "date_end": "2020-04-25T18:16:00+05:00",
- "discount": {
- "percent": "10.00"
}, - "items": [
- {
- "sku": "elven_sword"
}, - {
- "sku": "elven_helmet"
}, - {
- "sku": "elven_armor"
}
], - "name": {
- "en-US": "Promotion",
- "ru-RU": "Акция"
}
}
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}