Skip to navigation

Suggested matches for a transaction

View as Markdown

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

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

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

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.
idlong or stringRequired

Transaction ID. Either the numeric id or the public_id (txn_…).

Query parameters

limitintegerOptional1-20Defaults to 5

How many suggestions to return. Values above the maximum are clamped rather than rejected, and a non-positive value falls back to the default.

Response

OK
datalist of objects

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error