---
title: "returns all expenses"
method: GET
path: "/api/donations/expense"
tags: ["DonationAccounting"]
---

# returns all expenses

`GET /api/donations/expense`

## Response `200`

OK

- GanjoorExpense[]
  - `id` integer — Id
  - `expenseDate` string, date-time — date
  - `amount` number, double — amount
  - `unit` string, nullable — unit
  - `description` string, nullable — description
  - `donationExpenditures` DonationExpenditure[], nullable — donation expenitures
    - `id` integer — Id
    - `ganjoorDonationId` integer — GanjoorDonation Id
    - `ganjoorDonation` GanjoorDonation — Ganjoor Donation (based on donation records saved in old html format of https://ganjoor.net/donate/)
      - `id` integer — id
      - `dateString` string, nullable — date: (donation dates have been collected in different formats, so instead of keeping their dates in a DateTime field I ought to use a string field)
      - `recordDate` string, date-time — record date
      - `amount` number, double — donation amount (0 for old imported records)
      - `unit` string, nullable — Amount Unit
      - `amountString` string, nullable — amount string (avoiding to parse different formats of old html text)
      - `donorName` string, nullable — donor name
      - `donorLink` string, nullable — donor link (unused)
      - `remaining` number, double — remaining (it could be ignored later when our data has been normalized enough and be calculated using related data)
      - `expenditureDesc` string, nullable — expenditure desc
      - `importedRecord` boolean — record is imported from old HTML text of donation page
    - `amount` number, double — amount

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/ganjoor/apis/rmuseum-api.md) · [All operations](https://skmtc.net/ganjoor/apis/rmuseum-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ganjoor/rmuseum-api/versions/bb8e104d36d2/schema)
