Every morning, thanks each customer who paid a Xero invoice yesterday and posts the day's total to Slack.
Uses
Gmail
SlackXero
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.
paid_invoices.XeroFor 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 blankYes
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 regardsGmailNo
No steps
paid_invoices.total_paid_display
Sales invoices paid in full: paid_invoices.countSlack