payment_terms_check
Work out the due date and status for payment terms such as Net 30, 2/10 Net 30, Due on receipt, EOM or Net 30 EOM. Returns the early-payment discount amount and deadline, the annualized cost of skipping the discount, and suggested reminder dates. Use late_fee_calc once the invoice is overdue. Pure calculation: no network request, nothing is sent or stored. Costs $0.01 USDC per call via x402 (payment goes in _meta["x402/payment"]); invalid input returns an error and is not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Date to compute status for, YYYY-MM-DD (default: today, UTC) | |
| terms | Yes | Payment terms, e.g. "Net 30", "2/10 Net 30", "Due on receipt", "EOM", "Net 30 EOM" | |
| amount | No | Invoice total (optional; enables the discount math) | |
| currency | No | ISO-4217, default USD | USD |
| invoice_date | Yes | Invoice date, YYYY-MM-DD |