Your masjid · Donations
Your fiscal receipts
The fiscal receipts issued for your donations, canceled ones included, by last change, and the PDF of each. They need a secret key.
Right on the key: Donations: read for a read, edit (secret key) for a write.
Your fiscal receipts
GET/v1/masjid/donation-receipts
Your organization's fiscal receipts, canceled ones included, oldest change first, by cursor (limit 1 to 100, 25 by default; cursor from the previous page): keep the last page's cursor and the next call reads only what changed since. updatedSince starts from an instant instead. Donor names and emails: needs a secret key with Donations: read. The donor's postal address shows here, as the receipt states it, and nowhere else.
Parameters
limitinteger · queryItems per page, 1 to 100.
cursorstring · queryThe previous page's
pagination.nextCursor; absent for the first page.updatedSincestring · queryOnly what changed at or after this instant (ISO-8601, with its offset).
Returns
A page of receipts.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (21)
objectdonation_receiptAlways
donation_receipt.idstringThe receipt id.
numberstring | nullIts legal number.
serialnumber | nullIts place in the numbering.
amountnumber | nullThe amount it states, in minor units of the currency (pence, cents).
datestring | nullThe date it states (ISO-8601).
namestring | nullThe donor's name.
emailstring | nullThe donor's email.
addressstring | nullThe donor's postal address, as the receipt states it.
donationstring | nullThe donation it covers; null for a yearly receipt.
campaignstring | nullThe campaign of that donation.
consolidatedYearnumber | nullThe year a yearly receipt covers.
typestring | nullIts type.
naturestring | nullThe nature of the gift.
formstring | nullThe form of the gift.
sentbooleanEmailed to the donor.
canceledbooleanCanceled; its number stays taken.
canceledAtstring | nullWhen it was canceled (ISO-8601).
replacedBystring | nullThe receipt that replaced it.
createdAtstring | nullWhen it was issued (ISO-8601).
updatedAtstring | nullWhen it last changed: the order of the list (ISO-8601).
paginationobjectWhere this page stands.
Show child attributes (3)
limitintegerThe page size asked for.
hasMorebooleanWhether another page follows: stop on false, never on a short page.
nextCursorstring | nullThe
cursorof the next page; null on the last one.
curl "https://hub.masjidbox.com/v1/masjid/donation-receipts" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"address": "1 rue de la Paix, 75002 Paris",
"amount": 5000,
"campaign": "cmp_6af5c9e2bc095fbd2dc5735b",
"canceled": false,
"canceledAt": null,
"consolidatedYear": null,
"createdAt": "2026-11-12T08:00:00.000Z",
"date": "2026-11-12T08:00:00.000Z",
"donation": "don_6af5c9e2bc095fbd2dc5735c",
"email": "donor@example.org",
"form": null,
"id": "rcp_6af5c9e2bc095fbd2dc5735e",
"name": "A Donor",
"nature": null,
"number": "2026-0001",
"object": "donation_receipt",
"replacedBy": null,
"sent": true,
"serial": 1,
"type": "don",
"updatedAt": "2026-11-12T08:00:00.000Z"
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}A receipt's PDF
GET/v1/masjid/donation-receipts/{id}/file
Where to fetch the PDF of one of your fiscal receipts: a URL that works for five minutes, so fetch it right away. Needs a secret key with Donations: read.
Parameters
idstring · pathrequiredThe receipt id.
Returns
Where to fetch it.
objectdonation_receipt_fileAlways
donation_receipt_file.urlstringWhere to fetch the PDF.
expiresAtstring | nullWhen the URL stops working: five minutes; null for a public URL (ISO-8601).
Errors
curl "https://hub.masjidbox.com/v1/masjid/donation-receipts/rcp_6af5c9e2bc095fbd2dc5735e/file" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"expiresAt": "2026-11-12T08:05:00.000Z",
"object": "donation_receipt_file",
"url": "https://files.masjidbox.com/recus/2026-0001.pdf?X-Amz-Signature=…"
}