J.
47 / 100

Invoice exception routing

The application receives context for a invoice exception routing decision.

What needs to happen before payment?

Review mismatch83%
Ready for payment12%
Request currency5%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "invoice_total": 4200,
  "purchase_order_total": 2400,
  "currency": "AUD"
};

const decision = await evaluateDecision({
  state,
  question: "What needs to happen before payment?",
  options: ["Review mismatch","Ready for payment","Request currency"],
});

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

Send it to review mismatch.