Sweep the available balance to the bank account
Moves everything currently available in the payment provider's ledger out to this bank account, and returns the sweep record that tracks it. Only one sweep per bank account can be started at a time, and the company's subscription sets how often a sweep may run.
Authorization
AuthorizationstringrequiredPath parameters
bankAccountIdstringrequiredThe bank account to sweep the balance into. A Snowflake id sent as a decimal string.
Response
200 · The sweep that was started. It begins in a `pending` state and settles asynchronously; poll the sweep endpoints for its progress.
idstringThe sweep record held by MagicDoor. A Snowflake id sent as a decimal string.
bankAccountIdstringThe bank account the sweep moves money for. Absent when the sweep has not been matched to one.
amountnumberHow much the sweep moves, in dollars and cents. Always positive; type says which way it goes.
typeenum<string>deposit moves money out of the provider's ledger and into the bank account. withdraw takes money from the bank account into the ledger.
sweepStatusenum<string>Where the sweep is in the provider's lifecycle, mirrored from Plaid.
postedstring · date-timeWhen the provider posted the sweep, in the company's timezone. Absent until then.
settledstring · date-timeWhen the sweep settled, in the company's timezone. Absent until then.
fundsAvailablestring · date-timeWhen the money became available, in the company's timezone. Absent until then.
failedstring · date-timeWhen the sweep failed, in the company's timezone. Absent unless it failed.
returnedstring · date-timeWhen the sweep was returned, in the company's timezone. Absent unless it was returned.
returnCodestringThe ACH return code the provider reported. Absent unless the sweep was returned.
failureReasonstringWhy the sweep failed, as reported by the provider. Absent unless it failed.
plaidSweepIdstringPlaid's own id for the sweep. An opaque provider token — do not parse it.
plaidOriginatorIdstringPlaid's id for the originator the sweep runs under. An opaque provider token.
plaidLedgerIdstringPlaid's id for the ledger the money moves through. An opaque provider token.
plaidAccountIdstringPlaid's id for the funding account. An opaque provider token.
lastSyncedstring · date-timeWhen MagicDoor last refreshed this record from the provider, in the company's timezone. Absent when it has never been refreshed.
createdstring · date-timeWhen the sweep record was created, in the company's timezone.