Skip to main content
  • 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:read and accounting:read, plus expenses.people:read for who claimed
Most treasurers report to the trustees once a month. One section of that report is always the same: which expense claims came in, what was paid, and what is still waiting. This recipe builds that section in a Google Sheet. Run it on the first of the month and paste it into your report.

1. Try the request

Paste this into a terminal to see the claims the demo group received in October 2026:
Each claim has a 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:
  1. Claims received last month, with who claimed and where each one stands now.
  2. 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.
  3. 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

Change api-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.
See Errors for every code.