{"inputSchema":{"type":"object","required":["purchase_order","invoice"],"additionalProperties":false,"properties":{"purchase_order":{"type":"array","minItems":1,"maxItems":300,"description":"Ordered lines.","items":{"type":"object","required":["quantity"],"additionalProperties":false,"properties":{"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":300},"quantity":{"type":"number"},"unit_price":{"type":"number"}}}},"delivery_note":{"type":"array","maxItems":300,"description":"Delivered lines. Optional — without it only a two-way match runs.","items":{"type":"object","required":["quantity"],"additionalProperties":false,"properties":{"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":300},"quantity":{"type":"number"}}}},"invoice":{"type":"array","minItems":1,"maxItems":300,"description":"Invoiced lines.","items":{"type":"object","required":["quantity"],"additionalProperties":false,"properties":{"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":300},"quantity":{"type":"number"},"unit_price":{"type":"number"}}}},"quantity_tolerance_pct":{"type":"number","minimum":0,"maximum":50,"default":0,"description":"Allowed quantity deviation in percent."},"price_tolerance_pct":{"type":"number","minimum":0,"maximum":50,"default":0,"description":"Allowed unit-price deviation in percent."},"text_match_threshold":{"type":"number","minimum":0.1,"maximum":1,"default":0.5,"description":"Minimum text similarity to pair lines without an article number."},"currency":{"type":"string","minLength":3,"maxLength":3,"default":"EUR"}}},"outputSchema":{"type":"object"},"priceModel":null,"requestExample":{"purchase_order":[{"sku":"EXAMPLE-001","quantity":2,"unit_price":10}],"invoice":[{"sku":"EXAMPLE-001","quantity":2,"unit_price":10}],"currency":"EUR"},"price_usdc":"0.002","example_request":{"purchase_order":[{"sku":"EXAMPLE-001","quantity":2,"unit_price":10}],"invoice":[{"sku":"EXAMPLE-001","quantity":2,"unit_price":10}],"currency":"EUR"},"serviceName":"po_invoice_match","tags":["procurement","invoice","three-way-match"],"outputExample":{"match_type":"two_way","currency":"EUR","lines":[{"po_line":1,"sku":"EXAMPLE-001","description":null,"ordered_quantity":2,"delivered_quantity":null,"invoiced_quantity":2,"ordered_unit_price":10,"invoiced_unit_price":10,"price_difference":0,"invoice_line":1,"delivery_line":null,"match_type":"sku","match_confidence":1,"deviations":[],"ok":true}],"lines_ok":1,"lines_with_deviation":0,"invoice_lines_unmatched":[],"totals":{"order_value":20,"invoice_value":20,"difference":0,"difference_pct":0},"disputed_amount":0,"findings":[],"counts":{"error":0,"warning":0,"info":0},"approved":true,"verdict":"approve","recommendation":"Alle Positionen stimmen ueberein.","tolerances":{"quantity_pct":0,"price_pct":0,"text_threshold":0.5},"checked_at":"2026-10-22T23:41:33.297Z","limits":"Verglichen werden ausschliesslich die uebergebenen Dokumente. Ob die Ware wirklich ankam, ob der Preis vereinbart war und ob eine Nachverhandlung stattfand, steht hier nicht. Zuordnungen ueber Bezeichnungen sind Wahrscheinlichkeiten, keine Feststellungen — sie sind mit match_type und match_confidence gekennzeichnet und gehoeren vor der Freigabe angesehen."}}