Skip to main content
GET
/
totals
{
  "subtotal": "<string>",
  "subtotal_tax": 123,
  "shipping_total": "<string>",
  "shipping_tax": 123,
  "shipping_taxes": [
    123
  ],
  "discount_total": 123,
  "discount_tax": 123,
  "cart_contents_total": "<string>",
  "cart_contents_tax": 123,
  "cart_contents_taxes": [
    123
  ],
  "fee_total": "<string>",
  "fee_tax": 123,
  "fee_taxes": [
    123
  ],
  "total": "<string>",
  "total_tax": 123
}

Query Parameters

html
boolean
default:false

Returns the totals pre-formatted.

Response

Cart totals retrieved successfully.

subtotal
string

Subtotal of all items in the cart. Returns formatted price if html=true.

subtotal_tax

Subtotal tax amount. Returns formatted price if html=true.

shipping_total
string

Shipping total cost. Returns formatted price if html=true.

shipping_tax

Shipping tax amount. Returns formatted price if html=true.

shipping_taxes
number[]

Array of shipping tax rates.

discount_total

Total discount amount. Returns formatted price if html=true.

discount_tax

Discount tax amount. Returns formatted price if html=true.

cart_contents_total
string

Cart contents total. Returns formatted price if html=true.

cart_contents_tax

Cart contents tax. Returns formatted price if html=true.

cart_contents_taxes
number[]

Array of cart content tax rates.

fee_total
string

Fee total amount. Returns formatted price if html=true.

fee_tax

Fee tax amount. Returns formatted price if html=true.

fee_taxes
number[]

Array of fee tax rates.

total
string

Total amount of the cart including tax. Returns formatted price if html=true.

total_tax

Total tax amount. Returns formatted price if html=true.

I