Suggested matches for a transaction
Scored candidates for what this transaction settles — the same engine that produces “Suggested matches” in the app, so the API and the UI cannot disagree.
Read-only: it proposes, and
pair is what acts. Each suggestion’s
pairable is addressed exactly the way pair wants it — type is the
whitelisted pairing key, not a class name — so an accepted suggestion
can be posted straight back with no second lookup.
Rank on confidence and use score only as a tie-breaker: the numeric
scale is internal and may be retuned. match_reasons says WHY a
candidate was proposed, which is what you want if you intend to
auto-accept only a specific signal (an exact variable-symbol match, say)
rather than trusting a number.
A suggestion whose pairable.type is null is a transaction-to-
transaction proposal (a split payment, or a refund and its original).
Those are settled in the app, not through pair.
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Lucanto API key. Two prefixes:
lct_pat_<random><checksum>— personal access token (owner: User)lct_live_<random><checksum>— workspace token, live data
Issue keys at /settings/api_keys (personal) or
/:workspace_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.
Path parameters
Transaction ID. Either the numeric id or the public_id (txn_…).
Query parameters
How many suggestions to return. Values above the maximum are clamped rather than rejected, and a non-positive value falls back to the default.
