ReDoc documentation

carts/{cartId}/totals

carts/{cartId}/totals

get/V1/carts/{cartId}/totals

Returns quote totals data for a specified cart.

Request
path Parameters
cartId
required
integer

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

Response samples
{
  • "grand_total": 0,
  • "base_grand_total": 0,
  • "subtotal": 0,
  • "base_subtotal": 0,
  • "discount_amount": 0,
  • "base_discount_amount": 0,
  • "subtotal_with_discount": 0,
  • "base_subtotal_with_discount": 0,
  • "shipping_amount": 0,
  • "base_shipping_amount": 0,
  • "shipping_discount_amount": 0,
  • "base_shipping_discount_amount": 0,
  • "tax_amount": 0,
  • "base_tax_amount": 0,
  • "weee_tax_applied_amount": 0,
  • "shipping_tax_amount": 0,
  • "base_shipping_tax_amount": 0,
  • "subtotal_incl_tax": 0,
  • "base_subtotal_incl_tax": 0,
  • "shipping_incl_tax": 0,
  • "base_shipping_incl_tax": 0,
  • "base_currency_code": "string",
  • "quote_currency_code": "string",
  • "coupon_code": "string",
  • "items_qty": 0,
  • "items": [
    ],
  • "total_segments": [
    ],
  • "extension_attributes": {
    }
}