---
title: "Calculate cart fees"
method: POST
path: "/calculate/fees"
tags: ["calculate"]
---

# Calculate cart fees

`POST /calculate/fees`

Calculates the cart fees.

## Request body

- object
  - `set_session` boolean — Sets the cart fees in session once calculated.
  - `return` boolean — Returns the cart fees once calculated.

## Response `200`

Cart fees calculated successfully.

- union
  - string
  - CartFee[]
    - `name` string
    - `amount` number
    - `taxable` boolean
    - `tax_class` string
    - `total` number
    - `tax` number

## 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/versions/2031b047ca5f/schema)
