Expense Endpoints
API endpoints for expense tracking, income management, and recurring expenses.
Expensesโ
List Expensesโ
GET /api/expense?take=20&skip=0&startDate=2024-01-01&endDate=2024-01-31
Authorization: Bearer {token}
Response (200 OK):
{
"items": [
{
"id": "...",
"amount": 250.0,
"currency": "USD",
"valueDate": "2024-01-15T00:00:00.000Z",
"notes": "Office supplies",
"purpose": "Office",
"vendor": { "name": "Office Depot" },
"category": { "name": "Supplies" },
"status": "REPORTED",
"organizationId": "..."
}
],
"total": 30
}
Create Expenseโ
POST /api/expense
Authorization: Bearer {token}
Content-Type: application/json
{
"amount": 250.00,
"currency": "USD",
"valueDate": "2024-01-15",
"notes": "Office supplies",
"purpose": "Office",
"typeOfExpense": "BILLABLE_TO_CONTACT",
"categoryId": "category-uuid",
"vendorId": "vendor-uuid",
"organizationId": "org-uuid"
}
Expense Statusesโ
| Status | Description |
|---|---|
REPORTED | Expense reported |
INVOICED | Included in an invoice |
PAID | Reimbursed |
Expense Typesโ
| Type | Description |
|---|---|
BILLABLE_TO_CONTACT | Bill to client |
NON_BILLABLE | Internal expense |
TAX_DEDUCTIBLE | Tax-deductible expense |