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 · 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 Gift Aid declarations.
objectlistAlways
list.dataobject[]The items of this page.
Show child attributes (23)
objectgift_aid_declarationAlways
gift_aid_declaration.idstringThe declaration id.
donationstring | nullThe donation it covers.
campaignstring | nullThe campaign of that donation.
claimstring | nullThe HMRC claim that carries it.
amountnumber | nullThe donation, in minor units of the currency (pence, cents).
refundedAmountnumberRefunded so far, in minor units.
datestring | nullThe date of the donation (ISO-8601).
titlestring | nullThe donor's title.
firstNamestring | nullThe donor's first name.
lastNamestring | nullThe donor's last name.
houseNameOrNumberstring | nullThe donor's house name or number, as HMRC reads it.
postcodestring | nullThe donor's postcode.
overseasbooleanThe donor lives outside the UK: no postcode.
overseasAddressstring | nullThe overseas address.
statusstring | nullWhere HMRC is with it:
pending,invalid,on_hold,pending_review,submitted,accepted,rejected,error,refunded.holdReasonstring | nullWhy it is on hold.
claimReferencestring | nullThe HMRC reference of its claim.
submittedAtstring | nullWhen it was sent to HMRC (ISO-8601).
acceptedbooleanHMRC accepted it.
acceptedAtstring | nullWhen HMRC accepted it (ISO-8601).
createdAtstring | nullWhen it was recorded (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. 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/gift-aid-declarations" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"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 · pathrequiredThe Gift Aid declaration id.
Returns
The declaration.
objectgift_aid_declarationAlways
gift_aid_declaration.idstringThe declaration id.
donationstring | nullThe donation it covers.
campaignstring | nullThe campaign of that donation.
claimstring | nullThe HMRC claim that carries it.
amountnumber | nullThe donation, in minor units of the currency (pence, cents).
refundedAmountnumberRefunded so far, in minor units.
datestring | nullThe date of the donation (ISO-8601).
titlestring | nullThe donor's title.
firstNamestring | nullThe donor's first name.
lastNamestring | nullThe donor's last name.
houseNameOrNumberstring | nullThe donor's house name or number, as HMRC reads it.
postcodestring | nullThe donor's postcode.
overseasbooleanThe donor lives outside the UK: no postcode.
overseasAddressstring | nullThe overseas address.
statusstring | nullWhere HMRC is with it:
pending,invalid,on_hold,pending_review,submitted,accepted,rejected,error,refunded.holdReasonstring | nullWhy it is on hold.
claimReferencestring | nullThe HMRC reference of its claim.
submittedAtstring | nullWhen it was sent to HMRC (ISO-8601).
acceptedbooleanHMRC accepted it.
acceptedAtstring | nullWhen HMRC accepted it (ISO-8601).
createdAtstring | nullWhen it was recorded (ISO-8601).
updatedAtstring | nullWhen it last changed: the order of the list (ISO-8601).
curl "https://hub.masjidbox.com/v1/masjid/gift-aid-declarations/gad_6af5c9e2bc095fbd2dc57361" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"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"
}