- POST /batch-submit#
Send in donation receipts for the current or one of the past fiscal years. The donor will reveive the signed total back, which is called the donation statement.
Request: SubmitDonationReceiptsRequest
Response:
- 201 Created:
The request was successful, and a donation statement is now available. The response will be empty.
- 403 Forbidden:
One of the signatures is invalid. This response comes with a standard ErrorDetail response.
- 404 Not found:
At least one of the donation unit keys is not known to the Donau. Comes with a DonationUnitUnknownError.
Details:
interface SubmitDonationReceiptsRequest{ // hashed taxpayer ID plus salt h_donor_tax_id: HashCode; // All donation receipts must be for this year. donation_year: Integer; // Receipts should be sorted by amount. donation_receipts: DonationReceipt[]; }
interface DonationReceipt { h_donation_unit_pub: HashCode; nonce: string; donation_unit_sig: DonationReceiptSignature; }
type DonationReceiptSignature = RSADonationReceiptSignature | CSDonationReceiptSignature ;
interface RSADonationReceiptSignature { cipher: "RSA"; // RSA signature rsa_signature: RsaSignature; }
interface CSDonationReceiptSignature { cipher: "CS"; // R value component of the signature. cs_signature_r: Cs25519Point; // s value component of the signature. cs_signature_s: Cs25519Scalar; }