Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Cart, Calculate

Perform a complete cart calculation based on the cart status. Possible calculations include computing prices, evaluating promotions, checking the inventory, computing shipping costs, evaluating shipping promotions, applying post shipping adjustments, and computing taxes.
Resource
1/commerce/webstores/webstoreId/carts/activeCartOrId/actions/calculate
Values for activeCartOrId are:
  • cartId—ID of the cart.
  • active—Active cart. This value should only be used for authenticated users.
  • current—Cart that isn’t closed or pending deletion. Available in version 50.0 and later.
Available version
62.0
HTTP methods
POST
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
effectiveAccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 62.0
Response body for POST
Cart Summary Result