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 · query

    Items per page, 1 to 100.

  • cursorstring · query

    The previous page's pagination.nextCursor; absent for the first page.

  • fromstring · query

    The window starts at this instant, included (ISO-8601, with its offset); needed by segment.

  • tostring · query

    The window ends at this instant, excluded (ISO-8601, with its offset); absent: no end.

  • segmentstring · query

    Only 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). Needs from.

  • recurringstring · query

    Only donors whose recurring donations are, at best, in these statuses, comma-separated: active, paused, failed, cancelled, none.

  • sorttotal | lastGift · query

    total (given over the window; the default) or lastGift (their latest gift ever).

  • directionasc | desc · query

    Sort direction; desc by default.

Returns

A page of donors.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (13)
    • objectdonor

      Always donor.

    • emailstring

      The donor's email, as on their latest gift: one donor per email, compared trimmed and in any case.

    • namestring | null

      The name on the donor's latest gift that has one.

    • donorstring | null

      The donor's Masjidbox account (the donor portal), when one of their gifts names it.

    • currencystring | null

      The account's currency, ISO 4217.

    • totalnumber

      Given over the window, in minor units.

    • countnumber

      Gifts over the window.

    • lifetimeTotalnumber

      Given ever, in minor units.

    • lifetimeCountnumber

      Gifts ever.

    • firstGiftAtstring

      Their first gift (ISO-8601).

    • lastGiftAtstring

      Their latest gift (ISO-8601).

    • recurringactive | paused | failed | cancelled | none

      The best status of their recurring donations: active, paused, failed, cancelled, or none without any.

    • segmentnew | returning | lapsed | null

      new, returning or lapsed over the window; null without from.

  • paginationobject

    Where this page stands.

    Show child attributes (3)
    • limitinteger

      The page size asked for.

    • hasMoreboolean

      Whether another page follows: stop on false, never on a short page.

    • nextCursorstring | null

      The cursor of 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.

GET /v1/masjid/donors
curl "https://hub.masjidbox.com/v1/masjid/donors" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidDonorsPage
{
  "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
  }
}