Body for pricing a cart. The server keeps every selected discount that can be used, then adds the combination of other usable discounts that gives the lowest total. Send [] as selectedDiscountIds to let the server choose everything.
The price of a cart with a set of discounts applied.
The price of a cart. A guest gets both prices; a signed-in user gets only the one that applies to them.
Body for pricing a cart. The server keeps every selected discount that can be used, then adds the combination of other usable discounts that gives the lowest total. Send [] as selectedDiscountIds to let the server choose everything.
The price of a cart with a set of discounts applied.
The price of a cart. A guest gets both prices; a signed-in user gets only the one that applies to them.
Pricing a cart before it is finalised. Nothing here is stored.