J.

Jev Reconciliation candidate Code Example

Rank a possible match between a bank line and an invoice.

ACME INV 82, 1250.00

Bank ACME INV 82, 1250.00
Invoice Acme Ltd, #82, 1250.00
Date Gap Days 1

How strong is this reconciliation candidate?

0% Strong match.
Strong match 86%
Possible match 10%
No match 4%

Let the application strong match.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "bank": "ACME INV 82, 1250.00",
  "invoice": "Acme Ltd, #82, 1250.00",
  "date_gap_days": 1
};

const decision = await evaluateDecision({
  state,
  question: "How strong is this reconciliation candidate?",
  options: ["Strong match","Possible match","No match"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Strong match"
    && decision.probability >= 0.85) {
  rankReconciliationCandidate(decision);
} else {
  queueForReview(decision);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.