Skip to main content
FieldTypeDetails
idstringExpense identifier.
namestringExpense name or label.
amountnumberTotal expense amount.
main_typestringPrimary expense category.
expense_typestringResolved type from company.expenseTypes when provided; otherwise uses payload.type.
sub_typestringSecondary category (payload.other).
detailsstringOptional description.
expense_line_idsarrayItemized expense lines.
paymentsarrayPayments tied to the expense.
expenseItems and expenseTypes are parsed from JSON strings when supplied; empty arrays are used when no items are present.

Expense line schema

FieldTypeDetails
price_unitnumberUnit price of the item.
namestringItem name.
quantitynumberItem quantity.

Expense payment schema

FieldTypeDetails
idstringPayment identifier.
amountnumberPayment amount.
treasury_idstringTreasury used for the payment.
{
  "id": "exp_301",
  "name": "Lab supplies",
  "amount": 240,
  "main_type": "supplies",
  "expense_type": "consumables",
  "sub_type": "gloves and masks",
  "details": "Monthly restock",
  "expense_line_ids": [
    {
      "price_unit": 40,
      "name": "Gloves box",
      "quantity": 3
    },
    {
      "price_unit": 30,
      "name": "Masks pack",
      "quantity": 2
    }
  ],
  "payments": [
    {
      "id": "exp_pay_01",
      "amount": 120,
      "treasury_id": "treasury_01"
    }
  ]
}