---
title: "Get costs information"
method: GET
path: "/workorders/{id}/costs"
tags: ["Work Orders"]
---

# Get costs information

`GET /workorders/{id}/costs`

## Path parameters

- `id` integer, required

## Response `200`

Successfully fetched costs

- object
  - `costs` object, required
    - `total` number, required — Total cost in cents of the Work order
    - `rows` object[], required
      - `type` 'EXPENSE' | 'PART' | 'TIME' — Type of the entry
      - `costPerUnit` number, nullable — Cost per part in cents or cents per hour
      - `description` string, nullable — Description of the expense or part description
      - `quantity` number — Number of parts or number of hours
      - `rowTotal` number — Total cost in cents
      - `durationTotal` number — Total duration in seconds
      - `userId` integer, nullable — ID of the user who logged the time entry
      - `partId` integer, nullable — ID of the part used in this cost entry

## Other responses

- `401` — Invalid token
- `404` — Could not find the specified Work Order.

---

[API](https://skmtc.net/getmaintainx/apis/maintainx-api.md) · [All operations](https://skmtc.net/getmaintainx/apis/maintainx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getmaintainx/maintainx-api/revisions/ef9153fcac7c/schema)
