InvoiceGuard
Freelancer payment enforcement: deposit links tied to a contract with a late-fee clause — then automated, escalating collections.
Solo freelancers don't get paid. A Kaplan Group report (April 2026) found 85% of freelancers experience late payment; a Freelancers Union survey found 91% have experienced late/overdue payments, with 54% waiting 3+ months. InvoiceGuard's wedge:
- Before work starts: generate a contract with a late-fee clause, create a Stripe deposit payment link. The client acknowledges the contract by accepting (paying) the deposit link.
- After the due date: an automated 3-stage email escalation — day-1 polite nudge → day-7 firm reminder → day-15 formal notice quoting the late-fee clause (also sent as an SMS/WhatsApp message when Twilio messaging is configured) — until a Stripe webhook marks the invoice paid.
Local-first (SQLite), open-source (Apache-2.0), works alongside your existing invoicing tools via Stripe. No platform switch required.
Honest scope: contracts are signed electronically in the browser (typed name + drawn signature, SHA-256 hash of the signed text stored as tamper evidence) — a captured signature, not a qualified third-party e-signature service. See Limits of v1.
5-minute quickstart
0. Install
pip install invoiceguard
# or, from a local clone: pip install -r requirements.txt && pip install -e .
invoiceguard init # creates ~/.invoiceguard (config template, DB, email templates)
1. Add your Stripe test key (~2 min)
- Go to https://dashboard.stripe.com/test/apikeys (toggle Test mode on).
- Developers → API keys → Create secret key, copy the
sk_test_...value. - Paste it into
~/.invoiceguard/config.yamlasstripe_secret_key, or export it:export INVOICEGUARD_STRIPE_SECRET_KEY="sk_test_..."
2. Add your SMTP details (~2 min) — how dunning emails are sent. In ~/.invoiceguard/config.yaml:
smtp:
host: "smtp.gmail.com"
port: 587
username: "you@example.com"
password: "YOUR_GMAIL_APP_PASSWORD" # or export INVOICEGUARD_SMTP_PASSWORD
from_addr: "you@example.com"
use_tls: true
(Gmail: create an App Password at Google Account → Security → 2-Step Verification → App passwords. Any SMTP provider works.)
3. Create a client, project, and deposit link (~1 min)
invoiceguard client add --name "Acme Corp" --email "billing@acme.com"
invoiceguard project create --client "Acme Corp" --title "Website redesign" \
--amount 2000 --deposit-pct 50 --late-fee-pct 1.5 --ack
# ^ generates the contract markdown (with the late-fee clause) and records
# client acknowledgment (--ack = client accepted the deposit link)
invoiceguard invoice create --project 1 --kind deposit
# => invoice #1 (deposit): $1,000.00
# pay link: https://buy.stripe.com/...
# due: 2026-10-07 status: sent
Send the pay link to the client. That's the whole pre-work flow.
4. Let collections run themselves
# add to your crontab (runs the dunning scan every morning at 9:00):
0 9 * * * /path/to/venv/bin/invoiceguard check-due >> ~/.invoiceguard/check-due.log 2>&1
invoiceguard check-due scans invoices past their due date and sends the next escalation stage (day1 → day7 → day15), using the editable markdown templates in ~/.invoiceguard/templates/. It's idempotent — a stage is never sent twice for the same invoice. Per-client dunning policies (v0.7.0) let each client override the 1/7/15 thresholds or disable stages entirely (invoiceguard client set-dunning-policy) — useful for VIP clients or agency workspaces with different collections rhythms. When the client pays, Stripe's webhook flips the invoice to paid automatically. An invoice whose client has no email on file is skipped with a clear reason (one email-less client no longer crashes the whole run); add the email with invoiceguard client set-email and the stage goes out on the next run. Likewise, if one invoice's email send fails (transient SMTP error), the failure is isolated — reported as a failed line, nothing recorded for that invoice, and the rest of the batch still goes out; the stage retries on the next run.
5. Stripe webhook (so payments mark invoices paid)
- In the Stripe dashboard: Developers → Webhooks → Add endpoint.
- URL:
https://YOUR-HOST/webhooks/stripe(the dashboard app serves this; see below). - Select event:
checkout.session.completed. - Copy the Signing secret (
whsec_...) intostripe_webhook_secretin the config (or exportINVOICEGUARD_STRIPE_WEBHOOK_SECRET). The dashboard webhook reads the secret from the env var first, then the config file, then the legacySTRIPE_WEBHOOK_SECRETenv var.
⭐ If InvoiceGuard helped you, a star means a lot — it helps other developers find the project.
CLI reference
| Command | What it does |
|---|---|
invoiceguard init |
Create ~/.invoiceguard/ (config template, DB, email templates) |
invoiceguard client add --name N --email E [--phone +15551234567] |
Add a client (phone enables SMS/WhatsApp escalation) |
invoiceguard client set-phone ID [--phone +15551234567] |
Set or clear a client's phone number |
invoiceguard client set-email ID [--email billing@acme.com] |
Set or clear a client's email address (dunning) |
invoiceguard client set-dunning-policy ID [--day1 N] [--day7 N] [--day15 N] [--reset] |
Per-client dunning thresholds (v0.7.0); 0 disables a stage |
invoiceguard client list |
List clients (shows [dunning ...] overrides) |
invoiceguard freelancer add --name N [--email E] [--phone +15551234567] [--split-pct 70] |
Add a freelancer to the agency roster (v0.8.0) — optional revenue-split % of collected earnings (v0.11.0) |
invoiceguard freelancer set-split ID --split-pct 70 |
Set a freelancer's revenue-split % of collected earnings (v0.11.0) |
invoiceguard freelancer set-schedule ID --cadence weekly|monthly --day N / clear-schedule ID |
Set or clear a freelancer's payout schedule — weekly on an ISO weekday 1–7, monthly on a day of month 1–31 (v0.15.0) |
invoiceguard freelancer set-email ID [--email E] / set-phone ID [--phone P] / list [--as-of DATE] |
Manage or list freelancers (v0.8.0; payout timing on each roster line in v0.25.0) |
invoiceguard payout record --freelancer ID --amount 250 [--currency USD] [--paid-at DATE] [--method M] [--note N] |
Record what the agency paid a freelancer (bookkeeping only; v0.10.0) — refused when it exceeds collected-minus-already-paid for that freelancer+currency |
invoiceguard payout list [--freelancer ID] [--as-of DATE] [--csv PATH] |
List recorded payouts, newest first (v0.10.0); each freelancer's newest payout line also carries payout timing (v0.27.0); CSV export v0.34.0 — --csv PATH, one row per payout with payout_status / payout_date columns on the newest row per freelancer; read-only |
invoiceguard payout suggest [--freelancer ID] [--as-of DATE] [--csv PATH] |
Suggest what to pay each freelancer next, per currency — still-due split share, or what the agency still holds when no split is set (v0.12.0; timing v0.23.0; CSV export v0.36.0 — --csv PATH, one row per suggestion per currency with the still-due share or still-held balance, collected, paid out, split, and payout_status / payout_date; read-only) |
invoiceguard payout settle [--freelancer ID] [--currency CUR] [--method M] [--paid-at DATE] [--dry-run] |
Record every suggested payout at once through the payout guard; no-split freelancers skipped, --dry-run writes nothing, second settle is a no-op (v0.13.0; bookkeeping only) |
invoiceguard payout schedule [--freelancer ID] [--as-of DATE] [--csv PATH] |
Each freelancer's payout schedule and next payout date, earliest first, unscheduled listed as no schedule set (v0.15.0; payout timing added in v0.24.0; CSV export v0.37.0 — --csv PATH, one row per freelancer with the same columns the text lines print plus payout_status / payout_date, read-only) |
invoiceguard payout due [--freelancer ID] [--as-of DATE] [--within-days N] [--csv PATH] |
The pay run: scheduled freelancers whose next payout date falls on the pay-run date (or within N days after it) and who still have an actionable payout — still-due split share, or still-held balance when no split is set (v0.16.0; CSV export v0.35.0 — --csv PATH, one row per due freelancer per currency with the still-due share or still-held balance, schedule, and next payout date; read-only) |
invoiceguard payout settle-due [--freelancer ID] [--as-of DATE] [--within-days N] [--currency CUR] [--dry-run] |
Record the pay run payout due lists — one payout per due row through the same guard; freelancers due next week keep their suggestion until their own pay run (v0.17.0) |
invoiceguard payout overdue [--freelancer ID] [--as-of DATE] [--csv PATH] |
Missed pay runs: scheduled freelancers whose most recent payout date passed with an actionable payout still owed and nothing recorded since that date (v0.18.0; CSV export v0.35.0 — --csv PATH, one row per overdue freelancer per currency with the still-due share or still-held balance, schedule, missed payout date, and next payout date; read-only) |
invoiceguard payout settle-overdue [--freelancer ID] [--as-of DATE] [--currency CUR] [--dry-run] |
Record the missed pay runs payout overdue lists — one payout per overdue row through the same guard; due-today freelancers stay in settle-due (v0.19.0) |
invoiceguard agency summary [--freelancer ID] [--as-of DATE] [--csv PATH] |
Whole-book agency view, per freelancer per currency — billed, collected, outstanding, paid out, still owed, suggested payout — plus per-currency totals and payout timing per currency (due / overdue / upcoming / settled / no schedule, with next or missed payout date) and the same timing rolled up onto each TOTALS line (most urgent status, freelancer count, earliest missed/next date) (v0.14.0; timing v0.20.0; totals timing v0.21.0; CSV export v0.33.0 — --csv PATH, one row per freelancer per currency plus TOTALS rows, with payout_status / payout_date columns; read-only) |
invoiceguard project create --client N --title T --amount 2000 [--deposit-pct 50] [--late-fee-pct 1.5] [--late-fee-grace-days 15] [--ack] |
Create project + generate contract markdown |
invoiceguard project ack ID |
Record client acknowledgment of the contract (deposit-link path) |
invoiceguard project sign-request ID |
Create a one-time e-signature link for the contract (/sign/<token>) |
invoiceguard project sign-status ID |
Show acknowledgment + signature state: deposit-link ack, pending/signed, signer, timestamp, contract hash |
invoiceguard project list |
List projects |
invoiceguard invoice create --project ID --kind deposit|milestone|final [--amount X] [--due-days 7] |
Create a Stripe payment link (status → sent) |
invoiceguard invoice list [--freelancer ID] |
List invoices (shows the attributed freelancer) |
invoiceguard invoice assign ID --freelancer ID / --none |
Attribute an invoice to a freelancer, or clear the attribution (v0.8.0; bookkeeping only) |
invoiceguard invoice record-payment ID --amount 250 [--note "check #1"] [--method bank] |
Record a (partial) payment; clearing the balance marks the invoice paid, otherwise it becomes partially-paid |
invoiceguard invoice mark-paid ID |
Manually mark paid (records the full outstanding balance in the payment ledger) |
invoiceguard invoice void ID |
Void an invoice |
invoiceguard invoice notify ID [--channel sms|whatsapp] [--dry-run] |
Send an SMS/WhatsApp payment reminder now (--dry-run prints the message without sending) |
invoiceguard invoice report [--as-of DATE] [--freelancer ID] [--csv PATH] [--payments-csv PATH] |
Read-only receivables report: aging buckets, oldest debt first, per-client and per-freelancer totals, accrued late fees; CSV export for accounting (- prints to stdout), incl. trailing payout_status / payout_date columns per row |
invoiceguard check-due |
Run the dunning scan (cron target) |
invoiceguard dashboard [--port 8000] |
Launch the local web dashboard (http://127.0.0.1:8000) — invoice list, Payouts section with per-freelancer payout timing (?as_of= projects it), detail with escalation timeline and the assigned freelancer's payout timing, Stripe webhook receiver |
Kind defaults: deposit = deposit_pct% of project total; final = remainder after deposit; milestone = full amount unless --amount overrides.
Configuration
~/.invoiceguard/config.yaml (override path with $INVOICEGUARD_CONFIG; DB with $INVOICEGUARD_DB):
stripe_secret_key: "sk_test_..." # or INVOICEGUARD_STRIPE_SECRET_KEY
stripe_webhook_secret: "whsec_..." # or INVOICEGUARD_STRIPE_WEBHOOK_SECRET
smtp:
host: "smtp.gmail.com"
port: 587
username: "you@example.com"
password: "APP_PASSWORD" # or INVOICEGUARD_SMTP_PASSWORD
from_addr: "you@example.com"
use_tls: true
app:
base_url: "http://localhost:8000"
# Optional SMS/WhatsApp escalation via Twilio (day-15 + `invoice notify`):
# messaging:
# channel: "sms" # or "whatsapp"
# account_sid: "AC_..." # or INVOICEGUARD_TWILIO_ACCOUNT_SID
# auth_token: "your-auth-token" # or INVOICEGUARD_TWILIO_AUTH_TOKEN
# from_number: "+10000000000" # or INVOICEGUARD_TWILIO_FROM_NUMBER
Keys come only from config/env — never hardcoded, never committed (.gitignore covers config.yaml, .env, *.key, and the local DB).
Dunning templates
~/.invoiceguard/templates/day1.md, day7.md, day15.md — plain markdown with {variables}:
{client_name} {project_title} {amount} {paid} {outstanding} {due_date} {days_overdue} {late_fee_pct} {pay_url}
{amount} is the original invoice amount; {paid} / {outstanding} track the payment ledger so a client who already paid part of the bill sees their remaining balance. Edit them freely; check-due picks them up on the next run. Stage timing: day1 fires at ≥1 day overdue, day7 at ≥7, day15 at ≥15 — earliest unsent due stage wins, one email per invoice per run. Invoices stay in dunning until the outstanding balance is zero (sent/overdue/partially-paid with due_date in the past).
SMS / WhatsApp escalation (v0.5.0): when the messaging: config section is set (Twilio credentials + from-number) and the client has a phone number on file, the day-15 stage also goes out as a short SMS or WhatsApp message — same amounts, pay link included. Sends are recorded in the message_events ledger, at most once per stage per invoice, and a failed message never blocks the email. invoiceguard invoice notify <id> sends the same reminder on demand (--dry-run previews it). Without messaging config, dunning stays email-only.
Database schema (contract with the dashboard app)
SQLite, default ~/.invoiceguard/invoiceguard.db. The dashboard app reads/writes these exact tables — column names and types are frozen; additive migrations only:
CREATE TABLE clients(id INTEGER PRIMARY KEY, name TEXT NOT NULL, email TEXT, phone TEXT, created_at TEXT NOT NULL);
CREATE TABLE projects(id INTEGER PRIMARY KEY, client_id INTEGER NOT NULL REFERENCES clients(id), title TEXT NOT NULL, amount_cents INTEGER NOT NULL, currency TEXT NOT NULL DEFAULT 'USD', deposit_pct REAL NOT NULL DEFAULT 50.0, late_fee_pct REAL NOT NULL DEFAULT 1.5, late_fee_grace_days INTEGER NOT NULL DEFAULT 15, contract_md TEXT NOT NULL, contract_ack INTEGER NOT NULL DEFAULT 0, contract_ack_at TEXT, created_at TEXT NOT NULL);
CREATE TABLE invoices(id INTEGER PRIMARY KEY, project_id INTEGER NOT NULL REFERENCES projects(id), kind TEXT NOT NULL, amount_cents INTEGER NOT NULL, currency TEXT NOT NULL DEFAULT 'USD', status TEXT NOT NULL DEFAULT 'draft', stripe_url TEXT, stripe_session_id TEXT, due_date TEXT, sent_at TEXT, paid_at TEXT, created_at TEXT NOT NULL);
CREATE TABLE dunning_events(id INTEGER PRIMARY KEY, invoice_id INTEGER NOT NULL REFERENCES invoices(id), stage TEXT NOT NULL, sent_at TEXT NOT NULL);
CREATE TABLE payments(id INTEGER PRIMARY KEY, invoice_id INTEGER NOT NULL REFERENCES invoices(id), amount_cents INTEGER NOT NULL CHECK (amount_cents > 0), method TEXT NOT NULL DEFAULT 'manual', note TEXT, paid_at TEXT NOT NULL);
CREATE TABLE signatures(id INTEGER PRIMARY KEY, project_id INTEGER NOT NULL REFERENCES projects(id), token TEXT NOT NULL UNIQUE, status TEXT NOT NULL DEFAULT 'pending', signer_name TEXT, signature_image TEXT, contract_hash TEXT, signed_at TEXT, created_at TEXT NOT NULL);
CREATE TABLE message_events(id INTEGER PRIMARY KEY, invoice_id INTEGER NOT NULL REFERENCES invoices(id), channel TEXT NOT NULL DEFAULT 'sms', stage TEXT NOT NULL, to_addr TEXT NOT NULL, provider_sid TEXT, sent_at TEXT NOT NULL);
kinds: deposit | milestone | final. statuses: draft | sent | partially-paid | paid | overdue | void. stages: day1 | day7 | day15.
The payments ledger (added in v0.2.0) records every payment — record-payment, mark-paid, and Stripe webhooks all write rows here, so outstanding balances are always derivable. Databases created before v0.2.0 get an automatic, labeled backfill row for invoices already marked paid.
Web dashboard
invoiceguard dashboard launches the web dashboard for real — uvicorn serving
invoiceguard.web.main:app (default http://127.0.0.1:8000, --port to
change it). It shares this SQLite database: invoice list with status filters
(including partially-paid) and escalation stages, a Payouts section with
per-freelancer payout timing (due / overdue / upcoming / settled / no schedule,
as of today — ?as_of=YYYY-MM-DD projects it; hidden when the roster is empty), per-invoice detail with
paid/outstanding amounts, a payments ledger, a chronological timeline, and
the assigned freelancer's payout timing on the detail page's Freelancer row,
the POST /webhooks/stripe endpoint that records the payment when Stripe
reports a completed checkout session (a session for less than the balance
leaves the invoice partially-paid).
Quick webhook smoke test (no network — the payload is signed locally):
INVOICEGUARD_DB=/tmp/ig-demo.db .venv/bin/python seed_demo.py --fresh
INVOICEGUARD_DB=/tmp/ig-demo.db INVOICEGUARD_STRIPE_WEBHOOK_SECRET=whsec_test_x \
.venv/bin/invoiceguard dashboard
# -> http://127.0.0.1:8000/ (Ctrl-C to stop)
Docker
docker compose up -d # CLI container, data in the invoiceguard-data volume
docker compose run --rm app check-due # one-off dunning scan
Put secrets in a .env file next to docker-compose.yml (never committed): INVOICEGUARD_STRIPE_SECRET_KEY, INVOICEGUARD_STRIPE_WEBHOOK_SECRET, INVOICEGUARD_SMTP_PASSWORD. Port 8000 is exposed for the dashboard.
Running tests
python -m venv .venv && .venv/bin/pip install -r requirements.txt && .venv/bin/pip install -e .
.venv/bin/python -m pytest tests/ -q
550 tests, all green (2026-11-21): contract clause rendering (incl. the e-signature sign-off wording and the contract deposit amount's Decimal half-up rounding, agreeing with the CLI quote and the deposit invoice), CLI money parsing (Decimal half-up amounts, deposit split, invalid/non-positive rejection; --deposit-pct/--late-fee-pct 0–100 and --late-fee-grace-days >= 0 rejected before write), dunning stage selection + idempotency + email-less-client skip (no crash, reported reason, other invoices still sent; stage fires after client set-email) + dunning send-failure isolation (one failed send is reported, nothing recorded, rest of batch still sent; stage retries next run) + per-client dunning policies (custom thresholds fire at the custom day, disabled stages skipped in escalation, all-disabled client reported as skipped dunning, order/negative validation, additive migration on old DBs), client set-email (set/clear/unknown-client error), client set-dunning-policy (set/reset/validation/unknown-client), template rendering, webhook signature verification (real HMAC check, offline), Stripe link creation (mocked SDK, params asserted), CLI flows (incl. project sign-request/sign-status), e-signature DB ops (idempotent request, single-use token, frozen contract snapshot at request time + tamper-evidence hash over the snapshot, legacy-row fallback, old-DB migration, ack flip) + full web signing flow (page render incl. frozen snapshot, validation, signed receipt, single-use enforcement), dashboard integration (page rendering + offline webhook checks incl. the invoiceguard_invoice_id metadata-key regression, the webhook-secret resolution regression, and the void-invoice webhook regression — a webhook for a voided invoice records nothing and leaves it void), SMS/WhatsApp messaging (phone normalization, Twilio payload with mocked HTTP, config resolution, day-15 escalation + invoice notify incl. dry-run), receivables aging report (bucket boundaries, dashboard-consistent outstanding totals, per-currency aggregation, late-fee agreement with the §3 calculator) + invoice/payment CSV exports + CSV formula-injection neutralization, freelancer roster + invoice attribution (CRUD, assign/clear, unknown-id rejection, state untouched, old-DB migration, per-freelancer report + CSV column, CLI flows), freelancer earnings (per-currency billed/collected/outstanding from the payment ledger, drafts/voids/unassigned excluded, freelancer show incl. unknown-id error) + revenue splits (add --split-pct / freelancer set-split + 0-100 validation before write, earnings rows' expected-share and still-due-to-freelancer incl. half-up rounding, per-currency application, old-DB migration, freelancer show/list split output), a full end-to-end (init → client → project → invoice → check-due against a real local SMTP server → assert email captured + dunning_events row written), and the 0.8.4 external-review regressions (dashboard webhook recording a payment for a plink_-stored invoice from a real stripe-15 StripeObject event, payment_status=unpaid recording nothing until async_payment_succeeded, late-fee elapsed-month accrual incl. the Jan-31 month-end case, failed invoice create leaving no orphan draft on either the no-key or the Stripe-API-error path, void refused on paid invoices, sign-status reporting the deposit-link acknowledgment alongside the signature state, and dunning email bodies free of the template Subject: line and literal ** markdown), payout suggestions (still-due share, settled/paid-past-share exclusion, no-split available reporting, largest-first sorting, CLI output) + payout settlement (records each suggestion through the payout guard, no-split freelancers skipped, dry-run writes nothing, second settle is a no-op, freelancer/currency filters, unknown-freelancer error) + agency summary (whole-book view per freelancer per currency with per-currency totals, suggested payouts, empty-roster and unknown-freelancer handling, read-only) + payout schedules (weekly/monthly set/clear with validation before write, next-payout-date derivation incl. month-end clamping, payout schedule CLI incl. empty-roster and unknown-freelancer handling, old-DB migration, freelancer show schedule line) + payouts due (scheduled freelancers with an actionable suggestion on/inside the pay-run window, earliest-date then largest-first sorting, unscheduled/settled exclusion, empty-roster and unknown-freelancer handling) + settle the pay run (due rows only, never the whole book, no-split skipped with a count, dry-run writes nothing, second run is a no-op, freelancer/currency filters, unknown-freelancer and negative-window errors) + payouts overdue (missed monthly/weekly runs, due-today exclusion, paid-at/after the missed run exclusion, paid-before the missed run inclusion, unscheduled/settled exclusion, no-split available reporting, earliest-missed then largest-first sorting, previous-payout-date derivation incl. month-end clamping, CLI output) + settle the missed pay runs (overdue rows only, never due-today freelancers, no-split skipped with a count, dry-run writes nothing, second run is a no-op, freelancer/currency filters, unknown-freelancer and empty-roster handling) + payout timing on the agency summary (due on the pay day, overdue after a missed run with its missed date, upcoming when paid since the missed run, no-schedule and settled rows, schedule fields on no-billable rows, CLI --as-of output, invalid --as-of clean error) + payout timing on the agency summary TOTALS (overdue-beats-due-beats-upcoming rollup with freelancer count and earliest missed/next date, settled and no-schedule rollups, mixed settled/no-schedule currencies carrying no status, CLI TOTALS output incl. the no-timing mixed case, unknown-freelancer error, exclusion of no-billable freelancers) + payout timing on freelancer show (due/overdue/upcoming/settled/no-schedule phrases per currency line, --as-of projection, invalid --as-of clean error, no timing phrase on the no-billable row) + payout timing on payout suggest (due/overdue/upcoming/no-schedule phrases per suggestion line incl. no-split available rows, --as-of projection, invalid --as-of clean error, --freelancer filter, library timing map, unknown-freelancer error) + payout timing on payout schedule (due/overdue/upcoming/settled/no-schedule phrases per schedule line incl. multi-currency rollup with currency count and earliest missed date, --as-of projection, invalid --as-of clean error, --freelancer filter, library timing map, no timing phrase on the no-billable row) + payout timing on freelancer list (due/overdue/upcoming/settled/no-schedule phrases per roster line incl. multi-currency rollup with currency count and earliest missed date, --as-of projection, invalid --as-of clean error, no timing phrase on the no-billable row, empty-roster behaviour). + payout timing on payout list (due/overdue/upcoming/settled/no-schedule phrases once per freelancer on their newest payout row incl. multi-currency rollup with currency count, --as-of projection, invalid --as-of clean error, no timing phrase on the no-billable row, empty-ledger behaviour, --freelancer filter). + payout timing on the web dashboard (Payouts section on the index page: due/overdue/upcoming/settled/no-schedule phrases incl. multi-currency rollup with currency count, no row for no-billable freelancers, section hidden on an empty roster). + payout timing on the dashboard invoice detail page (Freelancer row on GET /invoices/{id}: due/overdue/upcoming/settled/no-schedule phrases incl. multi-currency rollup with currency count, no phrase on unassigned invoices or when the freelancer has no billable invoices, missing invoice still 404). + dashboard payout timing as-of projection (?as_of= on the index and detail pages: projection to due and to overdue, invalid-date 400 on both pages, detail projection + back-link preservation, filter-link preservation, unprojected default). + payout timing in the invoice report CSV export (trailing payout_status / payout_date columns per row incl. per-currency, unassigned empty cells, --as-of projection, bare-call empty columns) + payout timing in the invoice report payments CSV export (trailing payout_status / payout_date columns per payment row incl. per-currency join through the invoice, unassigned empty cells, --as-of projection, paid-invoice rows, bare-call empty columns) + CSV export for agency summary (header + money columns, due/overdue/upcoming/settled/no-schedule timing incl. per-currency and TOTALS rollup, no-billable row, mixed-status TOTALS carrying empty timing, --as-of projection, --freelancer filter, file + stdout modes, empty roster, invalid --as-of clean error, bare library call, CSV formula-injection neutralization) + CSV export for payout list (header + money columns, due/overdue/upcoming/settled/no-schedule timing on the newest row per freelancer only, per-freelancer timing, --as-of projection, --freelancer filter, file + stdout modes, empty ledger, invalid --as-of clean error, bare library call with and without timing, CSV formula-injection neutralization). + CSV export for payout due and payout overdue (header + money columns, split and no-split rows, --within-days, --as-of projection, --freelancer filter, file + stdout modes, empty pay run, empty roster, invalid --as-of clean error, unknown-freelancer error, bare library call, CSV formula-injection neutralization). + CSV export for payout suggest (header + money columns, split and no-split rows, due / overdue / upcoming / no-schedule timing, --as-of projection, --freelancer filter, file + stdout modes, empty suggestion list, empty roster, invalid --as-of clean error, unknown-freelancer error, bare library call with and without timing, CSV formula-injection neutralization) + CSV export for payout schedule (header + columns, scheduled and unscheduled rows, due/overdue/upcoming/settled/no-schedule/no-billable timing, --as-of projection, --freelancer filter, file + stdout modes, empty roster, invalid --as-of clean error, unknown-freelancer error, bare library call with and without timing, mixed-status empty cells, CSV formula-injection neutralization) + invoiceguard --version agrees with the packaged version (regression test for the 0.36.0 drift where --version printed 0.35.0) + CSV export for freelancer list (header + columns, contact columns, split and no-split rows, due / overdue / upcoming / settled / no-schedule / no-billable timing, --as-of projection, file + stdout modes, empty roster, invalid --as-of clean error, bare library call with and without timing, mixed-status empty cells, CSV formula-injection neutralization).
Limits of v1
- No live Stripe call was verified in this build environment — Stripe's connector isn't connected here.
invoice createwas verified with a mockedstripeSDK asserting the exactPaymentLink.createparams (line items, price data, metadata); webhook handling was verified with realstripe.Webhook.construct_eventsignature verification using a test secret (works offline). You add your own test key (2 min, above) and the live path is standard Stripe API. - E-signature is browser-captured, not qualified.
project sign-requestgives the client a one-time signing link: typed name + drawn signature on the contract, with the exact signed text hashed (SHA-256) and stored as tamper evidence. It is NOT a qualified third-party e-signature service (DocuSign/HelloSign); legal weight varies by jurisdiction. The older acknowledgment path still exists: paying the deposit link, orproject ack. - Email deliverability is yours. InvoiceGuard sends via your SMTP. Use a reputable provider (Gmail App Password, SendGrid, etc.) and warm up new addresses; check spam folders in testing.
- Messaging needs your own Twilio account. SMS/WhatsApp escalation sends through Twilio with your credentials and your Twilio number (WhatsApp needs a Twilio-approved WhatsApp sender). Sends were verified with the HTTP layer mocked — no live Twilio call was made in the build environment. Only message clients who agreed to be contacted; consent rules vary by jurisdiction.
- Late-fee enforceability varies by jurisdiction. The clause is a contractual starting point, not legal advice. Adjust
late_fee_pct/ grace days per project.
Roadmap
Real e-signature— shipped in v0.3.0:project sign-request/project sign-status, one-time/sign/<token>page with typed-name + drawn-signature capture and SHA-256 tamper evidence.Late-fee accrual calculator— shipped in v0.4.0:invoice late-fees <id>with monthly-compounding breakdown, dashboard "Accrued late fees" / "Total with fees" rows,{late_fee_due}/{total_with_late_fees}dunning variables.SMS / WhatsApp escalation— shipped in v0.5.0: day-15 also goes out as an SMS/WhatsApp message via Twilio when configured (invoice notifysends one-off reminders).- Agency mode — multi-freelancer workspaces (unshipped); per-client dunning policies shipped in v0.7.0 (
invoiceguard client set-dunning-policy); freelancer roster + invoice attribution shipped in v0.8.0 (invoiceguard freelancer add,invoiceguard invoice assign); freelancer earnings shipped in v0.9.0 (invoiceguard freelancer show, per-currency billed/collected/outstanding); freelancer payouts shipped in v0.10.0 (invoiceguard payout record/payout list, per-currency payout ledger with an over-payout guard); revenue splits shipped in v0.11.0 (freelancer add --split-pct/freelancer set-split, per-currency expected share + still-due-to-freelancer); payout suggestions shipped in v0.12.0 (invoiceguard payout suggest, per-currency still-due share or still-held balance when no split is set); payout settlement shipped in v0.13.0 (invoiceguard payout settle, records every suggestion at once through the payout guard, no-split freelancers skipped,--dry-runwrites nothing); agency summary shipped in v0.14.0 (invoiceguard agency summary, whole-book view per freelancer per currency with per-currency totals, read-only); payout schedules shipped in v0.15.0 (freelancer set-schedule/clear-schedule,invoiceguard payout schedulewith derived next payout date, read-only); payouts due shipped in v0.16.0 (invoiceguard payout due, scheduled freelancers with an actionable payout on/inside the pay-run window, read-only); settle the pay run shipped in v0.17.0 (invoiceguard payout settle-due, one payout per due row through the payout guard, no-split freelancers skipped,--dry-runwrites nothing, second run is a no-op); payouts overdue shipped in v0.18.0 (invoiceguard payout overdue, scheduled freelancers whose most recent payout date passed with an actionable payout and nothing recorded since that date, read-only); settle the missed pay runs shipped in v0.19.0 (invoiceguard payout settle-overdue, one payout per overdue row through the payout guard, no-split freelancers skipped,--dry-runwrites nothing, second run is a no-op); payout timing on the agency summary shipped in v0.20.0 (invoiceguard agency summary [--as-of DATE], per-currency due/overdue/upcoming/settled/no-schedule status with next or missed payout date, derived from thepayout due/overduerules, read-only); payout timing on the agency summary TOTALS shipped in v0.21.0 (reports.agency_summary_totals(), per-currency rollup of the rows' own statuses — overdue beats due beats upcoming, with freelancer count and earliest missed/next date; a settled/no-schedule mix carries no status rather than a misleading one, read-only); payout timing onfreelancer showshipped in v0.22.0 (invoiceguard freelancer show ID [--as-of DATE], per-currency due/overdue/upcoming/settled/no-schedule status with next or missed payout date, taken from the sameagency summaryrows, read-only); payout timing onpayout suggestshipped in v0.23.0 (invoiceguard payout suggest [--as-of DATE], per-suggestion due/overdue/upcoming/no-schedule status with next or missed payout date, derived from thepayout due/overduerules, read-only); payout timing onpayout scheduleshipped in v0.24.0 (invoiceguard payout schedule [--as-of DATE], per-freelancer due/overdue/upcoming/settled/no-schedule status rolled up across currencies with the same overdue-beats-due-beats-upcoming precedence, read-only); payout timing onfreelancer listshipped in v0.25.0 (invoiceguard freelancer list [--as-of DATE], the same per-freelancer rollup appended to each roster line, read-only); payout timing oninvoice reportshipped in v0.26.0 (invoiceguard invoice report [--as-of DATE], per-currency due/overdue/upcoming/settled/no-schedule status on each 'by freelancer' line, taken from the sameagency summaryrows, read-only). payout timing onpayout listshipped in v0.27.0 (invoiceguard payout list [--as-of DATE], the same per-freelancer rollup on each freelancer's newest payout row, read-only). payout timing on the web dashboard shipped in v0.28.0 (dashboard index Payouts section, the same per-freelancer rollup as of today, read-only). payout timing on the invoice detail page shipped in v0.29.0 (dashboardGET /invoices/{id}, the same per-freelancer rollup on the Freelancer row as of today, read-only). dashboard payout timing as-of projection shipped in v0.30.0 (GET /?as_of=YYYY-MM-DDandGET /invoices/{id}?as_of=YYYY-MM-DD, the same per-freelancer rollup projected to that day, invalid date is a clean 400, filter/Details/back links keep the projection, read-only). payout timing in theinvoice reportCSV export shipped in v0.31.0 (invoiceguard invoice report [--csv PATH], trailingpayout_status/payout_datecolumns per row from the sameagency summaryrows, projected with--as-of, unassigned rows carry empty cells, read-only). payout timing in theinvoice reportpayments CSV export shipped in v0.32.0 (invoiceguard invoice report [--payments-csv PATH], trailingpayout_status/payout_datecolumns per payment row, joined through the payment's invoice attribution and currency, projected with--as-of, unassigned rows carry empty cells, payments on paid invoices still export with timing, read-only). CSV export foragency summaryshipped in v0.33.0 (invoiceguard agency summary [--csv PATH], one row per freelancer per currency plus one TOTALS row per currency, with the same money columns and the same timing in trailingpayout_status/payout_datecolumns, projected with--as-of,-prints to stdout, read-only). CSV export forpayout listshipped in v0.34.0 (invoiceguard payout list [--csv PATH], one row per recorded payout, newest first, with the same payout timing in trailingpayout_status/payout_datecolumns on the newest row per freelancer, projected with--as-of,-prints to stdout, empty ledger exports a header-only CSV, read-only). CSV export for the pay-run lists shipped in v0.35.0 (invoiceguard payout due [--csv PATH]andinvoiceguard payout overdue [--csv PATH], one row per pay-run row with the same columns the text lists print — freelancer, currency, still-due share or still-held balance, schedule, next payout date, plus the missed payout date on overdue rows — projected with--as-of(and--within-daysfordue),-prints to stdout, empty pay run exports a header-only CSV, read-only). CSV export forpayout suggestshipped in v0.36.0 (invoiceguard payout suggest [--csv PATH], one row per suggestion per currency with the same columns the text lines print — freelancer, currency, still-due share or still-held balance, collected, paid out, split — plus the same timing in trailingpayout_status/payout_datecolumns, projected with--as-of,-prints to stdout, empty suggestion list exports a header-only CSV, read-only). CSV export forpayout scheduleshipped in v0.37.0 (invoiceguard payout schedule [--csv PATH], one row per roster freelancer with the same columns the text lines print — freelancer, schedule cadence and day, next payout date — plus the same timing in trailingpayout_status/payout_datecolumns, projected with--as-of,-prints to stdout, empty roster exports a header-only CSV, read-only). CSV export forfreelancer listshipped in v0.38.0 (invoiceguard freelancer list [--csv PATH], one row per roster freelancer with the same columns the text lines print — freelancer, email, phone, split — plus the same timing in trailingpayout_status/payout_datecolumns, projected with--as-of,-prints to stdout, empty roster exports a header-only CSV, read-only). Partial payments / payment plans— shipped in v0.2.0.
Changelog
Release history lives in CHANGELOG.md — newest first, no fluff.
License
Apache-2.0 — see LICENSE.
Metadata
Release files for invoiceguard 0.38.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| invoiceguard-0.38.0.tar.gz | 179.0 kB | Without provenance | Details for invoiceguard-0.38.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invoiceguard-0.38.0-py3-none-any.whl | Python 3 | none | any | Details for invoiceguard-0.38.0-py3-none-any.whl |
Total release size: 275.3 kB
Release files / invoiceguard-0.38.0.tar.gz
| Download URL | invoiceguard-0.38.0.tar.gz |
|---|---|
| Size | 179.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25f30239c47458c340968c22ec4a5f46a40870856cdb0c6b343006ca5c42f7c8
|
|
BLAKE2b-256 checksum How to use checksums |
c15aad47f93e0277a5d98fee47546fbd9ac5d00c15979ba302960c9cb15890a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
okfsmith-pypi-skill/1.0
|
Release files / invoiceguard-0.38.0-py3-none-any.whl
| Download URL | invoiceguard-0.38.0-py3-none-any.whl |
|---|---|
| Size | 96.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2c51bf18d1ca8d8a6d947b4358c3ff471c4199cd7358f7ead2cc7510fa749b7
|
|
BLAKE2b-256 checksum How to use checksums |
d175e4af88c5f06b32ddf7a50dafcec38e92e63a1343efea5c0df47fe54afff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
okfsmith-pypi-skill/1.0
|
Security for invoiceguard 0.38.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.