Classify AP exceptions
classify_ap_exceptionsClassify vendor invoices into AP exception types: duplicate, missing/mismatched PO, missing receipt, wrong legal entity, tax review, ownerless approval. Outputs confidence and stable reason codes.
Instructions
Classify vendor invoices into the AP exception taxonomy: duplicate invoice (reuses audit normalize/duplicate rules), missing/mismatched PO, missing receipt, wrong legal entity, tax review, and ownerless approval. Each exception includes confidence and a stable reason code. Invoices without match-context fields are only eligible for duplicate and inconsistent-tax reuse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Optional line items (enables inconsistent-tax → tax_review). | |
| today | No | ||
| invoices | Yes | Invoice rows plus optional PO/receipt/entity/tax/approval fields. | |
| include_audit_tax | No | ||
| include_duplicates | No | ||
| po_amount_tolerance_pct | No |