POST

Estimate Current Cart Totals


Estimates the current cart's price totals (including tax), based on a selected carrier service, shipping address, and billing information.

Note:

  • Not passing any properties will only estimate the cart items price totals, without considering shipping and billing information.
  • This endpoint requires visitor or member authentication.
Permissions
Manage eCommerce - all permissions
Read eCommerce - all read permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Read Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/carts/current/estimate-totals

Body Params
selectedShippingOptionSelectedShippingOption

Selected shipping option.


shippingAddressShippingAddress

Shipping address. Used for calculating tax and shipping (when applicable).


billingAddressBillingAddress

Billing address. Used for calculating tax if all the items in the cart are not shippable.


selectedMembershipsSelectedMemberships

The selected membership payment options and which line items they apply to.


calculateTaxboolean

Whether to calculate tax in the calculation request.

Default: true


calculateShippingboolean

Whether to calculate shipping in the calculation request.

Default: true

Response Object
cartCart

Cart.


calculatedLineItemsArray <CalculatedLineItem>

Calculated line items.


priceSummaryPriceSummary

Price summary.


giftCardGiftCard

Applied gift card.


taxSummaryTaxSummary

Tax summary.


shippingInfoShippingInfo

Shipping information.


appliedDiscountsArray <AppliedDiscount>

Applied discounts.


calculationErrorsCalculationErrors

Calculation errors.


weightUnitstring

Weight measurement unit - defaults to site's weight unit.


currencystringformat CURRENCY

Currency used for pricing in this store.


payNowPayNow

Minimal amount to pay in order to place the order.


payLaterPayLater

Remaining amount for the order to be fully paid.


membershipOptionsMembershipOptions

Information about valid and invalid memberships, and which ones are selected for usage.


additionalFeesArray <AdditionalFee>maxItems 100

Additional fees


violationsArray <Violation>

List of validation violations raised by the Validations service plugin.

Estimate price totals of the current site visitor's cart

This example estimates price totals with a specific billing address.

Request
cURL
Response
JSON
Did this help?