---
title: "Get Total Cost"
method: GET
path: "/api/v1/task/cost"
tags: ["Task"]
---

# Get Total Cost

`GET /api/v1/task/cost`

## Request

- Base URL: `https://api.scade.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scade.pro/api/v1/task/cost`
- Auth: none declared

## Query parameters

- `groups` CountTaskGroupNames[]
- `date_group` 'day' | 'month' | 'year': An enumeration.
- `created__lt` string, date-time
- `created__lte` string, date-time
- `created__gt` string, date-time
- `created__gte` string, date-time
- `ordering` string
- `lower_ordering` boolean
- `page` integer
- `page_size` union
  - integer
  - string
- `has_next_page` boolean
- `task_type` 1 | 2 | 3 | 4 | 5 | 99: An enumeration.
- `ref_id` string
- `status` 1 | 2 | 3 | 4 | 5: An enumeration.
- `task_type__in` TaskType[]
- `id__in` integer[]
- `is_hide` boolean
- `status__in` TaskStatus[]

## Headers

- `x-company-id` string
- `x-auth-as-staff` boolean
- `x-owner-payment-flag` boolean
- `authorization` string
- `x-auth-token` string

## Cookies

- `ory_kratos_session` string

## Response `200`

Successful Response

- CostTaskResult
  - `total_cost` number
  - `cost_by_groups` unknown[]
    - unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/scade/apis/scade-prod.md) - [All operations](https://skmtc.dev/scade/apis/scade-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/scade/apis/scade-prod/revisions/f3d7ba71abbc?raw)
