Clockify Expense API

The Expense API from Clockify — 6 operation(s) for expense.

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/workspaces/{workspaceId}/expenses List expenses in a workspace · Get all expenses on a workspace #
Ask an LLM
“How do I pull all expenses recorded in a workspace?”
“Can I list only the expenses a particular user submitted?”
Tell an agent
List all expenses in workspace {workspace}.
Show expenses in workspace {workspace} for user {user}.
POST /v1/workspaces/{workspaceId}/expenses Record an expense for a user · Create an expense #
Ask an LLM
“Can I record a meal or travel expense for a teammate?”
“Can an expense be marked billable and attached to a project and category?”
Tell an agent
Record an expense of {amount} for user {userId} on {date} in workspace {workspaceId}.
Add a billable expense of {amount} for {userId} dated {date} in workspace {workspaceId}, category {categoryId}, project {projectId}.
GET /v1/workspaces/{workspaceId}/expenses/categories List expense categories · Get all expense categories #
Ask an LLM
“What expense categories exist in my workspace?”
“Can I list only the archived expense categories?”
Tell an agent
List all expense categories in workspace {workspace}.
Show expense categories in workspace {workspace} with archived set to {archived}.
POST /v1/workspaces/{workspaceId}/expenses/categories Add an expense category · Add an expense category #
Ask an LLM
“How do I create a new expense category?”
“Can I set a unit price when adding a category?”
Tell an agent
Add an expense category {name} in workspace {workspace}.
Create expense category {name} in workspace {workspace} priced at {price} cents.
DELETE /v1/workspaces/{workspaceId}/expenses/categories/{categoryId} Delete an expense category · Delete an expense category #
Ask an LLM
“How do I permanently remove an expense category?”
“Can I delete a category that is still in use?”
Tell an agent destructive · confirm first
Delete expense category {category} from workspace {workspace}.
Remove the {category} category in workspace {workspace}.
PUT /v1/workspaces/{workspaceId}/expenses/categories/{categoryId} Rename or edit an expense category · Update an expense category #
Ask an LLM
“How do I rename an existing expense category?”
“Can I change the unit price of a category?”
Tell an agent
Rename expense category {category} in workspace {workspace} to {name}.
Set the unit price of category {category} in workspace {workspace} to {price} cents.
PATCH /v1/workspaces/{workspaceId}/expenses/categories/{categoryId}/status Archive an expense category · Archive an expense category #
Ask an LLM
“How do I archive an expense category?”
“Can I hide a category without deleting it?”
Tell an agent
Archive expense category {category} in workspace {workspace}.
Set category {category} in workspace {workspace} archived to {archived}.
DELETE /v1/workspaces/{workspaceId}/expenses/{expenseId} Delete an expense · Delete an expense #
Ask an LLM
“How do I delete an expense I recorded by mistake?”
“Can I remove a single expense from a workspace?”
Tell an agent destructive · confirm first
Delete expense {expense} from workspace {workspace}.
Remove the expense {expense} in workspace {workspace}.
GET /v1/workspaces/{workspaceId}/expenses/{expenseId} Get an expense · Get an expense by ID #
Ask an LLM
“How do I look up one expense by ID?”
“What amount and date are recorded on a specific expense?”
Tell an agent
Get expense {expense} in workspace {workspace}.
Show the details of expense {expense} in workspace {workspace}.
PUT /v1/workspaces/{workspaceId}/expenses/{expenseId} Update an expense · Update an expense #
Ask an LLM
“How do I correct the amount or date on an existing expense?”
“Can I change which project an expense is linked to?”
Tell an agent
Update expense {expense} in workspace {workspace} to amount {amount}, date {date}, category {category}, user {user}, file {file}, fields {fields}.
Correct expense {expense} in workspace {workspace} to {amount} on {date}, category {category}, user {user}, file {file}, fields {fields}.
GET /v1/workspaces/{workspaceId}/expenses/{expenseId}/files/{fileId} Download an expense receipt · Download a receipt #
Ask an LLM
“How do I download the receipt attached to an expense?”
“Can I fetch an expense file by its ID?”
Tell an agent
Download receipt {file} for expense {expense} in workspace {workspace}.
Fetch the attached file {file} of expense {expense} in workspace {workspace}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/clockify:clockify-expense-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

clockify-expense-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '## Introduction

    By using this REST API, you can easily integrate Clockify with your own add-ons, push and pull data

    between Clockify and other tools, and create custom add-ons on CAKE.com Marketplace.'
  title: Clockify Expense API
  version: v1
  x-logo:
    altText: Clockify logo
    url: https://clockify.me/downloads/clockify_logo_primary_black_margin.png
tags:
- name: Expense
  x-displayName: Expense
paths:
  /v1/workspaces/{workspaceId}/expenses:
    servers:
    - url: https://api.clockify.me/api
    get:
      operationId: getExpenses
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Page number.
        example: 1
        in: query
        name: page
        required: false
        schema:
          type: integer
          description: Page number.
          format: int32
          example: 1
          default: 1
      - description: Page size.
        example: 50
        in: query
        name: page-size
        required: false
        schema:
          minimum: 1
          type: integer
          description: Page size.
          format: int32
          example: 50
          default: 50
      - description: If provided, you'll get a filtered list of expenses which match the provided string in the user ID linked to the expense.
        example: 5a0ab5acb07987125438b60f
        in: query
        name: user-id
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpensesAndTotalsDtoV1'
          description: OK
      summary: Get all expenses on a workspace
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    post:
      operationId: createExpense
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateExpenseV1Request'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseDtoV1'
          description: Created
      summary: Create an expense
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/expenses/categories:
    servers:
    - url: https://api.clockify.me/api
    get:
      operationId: getCategories
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents the column name to be used as sorting criteria.
        example: NAME
        in: query
        name: sort-column
        required: false
        schema:
          type: string
          enum:
          - NAME
      - description: Represents the sorting order.
        example: ASCENDING
        in: query
        name: sort-order
        required: false
        schema:
          type: string
          enum:
          - ASCENDING
          - DESCENDING
      - description: Page number.
        example: 1
        in: query
        name: page
        required: false
        schema:
          type: integer
          description: Page number.
          format: int32
          example: 1
          default: 1
      - description: Page size.
        example: 50
        in: query
        name: page-size
        required: false
        schema:
          minimum: 1
          type: integer
          description: Page size.
          format: int32
          example: 50
          default: 50
      - description: Flag to filter results based on whether category is archived or not.
        example: true
        in: query
        name: archived
        required: false
        schema:
          type: boolean
          description: Flag to filter results based on whether category is archived or not.
          example: true
          default: false
      - description: If provided, you'll get a filtered list of expense categories that matches the provided string in their name.
        example: procurement
        in: query
        name: name
        required: false
        schema:
          type: string
          description: If provided, you'll get a filtered list of expense categories that matches the provided string in their name.
          example: procurement
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseCategoriesWithCountDtoV1'
          description: OK
      summary: Get all expense categories
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    post:
      operationId: createExpenseCategory
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseCategoryV1Request'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseCategoryDtoV1'
          description: Created
      summary: Add an expense category
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/expenses/categories/{categoryId}:
    servers:
    - url: https://api.clockify.me/api
    delete:
      operationId: deleteCategory
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a category identifier across the system.
        example: 89a687e29ae1f428e7ebe567
        in: path
        name: categoryId
        required: true
        schema:
          type: string
          description: Represents a category identifier across the system.
          example: 89a687e29ae1f428e7ebe567
      responses:
        '204':
          description: No Content
      summary: Delete an expense category
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    put:
      operationId: updateCategory
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a category identifier across the system.
        example: 89a687e29ae1f428e7ebe567
        in: path
        name: categoryId
        required: true
        schema:
          type: string
          description: Represents a category identifier across the system.
          example: 89a687e29ae1f428e7ebe567
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseCategoryV1Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseCategoryDtoV1'
          description: OK
      summary: Update an expense category
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/expenses/categories/{categoryId}/status:
    servers:
    - url: https://api.clockify.me/api
    patch:
      operationId: updateExpenseCategoryStatus
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a category identifier across the system.
        example: 89a687e29ae1f428e7ebe567
        in: path
        name: categoryId
        required: true
        schema:
          type: string
          description: Represents a category identifier across the system.
          example: 89a687e29ae1f428e7ebe567
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpenseCategoryArchiveV1Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseCategoryDtoV1'
          description: OK
      summary: Archive an expense category
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/expenses/{expenseId}:
    servers:
    - url: https://api.clockify.me/api
    delete:
      operationId: deleteExpense
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents an expense identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: expenseId
        required: true
        schema:
          type: string
          description: Represents an expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      responses:
        '200':
          description: OK
      summary: Delete an expense
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    get:
      operationId: getExpense
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents an expense identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: expenseId
        required: true
        schema:
          type: string
          description: Represents an expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseDtoV1'
          description: OK
      summary: Get an expense by ID
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    put:
      operationId: updateExpense
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents an expense identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: expenseId
        required: true
        schema:
          type: string
          description: Represents an expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UpdateExpenseV1Request'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseDtoV1'
          description: OK
      summary: Update an expense
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/expenses/{expenseId}/files/{fileId}:
    servers:
    - url: https://api.clockify.me/api
    get:
      operationId: downloadFile
      parameters:
      - description: Represents a file identifier across the system.
        example: 745687e29ae1f428e7ebe890
        in: path
        name: fileId
        required: true
        schema:
          type: string
          description: Represents a file identifier across the system.
          example: 745687e29ae1f428e7ebe890
      - description: Represents an expense identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: expenseId
        required: true
        schema:
          type: string
          description: Represents an expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      responses:
        '200':
          content:
            '*/*':
              schema:
                type: string
                format: byte
          description: OK
      summary: Download a receipt
      tags:
      - Expense
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
components:
  schemas:
    ExpenseCategoryV1Request:
      required:
      - name
      type: object
      properties:
        hasUnitPrice:
          type: boolean
          description: Flag whether expense category has unit price or none.
          default: false
        name:
          maxLength: 250
          minLength: 0
          type: string
          description: Represents a valid expense category name.
          example: Procurement
        priceInCents:
          type: integer
          description: Represents price in cents as integer.
          format: int32
          example: 1000
        unit:
          type: string
          description: Represents a valid expense category unit.
          example: piece
    ExpensesAndTotalsDtoV1:
      type: object
      properties:
        dailyTotals:
          type: array
          description: Represents a list of expense daily total data transfer objects.
          items:
            $ref: '#/components/schemas/ExpenseDailyTotalsDtoV1'
        expenses:
          $ref: '#/components/schemas/ExpensesWithCountDtoV1'
        weeklyTotals:
          type: array
          description: Represents a list of expense weekly total data transfer objects.
          items:
            $ref: '#/components/schemas/ExpenseWeeklyTotalsDtoV1'
    ExpenseHydratedDtoV1:
      type: object
      properties:
        billable:
          type: boolean
          description: Indicates whether expense is billable or not.
          default: false
        category:
          $ref: '#/components/schemas/ExpenseCategoryDto'
        date:
          type: string
          description: Represents a date in yyyy-MM-dd format.
          example: 89b687e29ae1f428e7ebe912
        fileId:
          type: string
          description: Represents file identifier across the system.
          example: 745687e29ae1f428e7ebe890
        fileName:
          type: string
          description: Represents file name.
          example: expense_20200101
        id:
          type: string
          description: Represents expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
        isLocked:
          type: boolean
          writeOnly: true
        locked:
          type: boolean
        notes:
          type: string
          description: Represents notes for an expense.
          example: This is a sample note for this expense.
        project:
          $ref: '#/components/schemas/ProjectInfoDto'
        quantity:
          type: number
          description: Represents expense quantity as double data type.
          format: double
        task:
          $ref: '#/components/schemas/TaskInfoDto'
        total:
          type: number
          description: Represents expense total as double data type.
          format: double
          example: 10500.5
        userId:
          type: string
          description: Represents user identifier across the system.
          example: 89b687e29ae1f428e7ebe912
        workspaceId:
          type: string
          description: Represents workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      description: Represent a list of hydrated expense objects.
    CreateExpenseV1Request:
      required:
      - amount
      - categoryId
      - date
      - file
      - projectId
      - userId
      type: object
      properties:
        amount:
          maximum: 92233720368547760
          type: number
          description: Represents an expense amount as the double data type.
          format: double
          example: 99.5
        billable:
          type: boolean
          description: Indicates whether expense is billable or not.
          default: false
        categoryId:
          type: string
          description: Represents a category identifier across the system.
          example: 45y687e29ae1f428e7ebe890
        date:
          type: string
          description: Provides a valid yyyy-MM-ddThh:mm:ssZ format date.
          format: date-time
          example: '2020-01-01T00:00:00Z'
        file:
          type: string
          format: binary
        notes:
          maxLength: 3000
          minLength: 0
          type: string
          description: Represents notes for an expense.
          example: This is a sample note for this expense.
        projectId:
          type: string
          description: Represents a project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        taskId:
          type: string
          description: Represents a task identifier across the system.
          example: 54m377ddd3fcab07cfbb432w
        userId:
          minLength: 1
          type: string
          description: Represents a user identifier across the system.
          example: 89b687e29ae1f428e7ebe912
    ExpenseCategoryDto:
      type: object
      properties:
        archived:
          type: boolean
          description: Flag that indicates whether the expense category is archived or not.
          default: false
        hasUnitPrice:
          type: boolean
          description: Represents whether expense category has unit price or none.
          default: false
        id:
          type: string
          description: Represents expense category identifier across the system.
          example: 89a687e29ae1f428e7ebe303
        name:
          type: string
          description: Represents expense category name.
          example: Procurement
        priceInCents:
          type: integer
          description: Represents price in cents as integer.
          format: int32
          example: 1000
        unit:
          type: string
          description: Represents expense category unit.
          example: piece
        workspaceId:
          type: string
          description: Represents workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      description: Represents an expense category object.
    ExpenseCategoriesWithCountDtoV1:
      type: object
      properties:
        categories:
          type: array
          description: Represents a list of expense categories data transfer object.
          items:
            $ref: '#/components/schemas/ExpenseCategoryDtoV1'
        count:
          type: integer
          description: Indicates the number of expense categories returned.
          format: int32
          example: 20
    ExpenseDtoV1:
      type: object
      properties:
        billable:
          type: boolean
          description: Indicates whether expense is billable or not.
          default: false
        categoryId:
          type: string
          description: Represents category identifier across the system.
          example: 45y687e29ae1f428e7ebe890
        date:
          type: string
          description: Represents a date in yyyy-MM-dd format.
          example: '2020-01-01'
        fileId:
          type: string
          description: Represents file identifier across the system.
          example: 745687e29ae1f428e7ebe890
        id:
          type: string
          description: Represents expense identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
        isLocked:
          type: boolean
          writeOnly: true
        locked:
          type: boolean
        notes:
          type: string
          description: Represents notes for an expense.
          example: This is a sample note for this expense.
        projectId:
          type: string
          description: Represents project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        quantity:
          type: number
          description: Represents expense quantity as double data type.
          format: double
        taskId:
          type: string
          description: Represents task identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        total:
          type: number
          description: Represents expense total as double data type.
          format: double
          example: 10500.5
        userId:
          type: string
          description: Represents user identifier across the system.
          example: 89b687e29ae1f428e7ebe912
        workspaceId:
          type: string
          description: Represents workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
    TaskInfoDto:
      type: object
      properties:
        id:
          type: string
          description: Represents task identifier across the system.
          example: 5b715448b0798751107918ab
        name:
          type: string
          description: Represents task name.
          example: Bugfixing
      description: Represents a project info object.
    ExpenseWeeklyTotalsDtoV1:
      type: object
      properties:
        date:
          type: string
          description: Represents a date in yyyy-MM-dd format.
          example: '2020-01-01'
        total:
          type: number
          description: Represents expense total.
          format: double
          example: 20000.75
      description: Represents a list of expense weekly total data transfer objects.
    ExpenseCategoryArchiveV1Request:
      type: object
      properties:
        archived:
          type: boolean
          description: Flag whether to archive the expense category or not.
          default: false
    ExpensesWithCountDtoV1:
      type: object
      properties:
        count:
          type: integer
          description: Represent result count.
          format: int32
          example: 25
        expenses:
          type: array
          description: Represent a list of hydrated expense objects.
          items:
            $ref: '#/components/schemas/ExpenseHydratedDtoV1'
      description: Represents an expense with count data transfer object.
    ExpenseCategoryDtoV1:
      type: object
      properties:
        archived:
          type: boolean
          description: Flag that indicates whether the expense category is archived or not.
          default: false
        hasUnitPrice:
          type: boolean
          description: Represents whether expense category has unit price or none.
          default: false
        id:
          type: string
          description: Represents expense category identifier across the system.
          example: 89a687e29ae1f428e7ebe303
        name:
          type: string
          description: Represents expense category name.
          example: Procurement
        priceInCents:
          type: integer
          description: Represents price in cents as integer.
          format: int32
          example: 1000
        unit:
          type: string
          description: Represents expense category unit.
          example: piece
        workspaceId:
          type: string
          description: Represents workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      description: Represents a list of expense categories data transfer object.
    UpdateExpenseV1Request:
      required:
      - amount
      - categoryId
      - changeFields
      - date
      - file
      - userId
      type: object
      properties:
        amount:
          maximum: 92233720368547760
          minimum: 0
          type: number
          description: Represents an expense amount as the double data type.
          format: double
          example: 99.5
        billable:
          type: boolean
          description: Indicates whether expense is billable or not.
          default: false
        categoryId:
          type: string
          description: Represents a category identifier across the system.
          example: 45y687e29ae1f428e7ebe890
        changeFields:
          type: array
          description: Represents a list of expense change fields.
          example:
          - USER
          - DATE
          - PROJECT
          items:
            type: string
            description: Represents a list of expense change fields.
            example: '["USER","DATE","PROJECT"]'
            enum:
            - USER
            - DATE
            - PROJECT
            - TASK
            - CATEGORY
            - NOTES
            - AMOUNT
            - BILLABLE
            - FILE
        date:
          type: string
          description: Provides a valid yyyy-MM-ddThh:mm:ssZ format date.
          format: date-time
          example: '2020-01-01T00:00:00Z'
        file:
          type: string
          format: binary
        notes:
          maxLength: 3000
          minLength: 0
          type: string
          description: Represents notes for an expense.
          example: This is a sample note for this expense.
        projectId:
          type: string
          description: Represents a project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        taskId:
          type: string
          description: Represents a task identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        userId:
          minLength: 1
          type: string
          description: Represents a user identifier across the system.
          example: 89b687e29ae1f428e7ebe912
    ProjectInfoDto:
      type: object
      properties:
        clientId:
          type: string
          description: Represents client identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
        clientName:
          type: string
          description: Represents client name.
          example: Client X
        color:
          type: string
          description: 'Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with ''#'' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.'
          example: '#000000'
        id:
          type: string
          description: Represents project identifier across the system.
          example: 5b641568b07987035750505e
        name:
          type: string
          description: Represents a project name.
          example: Software Development
      description: Represents a project info object.
    ExpenseDailyTotalsDtoV1:
      type: object
      properties:
        date:
          type: string
          description: Represents a date in yyyy-MM-dd format.
          example: '2020-01-01'
        dateAsInstant:
          type: string
          format: date-time
        total:
          type: number
          description: Represents expense total.
          format: double
          example: 1500.75
      description: Represents a list of expense daily total data transfer objects.
  securitySchemes:
    AddonKeyAuth:
      in: header
      name: x-addon-token
      type: apiKey
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey
    MarketplaceKeyAuth:
      in: header
      name: x-marketplace-token
      type: apiKey
    ReportAddonKeyAuth:
      in: header
      name: x-addon-token
      type: apiKey
x-tagGroups:
- name: Clockify API
  tags:
  - User
  - Workspace
  - Webhooks
  - Approval
  - Client
  - Custom fields
  - Expense
  - Holiday
  - Invoice
  - Project
  - Task
  - Scheduling
  - Tag
  - Time entry
  - Balance
  - Policy
  - Time Off
  - Group
- name: Clockify Reports API
  tags:
  - Shared Report
  - Team Report
  - Time Entry Report
  - Expense Report
- name: Clockify Audit Log API
  tags:
  - Audit Log Report
- name: Deprecated API
  tags:
  - Template (Deprecated)
  - Scheduling (Deprecated)
  - Workspace (Deprecated)
- name: Experimental API
  tags:
  - Entity changes (Experimental)
- name: Guide
  tags:
  - 'Entity Changes: Use cases'
x-provenance:
  method: harvested
  publisher: Clockify
  source: https://docs.clockify.me/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)