API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · expenses

Expense Schema

Schema ID
expense
Collection
expenses
Permissions
  • Readexpense_view
  • Createexpense_create
  • Editexpense_edit
  • Deleteexpense_delete
Relationships

Fields

Expense Schema

expenses4 permissions

Schema for validating expense entities

userIduuidrequired

User ID who recorded this expense

datedaterequired

Date of the expense (ISO date format)

categorystringrequired

Expense category

TRAVELMATERIALLICENSINGACCOMMODATIONMEALSSHIPPINGOTHER
descriptionstringrequired

Expense description

1–1000 characters
amountstringrequired

Gross amount in EUR as decimal string

Pattern
currencystringrequired

Currency code (ISO 4217)

PatternDefault: "EUR"
taxRatenumberrequired

VAT rate as percentage (e.g., 19 for 19%)

0 – 100Default: 19
netAmountstringrequired

Net amount (computed) in EUR as decimal string

Pattern
receiptAttachmentIduuidoptional

Receipt attachment UUID

nullable
ticketIduuidoptional→ ticket

Associated ticket UUID

nullable
projectIduuidoptional→ project

Associated project UUID

nullable
partyIduuidoptional

Associated party/customer UUID

nullable
contractIduuidoptional

Associated contract UUID

nullable
billablebooleanrequired

Whether this expense is billable to the customer

Default: true
billingStatusstringrequired

Current billing status

OPENAPPROVEDINVOICED
Default: "OPEN"
performanceRecordIduuidoptional

Leistungsnachweis this expense was billed on (per-project billing run, ADR 0416). Server-managed.

read-onlynullable
invoiceIduuidoptional

Invoice this expense was billed on (set when billingStatus flips to INVOICED). Server-managed.

read-onlynullable
approvalStatusstringrequired

Approval status

DRAFTSUBMITTEDAPPROVEDREJECTED
Default: "DRAFT"
approvedByIduuidoptional

User who approved this expense

nullable
approvedAtdatetimeoptional

Timestamp when approved (ISO datetime)

nullable
tagsstring[]optional

Expense tags

Default: []

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/expenses — List, paginated + filterable
  • GET /api/v1/expenses/<id> — Single entity
  • POST /api/v1/expenses — Create
  • PATCH /api/v1/expenses/<id> — Partial update
  • DELETE /api/v1/expenses/<id> — Soft delete
  • GET /api/v1/expenses/<id>/timeline — Audit + activities

Search