---
title: "Get cart totals"
method: GET
path: "/totals"
tags: ["calculate"]
---

# Get cart totals

`GET /totals`

Retrieves the cart totals including subtotal, taxes, shipping, and discounts.

## Query parameters

- `html` boolean

## Response `200`

Cart totals retrieved successfully.

- TotalsResponse
  - `subtotal` string — Cart subtotal.
  - `subtotal_tax` string — Cart subtotal tax.
  - `shipping_total` string — Shipping total.
  - `shipping_tax` string — Shipping tax.
  - `shipping_taxes` number[]
  - `discount_total` string — Discount total.
  - `discount_tax` string — Discount tax.
  - `cart_contents_total` string — Cart contents total.
  - `cart_contents_tax` string — Cart contents tax.
  - `cart_contents_taxes` number[]
  - `fee_total` string — Fee total.
  - `fee_tax` string — Fee tax.
  - `fee_taxes` number[]
  - `total` string — Cart total.
  - `total_tax` string — Total tax.

## Other responses

- `400` — Bad request - invalid parameters.

---

[API](https://skmtc.net/cocartapi/apis/cocart-jwt-authentication.md) · [All operations](https://skmtc.net/cocartapi/apis/cocart-jwt-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cocartapi/cocart-jwt-authentication/revisions/2031b047ca5f/schema)
