- For: treasurers
- You get: an Expenses tab with last month’s claims, the money paid out by category, and the claims still waiting
- Time: about ten minutes
- Scopes:
expenses:readandaccounting:read, plusexpenses.people:readfor who claimed
1. Try the request
Paste this into a terminal to see the claims the demo group received in October 2026:status worked out from its lines, a total, and its lines. Each line has its own status, and a settledAt once it is paid.
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 expensesReport and press Run.
The Expenses tab has three parts:
- Claims received last month, with who claimed and where each one stands now.
- Paid out by category: every line paid last month, added up by category. A claim submitted in an earlier month but paid last month counts here.
- Still waiting: every claim with lines not yet approved, or approved but not yet paid, whenever it came in. The figure counts only those lines, not lines already paid or rejected.
4. Run it on the first of each month
In the script editor, choose Triggers (the clock), then Add Trigger. Function:expensesReport. Event source: Time-driven. Type: Month timer. Day: 1. Time: 6am to 7am. Choose Save.
5. Switch to your group
Changeapi-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. The key needs expenses:read for the claims and accounting:read for category names. Add expenses.people:read to fill the Who column: without it the column is empty and the report names nobody, which suits a report that leaves the meeting.
If something goes wrong
- The Who column is empty: the key does not have
expenses.people:read. That may be what you want. - No category in the paid list: a line was paid before anyone chose its category. Choose one in Scoutworks.