Your masjid · Donations

Your Gift Aid declarations

Your donors' UK Gift Aid declarations, by last change: the details HMRC reads, where HMRC is with each one and the claim it went into. They need a secret key.

Right on the key: Donations: read for a read, edit (secret key) for a write.

Your Gift Aid declarations

GET/v1/masjid/gift-aid-declarations

Your organization's Gift Aid declarations, whatever their HMRC status, 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. A change shows here about 30 seconds after it is made, once settled. An item can come more than once, unchanged too: apply each one as the current state of its id. A write slower than that to commit can, rarely, be missed: to catch up, read again with updatedSince set a few minutes back. updatedSince starts from an instant instead of a cursor. Donor names and emails: needs a secret key with Donations: read. The donor's name, house name or number and postcode show here, as HMRC needs them.

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 Gift Aid declarations.

  • objectlist

    Always list.

  • dataobject[]

    The items of this page.

    Show child attributes (23)
    • objectgift_aid_declaration

      Always gift_aid_declaration.

    • idstring

      The declaration id.

    • donationstring | null

      The donation it covers.

    • campaignstring | null

      The campaign of that donation.

    • claimstring | null

      The HMRC claim that carries it.

    • amountnumber | null

      The donation, in minor units of the currency (pence, cents).

    • refundedAmountnumber

      Refunded so far, in minor units.

    • datestring | null

      The date of the donation (ISO-8601).

    • titlestring | null

      The donor's title.

    • firstNamestring | null

      The donor's first name.

    • lastNamestring | null

      The donor's last name.

    • houseNameOrNumberstring | null

      The donor's house name or number, as HMRC reads it.

    • postcodestring | null

      The donor's postcode.

    • overseasboolean

      The donor lives outside the UK: no postcode.

    • overseasAddressstring | null

      The overseas address.

    • statusstring | null

      Where HMRC is with it: pending, invalid, on_hold, pending_review, submitted, accepted, rejected, error, refunded.

    • holdReasonstring | null

      Why it is on hold.

    • claimReferencestring | null

      The HMRC reference of its claim.

    • submittedAtstring | null

      When it was sent to HMRC (ISO-8601).

    • acceptedboolean

      HMRC accepted it.

    • acceptedAtstring | null

      When HMRC accepted it (ISO-8601).

    • createdAtstring | null

      When it was recorded (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. A change feed keeps it on its last page: the next call with it reads only what changed since.

GET /v1/masjid/gift-aid-declarations
curl "https://hub.masjidbox.com/v1/masjid/gift-aid-declarations" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidGiftAidDeclarationsPage
{
  "data": [
    {
      "accepted": false,
      "acceptedAt": null,
      "amount": 5000,
      "campaign": "cmp_6af5c9e2bc095fbd2dc5735b",
      "claim": "gac_6af5c9e2bc095fbd2dc57362",
      "claimReference": null,
      "createdAt": "2026-11-12T08:00:00.000Z",
      "date": "2026-11-12T08:00:00.000Z",
      "donation": "don_6af5c9e2bc095fbd2dc5735c",
      "firstName": "John",
      "holdReason": null,
      "houseNameOrNumber": "10",
      "id": "gad_6af5c9e2bc095fbd2dc57361",
      "lastName": "Smith",
      "object": "gift_aid_declaration",
      "overseas": false,
      "overseasAddress": null,
      "postcode": "SW1A 1AA",
      "refundedAmount": 0,
      "status": "submitted",
      "submittedAt": "2026-11-12T08:00:00.000Z",
      "title": "Mr",
      "updatedAt": "2026-11-12T08:00:00.000Z"
    }
  ],
  "object": "list",
  "pagination": {
    "hasMore": false,
    "limit": 25,
    "nextCursor": null
  }
}

One of your Gift Aid declarations

GET/v1/masjid/gift-aid-declarations/{id}

A Gift Aid declaration of your organization: the donor as HMRC needs them, its HMRC status and the claim it went into. Needs a secret key with Donations: read.

Parameters

  • idstring · pathrequired

    The Gift Aid declaration id.

Returns

The declaration.

  • objectgift_aid_declaration

    Always gift_aid_declaration.

  • idstring

    The declaration id.

  • donationstring | null

    The donation it covers.

  • campaignstring | null

    The campaign of that donation.

  • claimstring | null

    The HMRC claim that carries it.

  • amountnumber | null

    The donation, in minor units of the currency (pence, cents).

  • refundedAmountnumber

    Refunded so far, in minor units.

  • datestring | null

    The date of the donation (ISO-8601).

  • titlestring | null

    The donor's title.

  • firstNamestring | null

    The donor's first name.

  • lastNamestring | null

    The donor's last name.

  • houseNameOrNumberstring | null

    The donor's house name or number, as HMRC reads it.

  • postcodestring | null

    The donor's postcode.

  • overseasboolean

    The donor lives outside the UK: no postcode.

  • overseasAddressstring | null

    The overseas address.

  • statusstring | null

    Where HMRC is with it: pending, invalid, on_hold, pending_review, submitted, accepted, rejected, error, refunded.

  • holdReasonstring | null

    Why it is on hold.

  • claimReferencestring | null

    The HMRC reference of its claim.

  • submittedAtstring | null

    When it was sent to HMRC (ISO-8601).

  • acceptedboolean

    HMRC accepted it.

  • acceptedAtstring | null

    When HMRC accepted it (ISO-8601).

  • createdAtstring | null

    When it was recorded (ISO-8601).

  • updatedAtstring | null

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

GET /v1/masjid/gift-aid-declarations/{id}
curl "https://hub.masjidbox.com/v1/masjid/gift-aid-declarations/gad_6af5c9e2bc095fbd2dc57361" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidGiftAidDeclaration
{
  "accepted": false,
  "acceptedAt": null,
  "amount": 5000,
  "campaign": "cmp_6af5c9e2bc095fbd2dc5735b",
  "claim": "gac_6af5c9e2bc095fbd2dc57362",
  "claimReference": null,
  "createdAt": "2026-11-12T08:00:00.000Z",
  "date": "2026-11-12T08:00:00.000Z",
  "donation": "don_6af5c9e2bc095fbd2dc5735c",
  "firstName": "John",
  "holdReason": null,
  "houseNameOrNumber": "10",
  "id": "gad_6af5c9e2bc095fbd2dc57361",
  "lastName": "Smith",
  "object": "gift_aid_declaration",
  "overseas": false,
  "overseasAddress": null,
  "postcode": "SW1A 1AA",
  "refundedAmount": 0,
  "status": "submitted",
  "submittedAt": "2026-11-12T08:00:00.000Z",
  "title": "Mr",
  "updatedAt": "2026-11-12T08:00:00.000Z"
}