Manage supplier bills, payments, and AP aging. Use when recording supplier invoices, processing payments, running payment batches, or reviewing AP aging reports.
Track supplier bills, process payments, run payment batches, and monitor AP aging.
stateset ap ... or stateset "AP aging report"--apply.list_bills, create_bill, approve_bill, record_bill_payment, create_payment_run, approve_payment_run, get_ap_aging, get_ap_summary.list_bills, get_ap_aging, get_ap_summary — no needed.--applycreate_bill, approve_bill, record_bill_payment, create_payment_run, approve_payment_run — requires --apply.stateset --db ./store.db "list bills where supplier = 'Acme Corp'"
stateset --db ./store.db "create bill supplier='Acme Corp' amount=2500 due_date=2026-04-15" --apply
stateset --db ./store.db "approve bill BILL-2025-0050" --apply
stateset --db ./store.db "get ap aging"
Bill: Draft -> Pending -> Approved -> PartiallyPaid -> Paid (or Cancelled/Disputed/Overdue) Payment Run: Draft -> Pending -> Approved -> Processing -> Completed (or Cancelled)
{"status":"payment_recorded","bill_id":"BILL-2025-0050","amount_paid":2500.00,"balance_remaining":0.00,"payment_method":"ACH"}
AP_BILL_NOT_APPROVED: Bill must be approved before payment can be recorded.AP_PAYMENT_EXCEEDS_BALANCE: Payment amount exceeds the outstanding bill balance.AP_DUPLICATE_INVOICE: A bill with the same supplier invoice number already exists.