Skip to content

Expenses

Expenses, allocated by category, cost center and project.

Module: Finance (finance).

  • GET /api/v1/expenses - List with filters, sorting and pagination (scope finance:read)
  • GET /api/v1/expenses/{id} - A record by id (scope finance:read)
  • POST /api/v1/expenses - Create a record (scope finance:write)
  • PATCH /api/v1/expenses/{id} - Modify the submitted fields (scope finance:write)
  • DELETE /api/v1/expenses/{id} - Delete or deactivate (scope finance:write)
  • POST /api/v1/expenses/{id}/add_receipt - Attaches a receipt or an invoice to the expense. (scope finance:write)
  • POST /api/v1/expenses/{id}/remove_receipt - Deletes the receipt and its file. (scope finance:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • cost_center_id (string, uuid; write): Cost center
  • title (string; write, required): Description
  • amount (number; write, required): Amount (RON)
  • currency (string; read): Currency (ISO code, e.g. RON).
  • spent_at (string, date; write, required): Date
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • project_id (string, uuid; write): Project
  • vendor (string; write): Supplier / beneficiary
  • note (string; write): Note
  • created_by (string; read)
  • category (string; write): Category
  • payment_method (string; write): Payment
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • custom_fields (object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.
  • legal_entity_id (string, uuid; write, required): Company
  • vat_amount (number; write): Of which VAT
  • expenses.created
  • expenses.updated
  • expenses.deleted

Accepts custom fields in custom_fields. docs.rivil.app documents the capability; the list for your company is in the ERP, under Settings, API.