Test a value against categorisation rules
POST
https://app.speybooks.com/api/v1/categorisation-rules/testTests a transaction input against all active rules and returns the match result. Evaluates local, verified, and global rules using the full lattice scoring engine.
This is a read-only operation — no rules or transactions are modified. Use this to preview what account a transaction would be categorised to, and to inspect the evidence and score vector for debugging.
Body parameters
amount number optionalTransaction amount to test (for greater_than/less_than operators).
contactName string optionalContact name to test.
description string optionalTransaction description to test against rules. Will be normalised before matching.
metadata object optionalKey-value metadata to test against metadata.* field rules.
reference string optionalReference to test.
Response
200 Best matching rule with score vector and evidence, or no match with reason.
Show response fields
evidence objectShow child attributes
matchedField stringmatchedValue stringoperator stringprovenance stringscoreVector stringmatched booleanrule objectShow child attributes
id integername stringsuggestion objectShow child attributes
accountCode stringaccountId stringaccountName stringError codes
400 Invalid test input.