Skip to main content
Your integration operates money. Setting up where money comes from happens in the Cleo web app. That includes:
  • linking a bank to Cleo Pay or to Dwolla,
  • verifying a bank,
  • reconnecting a bank that needs re-authentication,
  • removing a bank.
When a call needs a bank that is not set up, the API answers 409 setup_required with details.requirement and an absolute details.actionUrl. Show that link to your user. To see what the business can pay from today, call GET /v1/funding-sources.

Deprecated: add and verify a Dwolla bank through the API

These routes are deprecated and will be removed in v2. They send a Deprecation header and work only for businesses that have a Dwolla account. Any other business gets 409 setup_required with requirement: "dwolla_account".
The flow uses the bank-accounts:write scope.
1

Add the bank

The bank is created with status: "pending_verification", and Cleo sends two micro-deposits. A bank_account.created event fires.
2

Wait for the deposits

The deposits land in 1 to 2 business days. Poll GET /v1/bank-accounts/{bankAccountId} until microDepositsCompletedAt is set.
3

Confirm the amounts

Amounts are in dollars, as strings. On success the bank becomes verified and bank_account.verified fires. You have 3 attempts. After the third failure the bank is removed and bank_account.verification_failed and bank_account.removed fire.
A bank on any rail other than Dwolla answers 409 setup_required on the verify route. DELETE /v1/bank-accounts/{bankAccountId} removes a bank on either rail until v2. It is deprecated too. Without an Idempotency-Key, each retry of POST /v1/bank-accounts starts a separate bank link attempt. Send a key.