Promotions
Search for promotions
Sample request for getting promotions that are valid during the time interval 2024-10-01 - 2024-10-07
POST /api/Promotions/Search
{
{
"activatedBeforeDate": "2024-10-01T00:00:00",
"endedAfterDate": "2024-10-07T00:00:00",
"marketIds": ["NOR"],
"page":1,
"take":10
}
}
Sample request for getting promotions that will become active during the time interval 2024-10-01 - 2024-10-07, for shipping and order amount promotion types
POST /api/Promotions/Search
{
{
"promotionTypes": ["ShippingPromotion", "OrderAmountPromotion"],
"activeFrom": "2024-10-01T00:00:00",
"activatedBeforeDate": "2024-10-07T00:00:00",
"marketIds": ["NOR"],
"page": 1,
"take": 10
}
}
Sample request for fetching a known set of promotions in one call, e.g. the ids found in promotionIds on products or in promotion events (max 250 ids per request; set take to at least the number of ids)
POST /api/Promotions/Search
{
{
"promotionIds": ["promo-1", "promo-2", "promo-3"],
"page": 1,
"take": 100
}
}
For bulk extraction of large result sets, use POST /api/Promotions/Search/Scroll instead.
post/api/Promotions/Search
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Promotions/Search
- Auth: API key in header Authorization
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.