Home
cd ../playbooks
Finance & AccountingAdvanced

Invoice Processing Automation

Automate invoice generation, sending, tracking, and payment reconciliation across accounting platforms

10 minutes
By communitySource
#invoice#billing#accounting#automation#payments

You generate invoices in one tool, email them from another, track payments in a spreadsheet, and reconcile manually in your accounting software. It's the same 6-step dance every invoice, and at 50 invoices a month it's a part-time job.

Who it's for: small businesses spending too much time on invoicing, accountants automating client billing workflows, freelancers who forget to follow up on unpaid invoices, finance teams reconciling payments across multiple platforms, growing companies whose manual invoicing doesn't scale

Example

"Automate our invoicing from creation to payment reconciliation" → End-to-end workflow: generate invoice from project data, send via email with payment link, auto-remind at 30/60/90 days, mark paid when Stripe confirms, and sync to QuickBooks — triggered automatically by project completion

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Invoice Automation

Comprehensive invoice automation workflow for generating, sending, tracking, and reconciling invoices across multiple accounting platforms.

## Core Workflows

### 1. Invoice Generation

```
INVOICE CREATION FLOW:
┌─────────────────┐
│  Customer Data  │
└────────┬────────┘
         ▼
┌─────────────────┐
│  Line Items     │
│  - Products     │
│  - Services     │
│  - Quantities   │
└────────┬────────┘
         ▼
┌─────────────────┐
│  Apply Template │
│  - Branding     │
│  - Terms        │
│  - Tax rates    │
└────────┬────────┘
         ▼
┌─────────────────┐
│  Generate PDF   │
└─────────────────┘
```

### 2. Multi-Platform Integration

| Platform | Capabilities |
|----------|-------------|
| QuickBooks | Full CRUD, payments, reports |
| Xero | Invoices, contacts, bank feeds |
| FreshBooks | Time tracking, expenses, invoices |
| Stripe | Recurring, one-time, subscriptions |
| Wave | Free invoicing, receipts |
| Zoho Invoice | Multi-currency, templates |

### 3. Automated Workflows

**Auto-Invoice from Time Tracking:**
```yaml
trigger: weekly_timesheet_approved
actions:
  - aggregate_billable_hours
  - calculate_totals
  - generate_invoice
  - send_to_client
  - log_to_accounting
```

**Payment Reminder Sequence:**
```yaml
reminders:
  - days_before_due: 3
    template: friendly_reminder
  - days_after_due: 1
    template: payment_due
  - days_after_due: 7
    template: overdue_notice
  - days_after_due: 30
    template: final_notice
```

## Invoice Templates

### Standard Invoice Template

```markdown
## INVOICE

**Invoice Number:** INV-{YYYY}{MM}-{####}
**Date:** {issue_date}
**Due Date:** {due_date}

### Bill To:
{customer_name}
{customer_address}
{customer_email}

### Items:
| Description | Qty | Unit Price | Amount |
|-------------|-----|------------|--------|
| {item_1}    | {q} | ${price}   | ${amt} |
| {item_2}    | {q} | ${price}   | ${amt} |

**Subtotal:** ${subtotal}
**Tax ({tax_rate}%):** ${tax_amount}
**Total Due:** ${total}

### Payment Methods:
- Bank Transfer: {bank_details}
- Credit Card: {payment_link}
- PayPal: {paypal_email}
```

### Recurring Invoice Setup

```yaml
recurring_invoice:
  customer_id: "cust_123"
  frequency: monthly
  day_of_month: 1
  items:
    - description: "Monthly Retainer"
      quantity: 1
      unit_price: 5000
  auto_send: true
  payment_terms: net_30
  reminder_enabled: true
```

## Payment Tracking

### Status Dashboard

```
PAYMENT STATUS OVERVIEW:
┌──────────────────────────────────────────┐
│  Outstanding    │ $45,000  │ 12 invoices │
│  Overdue        │ $8,500   │ 3 invoices  │
│  Paid (30 days) │ $125,000 │ 28 invoices │
│  Pending        │ $15,000  │ 5 invoices  │
└──────────────────────────────────────────┘
```

### Aging Report

```
ACCOUNTS RECEIVABLE AGING:
┌─────────────┬──────────┬─────────┐
│ Period      │ Amount   │ Count   │
├─────────────┼──────────┼─────────┤
│ Current     │ $25,000  │ 8       │
│ 1-30 days   │ $12,000  │ 4       │
│ 31-60 days  │ $5,000   │ 2       │
│ 61-90 days  │ $2,500   │ 1       │
│ 90+ days    │ $1,000   │ 1       │
└─────────────┴──────────┴─────────┘
```

## Reconciliation Workflows

### Bank Feed Matching

```yaml
reconciliation_rules:
  - match_type: exact_amount
    tolerance: 0
    auto_match: true
  - match_type: invoice_reference
    field: memo
    auto_match: true
  - match_type: customer_name
    fuzzy_match: 0.9
    auto_match: false
    flag_for_review: true
```

### Multi-Currency Support

```yaml
currency_settings:
  base_currency: USD
  supported:
    - EUR
    - GBP
    - JPY
    - CNY
  exchange_rate_source: openexchangerates
  update_frequency: daily
  auto_convert: true
```

## API Integration Examples

### QuickBooks Invoice Creation

```javascript
const invoice = {
  CustomerRef: { value: "123" },
  Line: [
    {
      DetailType: "SalesItemLineDetail",
      Amount: 1000,
      SalesItemLineDetail: {
        ItemRef: { value: "1" },
        Qty: 10,
        UnitPrice: 100
      }
    }
  ],
  DueDate: "2024-02-15",
  EmailStatus: "NeedToSend"
};
```

### Stripe Invoice

```javascript
const invoice = await stripe.invoices.create({
  customer: 'cus_xxx',
  collection_method: 'send_invoice',
  days_until_due: 30,
  auto_advance: true
});

await stripe.invoiceItems.create({
  customer: 'cus_xxx',
  invoice: invoice.id,
  price: 'price_xxx',
  quantity: 1
});

await stripe.invoices.sendInvoice(invoice.id);
```

## Best Practices

1. **Consistent Numbering**: Use sequential, searchable invoice numbers
2. **Clear Terms**: Always specify payment terms and accepted methods
3. **Timely Sending**: Send invoices immediately upon delivery
4. **Automated Reminders**: Set up reminder sequences for overdue invoices
5. **Regular Reconciliation**: Match payments to invoices weekly
6. **Backup Records**: Maintain copies in multiple systems

## Common Triggers

| Trigger | Action |
|---------|--------|
| Project completed | Generate final invoice |
| Timesheet approved | Bill for hours |
| Subscription renewal | Create recurring invoice |
| Payment received | Update status, send receipt |
| Invoice overdue | Send reminder |
| Month end | Generate aging report |
README.md

What This Does

Comprehensive invoice automation workflow for generating, sending, tracking, and reconciling invoices across multiple accounting platforms.


Quick Start

Step 1: Create a Project Folder

mkdir -p ~/Documents/InvoiceAutomation

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Documents/InvoiceAutomation/

Step 3: Start Working

cd ~/Documents/InvoiceAutomation
claude

Best Practices

  1. Consistent Numbering: Use sequential, searchable invoice numbers
  2. Clear Terms: Always specify payment terms and accepted methods
  3. Timely Sending: Send invoices immediately upon delivery
  4. Automated Reminders: Set up reminder sequences for overdue invoices
  5. Regular Reconciliation: Match payments to invoices weekly
  6. Backup Records: Maintain copies in multiple systems

$Related Playbooks

Finance & Accounting

Professional Invoice Generator

Create professional invoices with proper formatting for freelancers and small businesses. Supports multiple currencies and tax calculations.

10 minutes
Advanced
Finance & Accounting

Invoice Organizer & Tracker

Organize, categorize, and track invoices and receipts

10 minutes
Intermediate
Finance & Accounting

Invoice Template Designer

Generate professional PDF invoices from templates

10 minutes
Intermediate
Finance & Accounting

Minimalist Pricing

Set an initial price, pick cost-based vs. value-based, and plan your tier structure — anchored by the rule that free kills more businesses than high prices do.

5 minutes
Beginner
Finance & Accounting

Invoice & Tax Document Organizer

Automatically sort, rename, and organize invoices, receipts, and tax documents with consistent naming for easy tax preparation.

5 minutes
Beginner
Finance & Accounting

QuickBooks Automation

Automate QuickBooks accounting workflows including invoicing, expenses, reporting, and bank reconciliation

10 minutes
Advanced
Finance & Accounting

Budget Scenario Modeler

Model multiple budget scenarios side-by-side with trade-off analysis, sensitivity testing, and executive-ready recommendations.

15 minutes
Intermediate
Finance & Accounting

Financial Analysis & Trend Interpreter

Analyze financial data to identify trends, anomalies, and actionable insights with executive-ready commentary.

15 minutes
Intermediate
Finance & Accounting

S&P Global Earnings Preview Generator

Generate concise 4-5 page equity research earnings previews for any public company using S&P Capital IQ data via Kensho MCP.

5 minutes
Advanced
Finance & Accounting

S&P Global Weekly Funding Digest

Generate a polished one-page PowerPoint slide summarizing key takeaways from recent funding rounds and capital markets activity across watched sectors.

5 minutes
Advanced
Finance & Accounting

S&P Global Company Tear Sheet Generator

Generate professional company tear sheets and one-pagers using S&P Capital IQ data, tailored to equity research, M&A, corporate development, or sales audiences.

5 minutes
Intermediate
Finance & Accounting

SOX Testing Workpaper

SOX sample selections, testing workpapers, and internal control assessments

10 minutes
Advanced

Browse all Finance & Accounting playbooks →