post

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

Creates a discount promotion for an item.

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

Authorization

basic

Request Parameters

1 Path Parameter

Request Body

Object with a 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 created.

1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
promotion_id
integer

Promotion ID. Unique promotion identifier within the project.

Send a Test Request

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