{
  "schemaVersion": 1,
  "generatedAt": "2026-09-08",
  "firm": "Tern Client Services",
  "client": {
    "companyId": "CO-03",
    "name": "Tern Events"
  },
  "totals": {
    "invoices": 3,
    "amount": "7200.00",
    "retainerApplied": "4000.00",
    "outstanding": "3200.00"
  },
  "settlementRule": "An invoice is settled from the retainer while a balance remains. Once the retainer reaches 0.00 the remainder is billed for payment.",
  "invoices": [
    {
      "invoice_id": "SVCINV-1",
      "project_id": "PROJECT-1",
      "project_name": "Website refresh",
      "client_id": "CO-03",
      "issue_date": "2026-09-01",
      "due_date": "2026-09-30",
      "amount": "1600.00",
      "retainer_applied": "1600.00",
      "cash_due": "0.00",
      "amount_paid": "1600.00",
      "outstanding": "0.00",
      "aging_bucket": "not yet due",
      "days_to_due": 22
    },
    {
      "invoice_id": "SVCINV-2",
      "project_id": "PROJECT-2",
      "project_name": "Service handbook",
      "client_id": "CO-03",
      "issue_date": "2026-09-01",
      "due_date": "2026-09-30",
      "amount": "2400.00",
      "retainer_applied": "2400.00",
      "cash_due": "0.00",
      "amount_paid": "2400.00",
      "outstanding": "0.00",
      "aging_bucket": "not yet due",
      "days_to_due": 22
    },
    {
      "invoice_id": "SVCINV-3",
      "project_id": "PROJECT-3",
      "project_name": "Booking setup",
      "client_id": "CO-03",
      "issue_date": "2026-09-01",
      "due_date": "2026-09-30",
      "amount": "3200.00",
      "retainer_applied": "0.00",
      "cash_due": "3200.00",
      "amount_paid": "0.00",
      "outstanding": "3200.00",
      "aging_bucket": "not yet due",
      "days_to_due": 22
    }
  ]
}
