Expenses

get_expenses

Get list of expenses for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for expense notes or purpose

relationsArray<string>

Relations to include (e.g., ["employee", "category", "project", "tags"])

employeeIdstring<uuid>

Filter by employee ID

categoryIdstring<uuid>

Filter by expense category ID

projectIdstring<uuid>

Filter by project ID

statusstring

Filter by expense status

startDatestring

Filter expenses from this date (ISO format)

endDatestring

Filter expenses until this date (ISO format)

currencystringUSDEURGBPJPYCADAUDCHFCNY

Filter by currency

get_expense_count

Get expense count in the authenticated user's organization

Parameters

employeeIdstring<uuid>

Filter by employee ID

categoryIdstring<uuid>

Filter by expense category ID

statusstring

Filter by expense status

startDatestring

Filter expenses from this date (ISO format)

endDatestring

Filter expenses until this date (ISO format)

get_expense

Get a specific expense by ID

Parameters

idstring<uuid>required

The expense ID

relationsArray<string>

Relations to include (e.g., ["employee", "category", "project", "tags"])

create_expense

Create a new expense in the authenticated user's organization

Body

application/json
expense_dataobjectrequired

The data for creating the expense

Show child attributes
amountnumberrequired

The amount (required)

currencystringrequired

The currency (required)

[key: string]any

update_expense

Update an existing expense

Parameters

idstring<uuid>required

The expense ID

expense_dataobjectrequired

The data for updating the expense

delete_expense

Delete an expense

Parameters

idstring<uuid>required

The expense ID

get_expense_categories

Get list of expense categories for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for category name

get_expenses_by_employee

Get expenses for a specific employee

Parameters

employeeIdstring<uuid>required

The employee ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

statusstring

Filter by expense status

startDatestring

Filter expenses from this date (ISO format)

endDatestring

Filter expenses until this date (ISO format)

get_my_expenses

Get expenses for the current authenticated user

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

statusstring

Filter by expense status

categoryIdstring<uuid>

Filter by expense category ID

startDatestring

Filter expenses from this date (ISO format)

endDatestring

Filter expenses until this date (ISO format)

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey