---
title: "donation by id"
method: GET
path: "/api/donations/{id}"
tags: ["DonationAccounting"]
---

# donation by id

`GET /api/donations/{id}`

## Path parameters

- `id` integer, required

## Response `200`

OK

- GanjoorDonationViewModel — Ganjoor Donation View Model
  - `id` integer — id - null for POST api -
  - `recordDate` string, date-time — record date
  - `amount` number, double — donation amount (0 for old imported records)
  - `unit` string, nullable — "تومان" is good, Amount Unit, if you send another Unit it would be consumed with EXPENSES of the same Unit, if it send EMPTY it wotld not be consumed!
  - `donorName` string, nullable — donor name
  - `dateString` string, nullable — null for POST api - 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)
  - `amountString` string, nullable — null for POST api -amount string (avoiding to parse different formats of old html text)
  - `remaining` number, double — null for POST api -remaining (it could be ignored later when our data has been normalized enough and be calculated using related data)
  - `expenditureDesc` string, nullable — null for POST api -expenditure desc
  - `importedRecord` boolean — null for POST api - record is imported from old HTML text of donation page

## 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)
