Add a bank account
Save a bank account for the business. Where the bank offers a name check, it runs at once: a clear mismatch is saved but never paid, and payableReason says so. Needs a live key. For a platform acting on a business it manages, bank accounts by API must have been opened for your platform; ask us. Every account added through a platform’s key is emailed to the platform’s owner and to the business’s owner. The account number is never stored: we keep the last four characters and a hash.
403 bank_accounts_by_api_closed. Where the bank offers a name check, it runs at once: a clear mismatch is saved but never paid, and payableReason says so; partial and unknown are paid. Every account added through a platform’s key is emailed to the platform’s owner and to the business’s owner. We keep the last four digits and a hash, never the number.Bank accounts by API
Build a platform
Authorizations
Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.
Body
The payout currency. EUR and USD are supported.
The account type from the requirements: iban, sort_code, aba.
The name on the bank account, as the bank holds it. A clear mismatch is saved but not paid.
PRIVATE, BUSINESS The fields the requirements asked for, for example { "IBAN": "DE89…" }. Never stored: we keep the last four characters and a hash.
Response
The saved account, as a thin reference.
A bank account as we keep it: a thin reference. The account number itself stays with our bank partner.
Upper-case, EUR or USD.
The corridor: iban, sort_code, aba.
The last four characters of the account number.
PRIVATE, BUSINESS How the holder name compared with the name the bank holds, where the bank offers that check (not for every currency). failed is never paid; partial and unknown are paid.
success, partial, failed, unknown Can the next payout go to this account right now: active, and the name check did not fail.
When payable is false: why, in a sentence for the merchant.