Products
/- Mirakl Platform
- Rest Seller APIs
- PR03 - Create a promotion
PR01 - List promotions
PR04 - Update a promotion
PR03 - Create a promotion
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMIN)
Channels on which the promotion is applied. If none, promotion applied on all channels
The customer groups on which the promotion is applied. If none, promotion applies to all customer groups.
The customer organizations on which the promotion is applied. If none, promotion applies to all customer organizations.
The public descriptions of the promotion, with the locales they apply to
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/promotions
curl -i -X POST \
'https://your-instance.mirakl.net/api/promotions?shop_id=0' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"application_to_cart": [
{
"promo_code": "SUMMER20"
}
],
"channel_codes": [
"US"
],
"customer_group_ids": [
"Group2"
],
"customer_organization_ids": [
"Org1"
],
"end_date": "2023-08-30T22:00:00.000Z",
"internal_description": "Summer sale event",
"internal_id": "SUMMERSALE_3",
"public_descriptions": [
{
"locale": "en_US",
"value": "Summer promotions"
},
{
"locale": "fr_FR",
"value": "Promotions d'\''été"
}
],
"reward": {
"max_quantity_to_discount": 1,
"percentage_off": 10,
"selection": {
"type": "BRAND",
"values": [
"Samsung",
"Belkin"
]
},
"type": "PERCENTAGE_OFF"
},
"start_date": "2023-04-03T16:18:59.922Z",
"trigger": {
"quantity_purchased": 1,
"same_item_purchased": false,
"selection": {
"type": "ALL"
},
"type": "EVERY_QUANTITY"
}
}'