Skip to main content

Function: reconcileTransfers()

reconcileTransfers(payments, transfers, options?): ReconcileResult

Defined in: src/lib/wise/reconcile.ts:117

Match transfers to payments by descending confidence:

  1. reference — the transfer's reference contains the payment id's first 8 chars.
  2. recipient_amount — same Wise recipient and amount within tolerance.
  3. amount_window — amount within tolerance and pay date within the date window, uniquely. Each payment and each transfer is used at most once; already-completed payments and dead transfers are ignored. A linked transfer whose amount differs (beyond tolerance) is an outcome variance.

Parameters

payments

readonly ReconcilablePayment[]

transfers

readonly WiseTransfer[]

options?

ReconcileOptions = {}

Returns

ReconcileResult