Expense

Get an expense by ID

Changed on
get/v1/workspaces/{workspaceId}/expenses/{expenseId}

Request

  • Base URL: https://api.clockify.me/api
  • URL: https://api.clockify.me/api/v1/workspaces/{workspaceId}/expenses/{expenseId}
  • Auth: one of:
    • API key in header x-api-key
    • API key in header x-addon-token

Path parameters

workspaceIdstring required

Represents a workspace identifier across the system.

Example:64a687e29ae1f428e7ebe303
expenseIdstring required

Represents an expense identifier across the system.

Example:64c777ddd3fcab07cfbb210c

Response

OK

billableboolean

Indicates whether expense is billable or not.

categoryIdstring

Represents category identifier across the system.

datestring

Represents a date in yyyy-MM-dd format.

fileIdstring

Represents file identifier across the system.

idstring

Represents expense identifier across the system.

isLockedboolean
lockedboolean
notesstring

Represents notes for an expense.

projectIdstring

Represents project identifier across the system.

quantitynumber double

Represents expense quantity as double data type.

taskIdstring

Represents task identifier across the system.

totalnumber double

Represents expense total as double data type.

userIdstring

Represents user identifier across the system.

workspaceIdstring

Represents workspace identifier across the system.

Example response

{
  "categoryId": "45y687e29ae1f428e7ebe890",
  "date": "2020-01-01",
  "fileId": "745687e29ae1f428e7ebe890",
  "id": "64c777ddd3fcab07cfbb210c",
  "notes": "This is a sample note for this expense.",
  "projectId": "25b687e29ae1f428e7ebe123",
  "taskId": "25b687e29ae1f428e7ebe123",
  "total": 10500.5,
  "userId": "89b687e29ae1f428e7ebe912",
  "workspaceId": "64a687e29ae1f428e7ebe303"
}

Changes

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value was added for the status