- For: treasurers and Gift Aid officers
- You get: a Gift Aid tab with the year’s totals and a Claim lines tab with every line, to check against the HMRC schedule
- Time: about ten minutes
- Scopes:
gift-aid:read, andgift-aid.people:readfor donor names and postcodes
1. Try the requests
A UK tax year is writtenYYYY-YY: 2025-26 runs from 6 April 2025 to 5 April 2026. Paste these into a terminal to see the demo group’s figures:
declaration: donations from people who signed a Gift Aid declaration. These go on the HMRC schedule with the donor’s name and postcode.gasds: small cash donations under the Gift Aid Small Donations Scheme. HMRC needs only the total.manual: donations the treasurer marked as eligible by hand.
2. Add the script
In your Google Sheet, choose Extensions → Apps Script. Delete what is there, paste the script below and choose Save.Code.gs
3. Add your key and run it
Choose Project Settings (the cog), then Script Properties → Add script property. Property:SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key. Then choose giftAidCheck and press Run.
4. Check it against the HMRC schedule
In Scoutworks, open Finance, choose Export Gift Aid Report for the same dates, and download the HMRC schedule. Then check:- The totals match. The Declaration donations on the Gift Aid tab equal the schedule’s total. The Small donations total is the figure for the GASDS part of the claim.
- Every declaration line has a donor and a postcode. HMRC rejects a line without them. The Check column flags any that are missing. It needs
gift-aid.people:read: without it, every donor column is empty and nothing is flagged. - Nothing is left out by mistake. If Left out because not yet reconciled is more than 0, some eligible donations are still waiting in the reconciliation inbox. They join the claim once reconciled. Reconcile them in Scoutworks and run the check again.
5. Switch to your group
Changeapi-demo.scoutworks.app to api.scoutworks.app, set TAX_YEAR, and replace the sandbox key with your own. The key needs gift-aid:read. Add gift-aid.people:read for the donor columns: without it they are empty, but the totals still work.
If something goes wrong
400 invalid_request:TAX_YEARmust look like2025-26.- The toast says there are too many donations for one claim: the summary’s
truncatedis true, because the year holds more than 5,000 donations of one kind. The figures are then too low. Contact us before you claim.