Connect a bank account to a payment provider
Starts onboarding this bank account with Plaid or Stripe so it can send and receive money. A Plaid connection needs bank statements attached; a Stripe connection returns either a hosted onboarding link or a client secret for an embedded onboarding page.
Authorization
AuthorizationstringrequiredPath parameters
bankAccountIdstringrequiredThe bank account to connect. A Snowflake id sent as a decimal string.
typeenum<string>requiredWhich provider to connect to.
Body
application/json
Which properties matter depends on type.
statementUploadSessionIdsstring[]Upload sessions holding the bank statements that back a Plaid connection. Create them with the statement upload session endpoint first. Required for a Plaid connection; at least two.
statementFileIdsstring[]deprecatedThe older way of attaching statements, by the id of an already-uploaded file. Use statementUploadSessionIds instead. At least two.
companyBusinessInfoIdstringWhich of the company's business records to onboard with, for a Plaid connection. Left out, the company's primary business record is used.
isEmbeddedbooleanStripe only. true returns a clientSecret for embedding Stripe's onboarding page in your own UI; otherwise a hosted link is returned for the user to open.
Response
200 · Onboarding has been started. Which property is filled in depends on the provider and on `isEmbedded`; both may be absent for a Plaid connection, which needs no hand-off.
linkstringA Stripe-hosted onboarding page to send the user to. Absent when isEmbedded was true, and for Plaid.
clientSecretstringAn opaque Stripe token for embedding the onboarding page in your own UI. Absent unless isEmbedded was true. Treat it as a secret and do not parse it.