Promotions

Patch update a promotion

patch/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.

namestring nullable

Name of the promotion

titlestring nullable

Descriptive title of the promotion

activeFromstring date-time nullable

Start date of the promotion

activeTostring date-time nullable

End date of the promotion.

costPriceActiveFromstring date-time nullable

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

costPriceActiveTostring date-time nullable

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

storeCostPriceActiveFromstring date-time nullable

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

storeCostPriceActiveTostring date-time nullable

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

marketsstring[] nullable

Promotion is only valid for carts with these markets.

marketGroupsstring[] nullable

Promotion is only valid for carts with these market groups.

storesstring[] nullable

Promotion is only valid for carts with these stores.

storeGroupsstring[] nullable

Promotion is only valid for carts with these store groups.

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 nullable

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 nullable

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 nullable

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

alwaysApplyboolean nullable

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

customerClubMembersOnlyboolean nullable

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

isBonusPointsRewardboolean nullable

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"

forcePriceUpdateboolean nullable

Force update of all product prices for this promotion, regardless of whether changes are detected. This will remove existing promotion prices and recalculate them based on the current promotion configuration. Only applies to promotions where prices are not calculated in cart.

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 nullable

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

useMemberPriceAsBaseboolean nullable

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.

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. Set to null to clear.

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

isModifiedboolean
totalCountinteger
updatedCountinteger
unchangedCountinteger
notFoundCountinteger
errorCountinteger
errorMessagestring nullable

Changes

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