API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · expenses

Expense Schema

Schema-ID
expense
Collection
expenses
Permissions
  • Lezenexpense_view
  • Aanmakenexpense_create
  • Wijzigenexpense_edit
  • Verwijderenexpense_delete
Relaties

Velden

Expense Schema

expenses4 permissions

Schema for validating expense entities

userIduuidvereist

User ID who recorded this expense

datedatevereist

Date of the expense (ISO date format)

categorystringvereist

Expense category

TRAVELMATERIALLICENSINGACCOMMODATIONMEALSSHIPPINGOTHER
descriptionstringvereist

Expense description

1–1000 tekens
amountstringvereist

Gross amount in EUR as decimal string

Pattern
currencystringvereist

Currency code (ISO 4217)

PatternDefault: "EUR"
taxRatenumbervereist

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

0 – 100Default: 19
netAmountstringvereist

Net amount (computed) in EUR as decimal string

Pattern
receiptAttachmentIduuidoptioneel

Receipt attachment UUID

nullable
ticketIduuidoptioneel→ ticket

Associated ticket UUID

nullable
projectIduuidoptioneel→ project

Associated project UUID

nullable
partyIduuidoptioneel

Associated party/customer UUID

nullable
contractIduuidoptioneel

Associated contract UUID

nullable
billablebooleanvereist

Whether this expense is billable to the customer

Default: true
billingStatusstringvereist

Current billing status

OPENAPPROVEDINVOICED
Default: "OPEN"
performanceRecordIduuidoptioneel

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

read-onlynullable
invoiceIduuidoptioneel

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

read-onlynullable
approvalStatusstringvereist

Approval status

DRAFTSUBMITTEDAPPROVEDREJECTED
Default: "DRAFT"
approvedByIduuidoptioneel

User who approved this expense

nullable
approvedAtdatetimeoptioneel

Timestamp when approved (ISO datetime)

nullable
tagsstring[]optioneel

Expense tags

Default: []

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/expenses — Lijst, gepagineerd + filterbaar
  • GET /api/v1/expenses/<id> — Enkele entity
  • POST /api/v1/expenses — Aanmaken
  • PATCH /api/v1/expenses/<id> — Gedeeltelijke update
  • DELETE /api/v1/expenses/<id> — Soft-delete
  • GET /api/v1/expenses/<id>/timeline — Audit + activiteiten

Zoeken