Products
/- Mirakl Platform
- Rest Operator APIs
- PR04 - Update a promotion
PR01 - List promotions
PR03 - Create a promotion
PR04 - Update a promotion
Security
Operator-Bearer-Token or OAuth-2
If applicable, promo code associated to the promotion. Only editable if promotion is upcoming.
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
Start date of the promotion period of activity. Only editable if promotion is upcoming.
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/promotions/{promotion_internal_id}
curl -i -X PUT \
'https://your-instance.mirakl.net/api/promotions/{promotion_internal_id}?shop_id=0' \
-H 'Authorization: Bearer <YOUR_JWT_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",
"public_descriptions": [
{
"locale": "en_US",
"value": "Summer promotions"
},
{
"locale": "fr_FR",
"value": "Promotions d'\''été"
}
],
"reward": {
"selection": {
"type": "BRAND",
"values": [
"Samsung",
"Belkin"
]
}
},
"start_date": "2023-04-03T16:18:59.922Z",
"trigger": {
"selection": {
"type": "ALL"
}
}
}'