Skip to main content

Function: buildWiseBatch()

buildWiseBatch(recipients, opts): WiseBatchResult

Defined in: src/lib/wise/batch.ts:62

Build the batch CSV from per-recipient pay-run amounts. Recipients missing a Wise recipient id, or with a non-positive amount, are EXCLUDED and listed in skipped (Wise would reject those rows, and a dropped row means an unpaid contractor — the caller must surface it).

amountCurrency is always target: amount is the exact payout in targetCurrency, regardless of how the source balance is funded.

Parameters

recipients

readonly WiseBatchRecipient[]

opts

WiseBatchOptions

Returns

WiseBatchResult