Promotions

Add a new promotion

post/api/Promotions

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
  • Auth: API key in header Authorization

Request body

idstring nullable

Unique Id of the promotion, GUID will be generated if not provided.

numberstring nullable

Optional short, human-friendly promotion number. Generated from the tenant's promotion number series if not provided (and a series is configured).

namestring nullable

Name of the promotion

titlestring nullable

Descriptive title of the promotion

activeFromstring date-time required

Start date of the promotion

activeTostring date-time required

End date of the promotion.

costPriceActiveFromstring date-time nullable

Optional start date for cost prices on the linked price list. If null, ActiveFrom is used.

costPriceActiveTostring date-time nullable

Optional end date for cost prices on the linked price list. If null, ActiveTo is used.

storeCostPriceActiveFromstring date-time nullable

Optional start date for store cost prices on the linked price list. If null, ActiveFrom is used.

storeCostPriceActiveTostring date-time nullable

Optional end date for store cost prices on the linked price list. If null, ActiveTo is used.

marketsstring[] required

Promotion is only valid for carts with these markets.

marketGroupsstring[] nullable

Promotion is only valid for carts with these market groups.

storeGroupsstring[] nullable

Promotion is only valid for carts with these store groups.

storesstring[] nullable

Promotion is only valid for carts with these stores.

excludedStoresstring[] nullable

Promotion will not apply for carts with these stores. Exclude takes priority over include.

excludedStoreGroupsstring[] nullable

Promotion will not apply for carts with stores in these store groups. Exclude takes priority over include.

filterOnWarehouseStoresboolean

Only discount for products sent from chosen stores. (Only applies if stores are set). Default is false.

privateCustomerIdsstring[] nullable

Promotion is only valid for these specific private (B2C) customers by ID.

businessCustomerIdsstring[] nullable

Promotion is only valid for these specific business (B2B) customers by ID.

priorityinteger

Priority of the promotion. Promotions with higher priority will be applied first. 0 is the highest priority.

couponCodestring nullable

Coupon code for the promotion. If not set, the promotion will be applied automatically.

canBeCombinedWithOtherPromotionsboolean

Promotion can be combined with other promotions on the same orderLine (e.g. 10% off + 5$ off).

alwaysApplyboolean

Promotion can be combined also with promotions that have are canBeCombinedWithOtherPromotions = false.

customerClubMembersOnlyboolean

Promotion is valid only for customers that are members of the customer club.

isBonusPointsRewardboolean

Is reward given in bonus points instead of discount (CustomerClub and CategoryOrBrand promotions only).

orderTypesstring[] nullable

Promotion is valid only for these order types (e.g. online, clickAndCollect, pos).

tagsstring[] nullable

Tag for filtering promotions. E.g. "BlackFriday"

priceFilterModestring nullable

Controls how the promotion filters products based on price type: None (default, no filtering), Exclude, or Include.

priceTypeFilterstring nullable

Comma-separated flags indicating which price types to filter: Discounted, MemberPrice, or both (Discounted, MemberPrice). Used with PriceFilterMode.

useDiscountedPriceAsBaseboolean

When true, the promotion discount is calculated from the discounted price instead of the original price. Default is false.

useMemberPriceAsBaseboolean

When true, the promotion discount is calculated from the product's member (customer club) price. Other campaigns' prices are never used as the base; products without a member price fall back to the ordinary price. Takes precedence over UseDiscountedPriceAsBase. Default is false.

convertToRegularPriceAtstring date-time nullable

When set, indicates when the promotion price should be automatically converted to a regular price with a "Last Chance" label. Typically set to promotion start date + 30 days.

forceGeneratePricesboolean nullable

When true, price records are generated even if the promotion has coupon codes or order type restrictions. false and null both use default behavior.

excludeFromLowestPriceHistoryboolean nullable

When true, prices generated by this promotion are excluded from the lowest price history calculation. false and null both use default behavior (included).

createPriceListboolean nullable

When true, a price list is automatically created with the same ID as the promotion. The price list stores planning/budget data for non-PriceListPromotion types.

Response

Success

string required

Changes

No recorded changes to this operation across all 1 revision of this API.