Overview
This guide walks you through enabling users to move cash in and out of Wealthyhood: retrieve the wallet IBAN, link a bank account for ownership verification, deposit funds, and withdraw back to the bank.All endpoints require an M2M bearer token and the
x-user-id header to scope operations to the acting user.Prerequisites
- API access and M2M credentials
x-user-idvalue for the target user
1) Retrieve the wallet IBAN
When a user is created, a wallet is provisioned automatically. UseGET /wallets with the owner
query parameter to fetch the wallet, including its dedicated IBAN and current status.
2) Link a bank account
Before users can deposit funds, they must link a bank account. This is required to verify account ownership and match incoming payments to the correct user. UsePOST /bank-accounts to register a bank account for the user.
3) Create and track payments
Send funds to the IBAN returned by the wallet lookup. Include a unique payment reference (e.g.wallet-topup-${crypto.randomUUID()}) in your bank transfer so that you can later reconcile the
movement.
Once the payment is executed, poll GET /deposits with the bankReference query parameter to detect
the matching deposit record:
status, allowing you to monitor when the funds become available to the user.
4) Withdraw funds
UsePOST /withdrawals to send funds back to the user’s bank account.