Skip to main content

Function: resolveCheckPayer()

resolveCheckPayer(companyId, payerName): Promise<ResolvedPayer>

Defined in: src/server/services/checks.ts:135

Resolve a check's payer to its facility set using the DB-backed billing_payers rows (falling back to the seeded default alias rules only when no rows exist yet for the company). Returns the active facilities alongside, so callers can label the set or offer a manual pick when status != 'matched'.

Parameters

companyId

string

payerName

string | null

Returns

Promise<ResolvedPayer>