Weekly
See the week's payments every Friday
A Friday email lists the payments Xero recorded this week and their total.
- Runs
- Weekly
- Apps
- Xero
- AI
- Not needed
- Access
- accounting.transactions.read
Send this to your assistant
Create a ClickRuntime automation: every Friday at 5pm, email me the payments received in Xero since Monday with the contact, invoice and total.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
For a business with many small customers, the money arriving each week is spread over dozens of payments. An owner checking the bank account sees a list of transfers but not what they relate to, and the bookkeeper totals it up once a month. Weekly cash-in is the quickest health indicator of the business, yet it is calculated rarely and never in the same way.
Every week, payments recorded in Xero since a given date are fetched and totalled, and the summary is emailed to you with the number of payments, their combined value and the individual payments. It reflects what has been applied to invoices in Xero, not what merely appeared in the bank.
Owners who manage the business week by week, and part-time finance staff preparing a Monday briefing, will find it handy.
What you get out of it
Weekly cash-in is a number you know
Seeing that payments totalled $18,400 against $24,000 the week before gives you a quick pulse of the business without opening a report. A number you see every week becomes something you can judge and act on.
Payments are tied to invoices
The list shows payments as recorded against customer invoices, which is more meaningful than a bank line and helps you check that money was allocated correctly. Payments tied to invoices make it easier to spot misallocated or missing money.
Slow weeks are spotted early
A week with unusually few payments can mean a large customer is late or a billing run was missed, which prompts a look before the month is over. Early warning on quiet weeks lets you chase late payers before the month is out.
Forecasting gets a real input
Having actual weekly receipts to hand lets you compare them with your cash forecast and adjust the next month's plan on facts, not hopes. Real receipts make a forecast more believable and easier to adjust.
A simple record for the bookkeeper
Forwarding the weekly summary gives the bookkeeper context for unusual items when reconciling, so there are fewer queries about unidentified deposits later. That context helps clear deposits quickly and keeps month-end work under control.
How it works
What happens, step by step
Every Friday ClickRuntime gets the payments Xero recorded since the start of the week.
It lists each payment with the customer and invoice number, and adds up the total.
The list and the week's total arrive in your inbox as one email.
Before it runs live
- Connect Xero
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Xero steps into one automation
Under the hood
The code that runs this automation
from datetime import date, timedelta
from clickruntime import on_trigger, credentials, http, notify
API = "https://api.xero.com/api.xro/2.0"
def xero_headers():
token = credentials.connection("xero", "work")
tenant = http.get("https://api.xero.com/connections", headers={"Authorization": f"Bearer {token}"}).json()[0]["tenantId"]
return {"Authorization": f"Bearer {token}", "xero-tenant-id": tenant, "Accept": "application/json"}
@on_trigger
def run(event):
monday = date.today() - timedelta(days=date.today().weekday())
where = f"Date>=DateTime({monday.year},{monday.month},{monday.day})"
payments = http.get(f"{API}/Payments", headers=xero_headers(), params={"where": where}).json()["Payments"]
lines = [f"{p['Invoice']['Contact']['Name']} - {p['Invoice']['InvoiceNumber']}: {p['Amount']:,.2f}" for p in payments]
total = sum(p["Amount"] for p in payments)
notify.email_me(f"Payments received since {monday:%d %b}: {total:,.2f}", "\n".join(lines) or "No payments this week.")
return {"payments": len(payments), "total": total}FAQ
Common questions
Does it include refunds and credit note allocations?
What does since a date mean here?
Can I see payments by customer?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get overdue invoices in Slack by age
Each morning Slack lists invoices overdue by 7, 14 and 30 days, without repeating ones already flagged at that stage.
See how it worksGet a Monday list of bills falling due
You start the week knowing which supplier bills need paying in the next seven days.
See how it worksCompare last month's P&L with the month before
On the 1st you get profit and loss for the previous two months side by side.
See how it worksKeep exploring
Set up “See the week's payments every Friday” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.