Your masjid · Donations
Your donors
One row per donor, from their succeeded donations: what they gave over a period and ever, their first and latest gift, how their recurring donations stand, and whether they are new, returning or lapsed. They need a secret key.
Right on the key: Donations: read for a read, edit (secret key) for a write.
Your donors
GET/v1/masjid/donors
Your organization's donors, one per email (compared trimmed and in any case), from their succeeded donations; a donation without an email belongs to no donor. For each: what they gave over the window (from included, to excluded; all time without either) and ever, their first and latest gift, the best status of their recurring donations, and, with from, their segment: new (first gift ever in the window), returning (gave in the window and before it) or lapsed (gave before the window, not in it, listed with a window total of 0). Sorted by total (the default) or lastGift, desc by default; by cursor (limit 1 to 100, 25 by default). Filter by segment (needs from) and recurring. Amounts in minor units. Names and emails, as on the donations: needs a secret key with Donations: read.
Parameters
limitinteger · queryItems per page, 1 to 100.
cursorstring · queryThe previous page's
pagination.nextCursor; absent for the first page.fromstring · queryThe window starts at this instant, included (ISO-8601, with its offset); needed by
segment.tostring · queryThe window ends at this instant, excluded (ISO-8601, with its offset); absent: no end.
segmentstring · queryOnly these segments, comma-separated:
new(first gift ever in the window),returning(gave in the window and before it),lapsed(gave before the window, not in it). Needsfrom.recurringstring · queryOnly donors whose recurring donations are, at best, in these statuses, comma-separated:
active,paused,failed,cancelled,none.sorttotal | lastGift · querytotal(given over the window; the default) orlastGift(their latest gift ever).directionasc | desc · querySort direction;
descby default.
Returns
A page of donors.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (13)
objectdonorAlways
donor.emailstringThe donor's email, as on their latest gift: one donor per email, compared trimmed and in any case.
namestring | nullThe name on the donor's latest gift that has one.
donorstring | nullThe donor's Masjidbox account (the donor portal), when one of their gifts names it.
currencystring | nullThe account's currency, ISO 4217.
totalnumberGiven over the window, in minor units.
countnumberGifts over the window.
lifetimeTotalnumberGiven ever, in minor units.
lifetimeCountnumberGifts ever.
firstGiftAtstringTheir first gift (ISO-8601).
lastGiftAtstringTheir latest gift (ISO-8601).
recurringactive | paused | failed | cancelled | noneThe best status of their recurring donations:
active,paused,failed,cancelled, ornonewithout any.segmentnew | returning | lapsed | nullnew,returningorlapsedover the window; null withoutfrom.
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. A change feed keeps it on its last page: the next call with it reads only what changed since.
curl "https://hub.masjidbox.com/v1/masjid/donors" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"data": [
{
"count": 3,
"currency": "GBP",
"donor": null,
"email": "donor@example.org",
"firstGiftAt": "2025-03-01T10:00:00.000Z",
"lastGiftAt": "2026-11-12T08:00:00.000Z",
"lifetimeCount": 9,
"lifetimeTotal": 27000,
"name": "A Donor",
"object": "donor",
"recurring": "active",
"segment": "returning",
"total": 9000
}
],
"object": "list",
"pagination": {
"hasMore": false,
"limit": 25,
"nextCursor": null
}
}