Contents

GET /donation-statement/$YEAR/$HASH_DONOR_ID#

Get the donation statement for a specific year and donor.

Request:

Response:

200 OK:

The request was successful, and the response is a DonationStatementResponse.

403 Forbidden:

One of the signatures is invalid. This response comes with a standard ErrorDetail response.

404 Not found:

Either the donor or the year or the corresponding donation statement was not found. This response comes with a standard ErrorDetail response.

Details:

interface DonationStatementResponse {
  total: Amount;
  // signature over h_donor_tax_id, total, donation_year
  donation_statement_sig: EddsaSignature;
  // the corresponding public key to the signature
  donau_pub: EddsaPublicKey;
}