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

Masjid key · secret · Donations: read

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

    Items per page, 1 to 100.

  • cursorstring · query

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

  • updatedSincestring · query

    Only what changed at or after this instant (ISO-8601, with its offset).

Returns

A page of receipts.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (21)
    • objectdonation_receipt

      Always donation_receipt.

    • idstring

      The receipt id.

    • numberstring | null

      Its legal number.

    • serialnumber | null

      Its place in the numbering.

    • amountnumber | null

      The amount it states, in minor units of the currency (pence, cents).

    • datestring | null

      The date it states (ISO-8601).

    • namestring | null

      The donor's name.

    • emailstring | null

      The donor's email.

    • addressstring | null

      The donor's postal address, as the receipt states it.

    • donationstring | null

      The donation it covers; null for a yearly receipt.

    • campaignstring | null

      The campaign of that donation.

    • consolidatedYearnumber | null

      The year a yearly receipt covers.

    • typestring | null

      Its type.

    • naturestring | null

      The nature of the gift.

    • formstring | null

      The form of the gift.

    • sentboolean

      Emailed to the donor.

    • canceledboolean

      Canceled; its number stays taken.

    • canceledAtstring | null

      When it was canceled (ISO-8601).

    • replacedBystring | null

      The receipt that replaced it.

    • createdAtstring | null

      When it was issued (ISO-8601).

    • updatedAtstring | null

      When it last changed: the order of the list (ISO-8601).

  • 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.

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

Masjid key · secret · Donations: read

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

    The receipt id.

Returns

Where to fetch it.

  • objectdonation_receipt_file

    Always donation_receipt_file.

  • urlstring

    Where to fetch the PDF.

  • expiresAtstring | null

    When the URL stops working: five minutes; null for a public URL (ISO-8601).

GET /v1/masjid/donation-receipts/{id}/file
curl "https://hub.masjidbox.com/v1/masjid/donation-receipts/rcp_6af5c9e2bc095fbd2dc5735e/file" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidDonationReceiptFile
{
  "expiresAt": "2026-11-12T08:05:00.000Z",
  "object": "donation_receipt_file",
  "url": "https://files.masjidbox.com/recus/2026-0001.pdf?X-Amz-Signature=…"
}