Every morning, thanks each customer who paid a Xero invoice yesterday and posts the day's total to Slack.

UsesGmailSlackXero

Thank customers for yesterday's Xero payments

A quick thank-you after a payment lands is good manners and good business. Every morning this finds the sales invoices Xero shows as paid in full yesterday.

Each customer gets a short thank-you naming the invoice and the amount, and your finance channel in Slack gets the total collected and how many invoices were paid.

Run every day at 09:00.Run every day at 09:00.
XeroSales invoices paid yesterdayList invoices. Save it as paid_invoices.Xero
For each invoice in paid_invoices.invoices:For each invoice in paid_invoices.invoices:
Only customers with an email address in XeroIf invoice.contact_email isn't blank
Yes
GmailThank the customerSend an email to invoice.contact_email. Subject: Thank you for your payment of invoice invoice.InvoiceNumberHi invoice.contact_name, Thank you for your payment of invoice.amount_paid_display for invoice invoice.InvoiceNumber, which we received on invoice.fully_paid_on_display. It is now paid in full. We really appreciate your business. Best regardsGmail
No
No steps
SlackPost yesterday's total to #financeSend message to channel.*Collected yesterday:* paid_invoices.total_paid_display Sales invoices paid in full: paid_invoices.countSlack