compliance_mandate
accounts-payable
three-way-match
invoice
purchase-order
goods-receipt
duplicate-detection
integer-minor-units
mcp:match_invoice_three_way

Three Way Invoice Match

Matches one invoice against its purchase order and its goods receipt and decides whether the invoice can be paid: explicit line pairing (declared po_line, then exact sku, then a free same-number PO line; no fuzzy text matching), a fixed first-apply line-verdict order (quantity over received, receipt missing as a two-way flag, quantity over ordered, price outside the declared basis-point tolerance with the boundary passing), integer minor-unit totals with half-up tax from one declared rate, and duplicate-invoice screening against same-vendor priors on the normalized invoice number, same total inside the declared day window, or the same PO. Fractional quantities and sub-minor-unit prices are refused with a named reason, never rounded; one currency per invoice; no tax-jurisdiction logic; day differences come from integer days-from-civil arithmetic with no clock.

Tool URL: https://ainumbers.co/chaingraph/art-701-three-way-invoice-match.html AP2/Policy Mandate export: yes

post/v1/tools/match_invoice_three_way

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/match_invoice_three_way
  • Auth: none declared

Request body

currencystring required
invoiceobject required
purchase_orderobject
goods_receiptobject
vendor_termsobject required
duplicate_window_daysinteger required

Response

Successful tool execution result

outcome'match' | 'mismatch' | 'no_po' | 'refused'
refusal_reasonstring
po_numberstring nullable
receipt_idstring nullable
linesobject[]
totalsobject nullable
mismatchesobject[]
duplicatesobject[]
domain_errorsobject[]
hold_recommendedboolean
scope_notestring

Changes

No recorded changes to this operation across all 1 revision of this API.