Manage invoices and overdue billing. Use when running `stateset-invoices`, creating invoices, recording payments, or reconciling invoice status and aging.
Create invoices, send to customers, and record payments.
net_30, net_60), and due date.stateset-invoices ... or stateset "create invoice for order ORD-123"--apply.list_invoices, create_invoice, send_invoice, record_invoice_payment, get_overdue_invoices.list_invoices, get_overdue_invoices — no needed.--applycreate_invoice, send_invoice, record_invoice_payment — requires --apply.stateset invoices create --order ORD-123 --terms net_30 --apply
stateset invoices send --invoice inv_123 --apply
stateset invoices payment record --invoice inv_123 --amount 2500.00 --apply
stateset invoices list --status overdue --aging 60
Invoice: Draft -> Sent -> Partially Paid -> Paid (or Overdue/Voided)
{"status":"sent","invoice_id":"inv_123","total":5000.00,"amount_paid":0,"amount_due":5000.00,"due_date":"2025-02-15"}
record_invoice_payment.INVOICE_ALREADY_PAID: Invoice has been fully settled; no further payments accepted.MISSING_CUSTOMER: No customer record linked to the invoice.AMOUNT_MISMATCH: Payment amount does not align with the outstanding balance.