Promotion Enhancements
Published by DJ Steinmetz on January 20, 2023
Last updated on June 11, 2025
Introducing new enhancements to increase flexibility of OrderCloud Promotions.
New Properties
AutoApply
, defaultfalse
This new property enables customers to designate promotions as
AutoApply
, and set varying numericPriority
values which dictate the order in which promotions are automatically applied.
Active
, defaulttrue
Promotions where
Active = false
will not be evaluated for either the.../applypromotions
or.../eligiblepromotions
endpoints, and will never be returned fromv1/me/promotions
. Designating a promotionActive = false
prevents a buyer user from accessing the promotion, without deleting the record from your marketplace.A newly deactivated promotion will also be removed from any Unsubmitted orders immediately following deactivation. The promotion data will remain accessible from the administrative endpoints, making for a good historical record, or for possible reactivation in the future.
Priority
, nullableThe new
Priority
property on Promotions can be used to control the order in which promotions are applied when callingv1/orders/{direction}/{orderID}/applypromotions
/v1/cart/applypromotions
. There are no rules around the sequencing ofPriority
values.
New Endpoints
v1/orders/{direction}/{orderID}/eligiblepromotions
andv1/cart/eligiblepromotions
The new endpoints enable listing eligible promotions for an order. This capability can support features such as displaying eligible promo codes to the buyer user during checkout, and many other UI driven promotion-based enhancements
v1/orders/{direction}/{orderID}/refreshpromotions
andv1/cart/refreshpromotions
Any eligible promotions designated as AutoApply will be applied to the order
They are sorted by
Priority
and applied them to the order one by onePromotions where
Priority = null
will be evaluated lastThe maximum number of promotions that will be applied to an order in a single API call is 100
Any promotions already applied to the order that are no longer eligible will be removed
Any promotions already applied to the order will have their discounts recalculated
The response body contains an array of
PromosAdded
andPromosRemoved
/refreshpromotions
endpoint above instead of the /applypromotions
endpoint described belowv1/orders/{direction}/{orderID}/applypromotions
andv1/cart/applypromotions
Any eligible promotions designated as AutoApply will be applied to the order
They are sorted by
Priority
and applied them to the order one by onePromotions where
Priority = null
will be evaluated lastThe maximum number of promotions that will be applied to an order in a single API call is 100
The response body is the full Order object
Still have questions?
Ask in our Community Channel