Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt

Use this file to discover all available pages before exploring further.

Exception routing defines how unmatched transactions are classified, assigned, and escalated. This guide describes severity classification, assignment rules, SLA tracking, and integrations with external workflow systems.

Severity classification


Exceptions are automatically classified by severity to prioritize review and resolution.

Default severity rules

SeverityDefault criteriaSLA
CriticalAmount ≥ 100,000 OR age ≥ 120 hours24 hours
HighAmount ≥ 10,000 OR age ≥ 72 hours72 hours
MediumAmount ≥ 1,000 OR age ≥ 24 hours120 hours (5 days)
LowAll other cases168 hours (7 days)
Severity directly affects SLA deadlines, escalation behavior, and routing priority.

Assignment routing


Assignment routing ensures exceptions reach the appropriate teams automatically.

User groups

User groups allow scalable and resilient assignment strategies.
Automatic user group assignment methods (round_robin, least_loaded, random, all) are planned but not yet implemented. Currently, exceptions can be assigned to individual users or groups manually via the assignment API.

SLA tracking


SLA tracking monitors exception aging and triggers warnings or escalations when thresholds are reached.

Additional exception endpoints


Beyond the basic exception CRUD, Matcher provides endpoints for advanced exception workflows:
EndpointMethodDescription
Dispatch exceptionPOSTSend an exception to an external system or team
Process callbackPOSTReceive resolution callbacks from external systems
Bulk assignPOSTAssign multiple exceptions to a user or group at once
Bulk resolvePOSTResolve multiple exceptions in a single operation
Bulk dispatchPOSTDispatch multiple exceptions to external systems
List commentsGETRetrieve all comments on an exception
Add commentPOSTAdd a comment to an exception for audit and collaboration
Delete commentDELETERemove a comment from an exception
List disputesGETRetrieve all disputes with filtering
Get disputeGETRetrieve details of a specific dispute
Open disputePOSTFlag an exception as disputed for escalated review
Close disputePOSTClose a dispute with a resolution
Submit evidence POSTAdd evidence to support a dispute case

Integrations


Matcher integrates with external systems to support operational workflows.
  • JIRA: Use JIRA to track and resolve exceptions as issues.
  • Webhooks: Send exception events to custom systems in real time.
All integrations support:
  • Secure authentication
  • Retry and backoff
  • Bidirectional status updates (when enabled)

Dispatch targets

When dispatching an exception, the target_system field must be one of the following values:
TargetDescription
JIRADispatch to a JIRA project
SERVICENOWDispatch to ServiceNow (not yet implemented — returns MTCH-0508)
WEBHOOKDispatch to a custom webhook endpoint
MANUALFlag for manual handling outside of automated systems

Filtering by external system

When listing exceptions, the external_system query parameter accepts any string value for filtering. This allows you to filter exceptions dispatched to any system, including custom identifiers that may have been set through callbacks.

Dispatch error handling

When dispatching an exception to an external system, Matcher returns specific error responses:
Status CodeConditionDescription
200SuccessException dispatched and external issue created
400Invalid requestMissing required fields (exception ID, target system, or actor)
422Unsupported target systemThe target system value is not one of the supported dispatch targets listed above
422Connector not configuredThe target system is valid but has no connector configuration. Verify that the integration is set up before dispatching.
422Invalid state transitionException is not in a dispatchable state

Monitoring and analytics


Use routing statistics to evaluate effectiveness:
  • Exception volume by severity
  • SLA breach rates
  • Routing rule distribution
  • Integration success and failure rates

Best practices


Begin with severity-based routing and expand as patterns emerge.
Group-based routing improves resilience and workload balance.
Align SLA targets with operational capacity.
Always test JIRA and webhook integrations in non-production environments.
Configure retries and alerts for critical notification paths.

Next steps


Resolving exceptions

Resolve exceptions through the API or external systems.

Webhooks & callbacks

Advanced event delivery and callback handling.