Create a promotion
Create a promotion
Query Parameters
Parameter | Details |
---|---|
with | Array of strings string Enum: customData |
Request body
requiredParameter | Details |
---|---|
id
| string Example: 645e0c241a93369ff53f26e0 |
version
| string Example: 645e0c241a93369ff53f26e0 |
name
| string Example: Christmas Promotion |
displayName | object Example: { "de_DE": "Weihnachtsaktion", "en_US": "Christmas promotion" } |
status
| string Enum: archived inactive active Example: active |
activationType
| string Enum: automatic code Example: code |
level
| string Enum: basket item |
schedule
| object from stringFormat: date-time Pattern: ^((?:(\d{4}-\d{2}-\d{2})(T)(\d{2}:\d{2}:\d{2}(?:\.\d{2})?))(Z|[\+-]\d{2}:\d{2}))$ Example: 2023-05-10T10:00:00+00:00 to stringFormat: date-time Pattern: ^((?:(\d{4}-\d{2}-\d{2})(T)(\d{2}:\d{2}:\d{2}(?:\.\d{2})?))(Z|[\+-]\d{2}:\d{2}))$ Example: 2024-05-10T10:00:00+00:00 |
companyIds
| integer Example: 100 |
shopCountryIds
| object allowList array
Example: [ 1, 2 ] blockList array
Example: [ 3, 4 ] |
siblingPromotions
| object enabled booleanallowList array
Example: [ "645e0c241a93369ff53f26e0", "646235bf496f8f56171c3762" ] blockList array
Example: [ "64623787496f8f56171c3763" ] level stringExample: basket Enum: basket |
audiences | object allowList array
Example: [ "645e0c241a93369ff53f26e0", "646235bf496f8f56171c3762" ] blockList array
Example: [ "64623787496f8f56171c3763" ] |
effect
| object type stringExample: buy_x_get_y Enum: buy_x_get_y automatic_discount combo_deal additionalData |
conditions
| object level stringExample: global Enum: global item key stringExample: mov_100 condition string
Example: payload.items.exists(i, 11003 in i.variant.id) |
itemSetIds
| string Example: 645e0c241a93369ff53f26e0 |
priority | integer Example: 1 |
customData | object Example: { "legalText": "Supported neglected met she therefore unwilling discovery remainder. Way sentiments two indulgence uncommonly own." } |
tiers | object name string
Example: Tier 1 additionalData object
mov integerExample: 10000 |
usageLimit | object |
Responses
201
Promotion was successfully created.
application/json
Success
id
string
Example:
645e0c241a93369ff53f26e0
version
string
Example:
645e0c241a93369ff53f26e0
namerequired
string
Example:
Christmas Promotion
object
Example:
{ "de_DE": "Weihnachtsaktion", "en_US": "Christmas promotion" }
statusrequired
string
Example:
active
activationTyperequired
string
Example:
code
levelrequired
string
required
object
companyIdsrequired
Array of integer
required
object
object
object
required
object
required
Array of object
itemSetIds
Array of string
priority
integer
Example:
1
object
Example:
{ "legalText": "Supported neglected met she therefore unwilling discovery remainder. Way sentiments two indulgence uncommonly own." }
Array of object
object
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
403
Forbidden
application/json
Error
500
Service unavailable error
application/json
Error
POST
Request samples
Response samples
201Promotion:
Content type: application/json