Submit cart details and retrieve applicable promotions

Submit a cart to simulate promotion calculations based on its current contents and applied conditions.

The engine will calculate which promotions are applicable to the provided cart and return:

  • Cart object
  • All matched promotions
  • The exact discounts applied
  • Adjusted unit prices (after discount)
  • Updated tax amounts
  • Total discount values

The same cartId can be submitted multiple times to recalculate promotions when the cart changes.

If any promotions have application limits and locking periods, a reservation is made when the promotion is found applicable.
If the cart is not checked out via the /cart/finalize endpoint before the lock expires, the reservation is released automatically.

Body Params

Cart request

string
required

Unique identifier for the cart, used to track and recalculate promotions across multiple requests.

string
required

Identifier of the specific store where the cart originates.

string
required

Identifier for the group of the store where the cart originates.

string

Optional customer identifier.

string
enum
Defaults to biggestDiscount

Defines how promotions are selected when multiple apply. Currently supports selecting the promotion offering the biggest discount.

Allowed:
string
enum
Defaults to automatic

Method by which promotions are applied. Currently supports 'automatic', meaning that promotions are applied without manual intervention.

Allowed:
string
enum
required

Specifies the rounding strategy to apply on price calculations: standard mathematical rounding, always down (floor), or always up (ceiling).

Allowed:
integer
required
0 to 10
Defaults to 2

Number of decimal places to use in price and discount calculations.

string

Optional promo code to apply specific promotions tied to codes.

string
required
length ≤ 3

ISO currency code for monetary values in the cart.

cart
object
required
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json