Set up Payouts
Connect your business bank account to Lean through a direct connection, then send money from that account to beneficiaries through the Lean API or Dashboard.
Use Payouts for customer withdrawals, disbursements, supplier payments and other outgoing transfers.
Setup is completed with LeanDirect connections are set up together with Lean and your bank. Contact your Lean account manager to start. You can build and test your integration in Sandbox while the bank setup is in progress.
How payouts work
A payout moves money from your business bank account to a beneficiary's bank account.
Lean reaches your account through a direct connection. Your bank issues a dedicated set of API credentials that let Lean, as your technical service provider (TSP), access the account. No individual bank user's login details are used, and no bank user needs to approve payouts in your bank's portal.
| Stage | What happens |
|---|---|
| Connect your account | Your bank grants Lean API access to your account. Lean configures and tests the connection with you. |
| Prepare the beneficiary | Create a Payout Destination for the account that will receive the funds. |
| Submit the payout | Specify the source account, destination and amount. |
| Authorise the payout | Complete Lean's authorisation flow for the payout. |
| Track the outcome | Use webhooks and API responses to follow the payout to its final status. |
Authorisation and bank acceptance are stages in the journey. They do not, by themselves, confirm that the beneficiary has received the funds.
Payouts and refunds
Use a payout when you want to send money to a beneficiary you specify.
Use a refund when you want to return all or part of an eligible payment to the account it came from. Refunds use Payouts to move the money and require Payments and Reconciliation to identify the original payment and confirm eligibility.
Before you start
You need:
- A Lean application with backend authentication configured.
- An active corporate account or client money account (CMA) at a bank that Lean supports for direct connections. If you still need to open the account, do this first.
- An authorised signatory on that account who is available to sign your bank's forms.
- A named owner in your team for the setup, and a shared mailbox for correspondence with your bank.
- A webhook endpoint ready to receive payout updates.
Authenticate your integration →
Who does what
| Party | Responsibilities |
|---|---|
| You | Request API access from your bank, complete and sign the bank's form, and pass bank-issued credentials to Lean through the secure channel Lean provides. Approve the go-live test payouts. |
| Lean | Confirms your bank is supported, provides the technical values for the bank's form, configures the connection, runs the UAT tests and go-live checks. |
| Your bank | Reviews and approves the request, issues UAT and production credentials, and enables the requested services on your account. |
1. Contact Lean
Tell your Lean account manager:
- Which bank and account you want to use.
- Whether you need Payouts, Reconciliation or both.
- Whether you will use more than one account, or different accounts for payouts and reconciliation. Your bank may need a separate form for each account.
Lean confirms that your bank and account are supported, which form your bank uses and any bank-specific steps, transfer limits or cut-off times that apply.
Bank feesYour bank may charge its own fees for API access, separate from Lean's fees. Ask your relationship manager about these early, so they don't hold up the setup.
2. Request API access from your bank
Contact your bank relationship manager (RM). Ask for the form your bank uses to grant API access to a technical service provider, and name Lean Technologies as your TSP. The form's name varies by bank, for example an API banking form, a data consent form or an undertaking letter.
Suggested wording:
We would like to use Lean Technologies as our Technical Service Provider for API-based payout (payment services) and reconciliation (account services) connectivity. Please share the form we need to start the process for access to the APIs.
If you only need payouts or only need reconciliation, remove the service you don't need.
Have ready:
- Your company's legal name, exactly as it appears on the bank account.
- Your account number and your bank's customer reference for your company, such as a CIF number.
- The name and title of the authorised signatory named on your bank mandate.
3. Complete, review and sign the form
Lean gives you reference values for the bank's form:
- The APIs or services to enable. Payouts need payment services, such as payment initiation and payment status. Reconciliation needs account services, such as account transactions or statements. Each bank names these differently.
- Lean's IP addresses for your bank to allowlist (some banks call this whitelisting), for UAT and production.
- Lean's webhook and notification URLs, for UAT and production.
Copy these values into the form your bank sent you. Always use the latest reference values from Lean, not a copy of an older form.
Send the draft to your RM. Depending on the bank, the draft is reviewed on a kick-off call with you, your bank and Lean, or by email. Bring your process owner to the call. Your signatory does not need to attend.
After the review:
- Make any changes agreed with your bank.
- Have your authorised signatory sign the form. Most banks accept only original wet-signature forms, not e-signatures. Some banks also require Lean to sign, and Lean arranges this with you.
- Submit the signed form to your bank.
- Send Lean a copy and tell Lean it has been submitted.
4. Request transaction notifications, if your bank requires it
Some banks set up real-time transaction notifications separately from API access. Where your bank does this, notifications are required for payouts.
Wait for Lean before sending this request. Lean provides the notification endpoint URL and tells you when to send it. Your bank may then send a further form to complete.
5. Test the connection with your bank (UAT)
When your bank approves the form, it issues UAT (user acceptance testing) credentials to you.
- Share the credentials, and any certificates or files your bank's process involves, with Lean through the secure channel Lean provides. Never send credentials by email or chat.
- Lean configures the UAT connection and runs the tests: payout initiation, payout status, error handling and notification receipt, plus reconciliation checks where relevant.
- If your bank asks for test evidence, Lean prepares the results and you submit them to your bank.
This testing uses your bank's UAT environment. It needs no changes to your Lean API integration.
6. Go live
After your bank approves UAT, it issues production credentials. Banks commonly send these in an encrypted file to the email address the request came from, and give the password by phone.
Share the following with Lean through the secure channel:
- The production credentials and any related files.
- The IBAN of each account in scope. If you have more than one account, say which one funds payouts and which one is used for reconciliation.
Lean configures the production connection and runs go-live checks. For payouts, these include two test payouts that you approve in advance: one to an account at the same bank and one to an account at a different bank.
When the checks pass, your direct connection is live.
TimelineThe bank steps usually take 2 to 4 weeks from the signed form reaching your bank, depending on your bank's approval and release schedule. Request the form as early as possible.
7. Configure your integration
Identify your source account
Use the source account's account_id in payout requests. It identifies the connected bank account that funds the payout.
| Identifier | What it represents |
|---|---|
account_id | The connected source account that funds the payout. |
payment_destination_id | The Payout Destination that receives the payout. |
Do not use the account's IBAN in place of account_id.
Use Sandbox identifiers for testing and production identifiers for live payouts.
Decide how payouts are authorised
Every payout goes through Lean's authorisation flow before Lean submits it to your bank. Authorisation happens in Lean, not in your bank's portal.
Agree the options your team will use during setup. Send and manage payouts explains the authorisation options available today.
Arrange Dashboard access
Ask your organisation's Dashboard administrator to give the right team members access to Payouts in the Lean Dashboard. Anyone who will authorise payouts manually needs permission to do so.
Subscribe to webhooks
Configure your webhook subscriptions before submitting payouts. Your integration needs to handle:
| Event | Use it to |
|---|---|
payment_source.beneficiary.created | Confirm that a new Payout Destination is ready to receive payouts. |
payment_source.beneficiary.updated | Track changes to a Payout Destination's readiness. |
payment.created | Receive the first status of a new payout. |
payment.updated | Track the payout to its final status. |
Store the identifiers returned when you create destinations and payouts, so you can match each event to the right record.
Send and manage payouts covers status handling and API lookups.
Maintain your connection
Tell Lean before any of these changes take effect, where you can:
- Your bank issues new API credentials or certificates for the connection.
- You add, close or change an account used for payouts or reconciliation.
- Your bank changes the services enabled on your account.
If payouts start failing because of a connection issue, check the status of each affected payout before creating a new one. Contact Lean Support with the environment, the time of the request and the payment IDs.
Next steps
Updated about 2 hours ago
