Home
cd ../playbooks
FinanceIntermediate

Contract & Invoice Cross-Reference

Verify invoices against contract terms, identify discrepancies, and find missed billing opportunities.

10 minutes

You're paying invoices that don't match your contract terms but you'd never know — because cross-referencing 50 invoices against their respective contracts by hand takes longer than just paying them.

Who it's for: accounts payable teams verifying vendor invoices, freelancers tracking client billing, finance managers auditing spend, procurement teams monitoring contract compliance, CFOs looking for revenue leaks

Example

"Cross-reference these 50 invoices against our vendor contracts" → Every invoice verified against contract rates, 7 overbilling discrepancies flagged ($12K total), 3 missed billing opportunities identified, and outstanding amounts tracked by client

CLAUDE.md Template

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

# Contract & Invoice Cross-Reference

## Your Role
You verify invoices against contract terms, identify billing discrepancies, find missed billing opportunities, and help ensure accurate financial tracking.

## Matching Framework

### Contract Database
```markdown
## Contract Registry

### Active Contracts
| Client | Contract # | Value | Terms | Start | End |
|--------|------------|-------|-------|-------|-----|
| Client A | C-2024-001 | $60K | Monthly | Jan 1 | Dec 31 |
| Client B | C-2024-002 | $120K | Quarterly | Mar 1 | Feb 28 |
| Client C | C-2024-003 | Hourly | Net 30 | Ongoing | — |

### Contract Details: [Client]
**Contract #:** [Number]
**Type:** [Fixed / Hourly / Retainer / Project]
**Value:** $[Amount]
**Payment Terms:** [Terms]

**Billing Schedule:**
| Period | Amount | Due Date |
|--------|--------|----------|
| Jan | $5,000 | Jan 15 |
| Feb | $5,000 | Feb 15 |

**Rate Card:**
| Service | Rate | Unit |
|---------|------|------|
| Consulting | $200 | Hour |
| Development | $175 | Hour |
| Support | $150 | Hour |
```

### Invoice Tracking
```markdown
## Invoice Register

### Sent Invoices
| Invoice # | Client | Amount | Sent | Due | Status |
|-----------|--------|--------|------|-----|--------|
| INV-001 | Client A | $5,000 | Jan 1 | Jan 15 | Paid |
| INV-002 | Client A | $5,000 | Feb 1 | Feb 15 | Pending |
| INV-003 | Client B | $30,000 | Jan 1 | Jan 31 | Overdue |

### Outstanding
| Client | Amount | Days Overdue |
|--------|--------|--------------|
| Client B | $30,000 | 15 |
```

## Verification Checks

```markdown
## Invoice Verification: [Invoice #]

### Invoice Details
- **Client:** [Name]
- **Amount:** $[Amount]
- **Period:** [Date range]
- **Invoice Date:** [Date]

### Contract Match
- **Contract:** [Contract #]
- **Contract Rate:** $[Rate]
- **Contract Terms:** [Terms]

### Line Item Verification
| Line Item | Billed | Contract Rate | Match |
|-----------|--------|---------------|-------|
| Consulting (10 hrs) | $2,000 | $200/hr | ✅ |
| Development (5 hrs) | $875 | $175/hr | ✅ |
| "Rush fee" | $500 | Not in contract | ⚠️ |

### Findings
- ✅ Total hours match timesheet
- ✅ Rates match contract
- ⚠️ Rush fee not in contract terms
- ❌ Missing expense reimbursement per contract

### Recommendation
Invoice valid with exceptions. Add expense reimbursement.
```

## Discrepancy Report

```markdown
## Monthly Discrepancy Report: [Month]

### Summary
| Category | Count | Value |
|----------|-------|-------|
| Correct invoices | X | $X |
| Underbilled | X | $X |
| Overbilled | X | $X |
| Disputed | X | $X |

### Discrepancies Found

#### Underbilling
| Client | Missed Item | Amount |
|--------|-------------|--------|
| Client A | Jan expenses | $500 |
| Client C | 5 hours unbilled | $750 |

**Total Missed Revenue:** $1,250

#### Overbilling
| Client | Issue | Amount |
|--------|-------|--------|
| Client B | Wrong rate applied | $200 |

**Total Overbilled:** $200

### Action Items
- [ ] Invoice Client A for January expenses
- [ ] Invoice Client C for 5 additional hours
- [ ] Issue credit to Client B for $200
```

## Client Summary

```markdown
## Client Billing Summary: [Client]

### Contract vs Actual
| Metric | Contract | YTD Actual | Variance |
|--------|----------|------------|----------|
| Revenue | $60,000 | $50,000 | -$10,000 |
| Hours | 300 | 280 | -20 |
| Avg Rate | $200 | $179 | -$21 |

### Invoice History
| Month | Contracted | Invoiced | Paid | Variance |
|-------|------------|----------|------|----------|
| Jan | $5,000 | $5,000 | $5,000 | $0 |
| Feb | $5,000 | $4,500 | — | -$500 |

### Outstanding Items
- Pending invoices: $4,500
- Overdue: $0
- Unbilled work: $500

### Notes
- Feb invoice missing 2.5 hours from timesheet
- Client disputes rush fee from Jan
```

## Automation Rules

```markdown
## Invoice Validation Rules

### Auto-Approve
- Amount matches contract exactly
- All line items in rate card
- Within normal variance (±5%)

### Flag for Review
- Amount varies >5% from expected
- New line items not in contract
- First invoice for new contract
- Payment terms don't match

### Reject
- Amount exceeds contract value
- Rates exceed contract rates
- Invoice for expired contract
- Duplicate invoice number
```

## Instructions

1. Upload contracts and invoices (or describe them)
2. I'll create a matching database
3. Verify invoices against terms
4. Identify discrepancies
5. Generate reports and action items

## Commands

```
"Verify this invoice against the contract"
"What should Client A be billed this month?"
"Find all billing discrepancies for [period]"
"Am I missing any billings?"
"Generate client billing summary"
"What's outstanding for [client]?"
```

## Best Practices

1. **Verify before sending** - Catch errors early
2. **Track variances** - Investigate trends
3. **Document disputes** - Keep records
4. **Regular reconciliation** - Monthly at minimum
5. **Update contracts** - When terms change
README.md

What This Does

Matches invoices to contract terms to verify accuracy. Finds underbilling (missed revenue), overbilling (errors), and tracks outstanding amounts by client.

Prerequisites

  • Claude Code installed
  • Contract information
  • Invoice records

Setup Instructions

Step 1: Download the Template

Download the CLAUDE.md template below and save it to your finance folder.

Step 2: Create Contract Registry

Document active contracts:

# Active Contracts

| Client | Value | Terms | Rates |
|--------|-------|-------|-------|
| Client A | $60K/yr | Monthly | $200/hr |

Step 3: Start Matching

Verify an invoice:

Verify this invoice against Client A's contract

Example Usage

"What should [client] be billed this month?"
"Find all billing discrepancies"
"Am I missing any billings?"
"Generate client billing summary"
"What's outstanding?"

What Gets Checked

  • Rates match contract
  • Hours/units accurate
  • All billable items included
  • Payment terms correct
  • No duplicates

Best Practices

  1. Verify before sending - Catch errors early
  2. Track variances - Investigate patterns
  3. Regular reconciliation - Monthly minimum
  4. Update contracts - When terms change

$Related Playbooks

Finance

Cryptocurrency Analysis Report

Analyze cryptocurrency projects with tokenomics, on-chain metrics, and market analysis. Generate comprehensive crypto research reports.

10 minutes
Intermediate
Finance

DCF Valuation Model Builder

Build Discounted Cash Flow (DCF) valuation models. Calculate intrinsic value with customizable assumptions. Generate professional valuation reports.

10 minutes
Advanced
Finance

Expense Report Auditor

Review expense reports for policy compliance, flag issues, and ensure audit-readiness.

10 minutes
Intermediate
Finance

Financial Data Collector

Collect real financial data for any US public company from free sources (yfinance) into structured JSON — market data, historical financials, WACC inputs, and estimates — ready for DCF and comps.

10 minutes
Intermediate
Finance

Financial Modeling Assistant

Build integrated financial models with 3-statement projections. Create income statement, balance sheet, and cash flow models with proper linkages.

10 minutes
Advanced
Finance

Financial Analyst Toolkit

Run DCF valuations, financial statement analysis, ratio analysis, comparable company analysis, budget variance reporting, and scenario modeling from your local data.

15 minutes
Advanced
Finance

Investment Memo Writer

Write professional investment memorandums for VC, PE, or public market investments. Structure thesis, risks, and recommendations clearly.

10 minutes
Advanced
Finance

Multi-Agent Financial Planner

Build a virtual financial advisory team with specialized agents for budgeting, retirement planning, and investment strategy that analyze your finances and create actionable plans.

15 minutes
Intermediate
Finance

Multi-Card Expense Tracker

Combine transactions from multiple cards, categorize expenses, match receipts, and generate expense reports.

10 minutes
Intermediate
Finance

Scientific Edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional...

10 minutes
Intermediate
Finance

Scientific Fred Economic Data

Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources. Access GDP, unemployment, inflation, interest rates, exchange rates, housing, and regional data. Use for macroeconomic analysis, financial research...

5 minutes
Beginner
Finance

Scientific Hedgefundmonitor

Query the OFR (Office of Financial Research) Hedge Fund Monitor API for hedge fund data including SEC Form PF aggregated statistics, CFTC Traders in Financial Futures, FICC Sponsored Repo volumes, and FRB SCOOS dealer financing terms. Access time ...

10 minutes
Intermediate

Browse all Finance playbooks →