put

/merchant/projects/{project_id}/store/promotion/{promotion_id}

Updates the promotion.

Note that new data will replace old data. If you want to update only a part of the promotion, you should transfer all data needed in the request as well.

Promotions provide a discount (%) on items. The discount will be applied to all prices of the specified items.

Authorization

basic

Request Parameters

2 Path Parameters

Request Body

Object with new promotion data.

Schema
object
$schema: http://json-schema.org/draft-04/schema#
date_start
string

Date when you promotion will be started.

1 validation + required
date_end
string

Date when you promotion will be finished. Can be null.

1 validation
is_enabled
boolean
1 validation + required
name
object

Name of promotion. Should contain key/value pairs, where key is locale with format “^[a-z]{2}-[A-Z]{2}$”, value is string.

1 validation + required
discount
object
required
items
array[object]
required

Responses

Promotion was successfully updated

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
project_id
promotion_id
$$.env
2 variables not set
username
password