Calculate the discounts for a specified basket
Query Parameters
List of Offer types to consider during discount calculation
List of Offer types to exclude during discount calculation
When set tot true, coupons that granted discount/bonus will not be reserved
When set, controls whether external discounts are preserved in the response, overriding the PreserveExternalDiscounts feature flag
Body
The specified basket that the discounts need to be calculated for.
The current basket state
The basket identifier
The store identifier
Represents the customer associated with the basket
The checkout type used during the purchase. If provided, only discounts matching this type will be considered.
Time when purchase was made. If provided, coupons avaialble at that time will be retrieved instead of currently available coupons
The basket total
The basket line items
The set of basket-level discounts
The set of coupons associated with basket-level discounts
Response
OK
Represents an updated basket state with the currently applicable discounts and their calculations
The basket identifier
The initial basket total
The updated basket total (after discounts have been applied)
The set of line items associated with the current basket
The set of basket-level discounts associated with the current basket
The set of basket-level bonuses associated with the current basket
The set of coupons associated with the basket-level discounts