API reference / Act as a platform
Add a customer's own account
POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/own-accounts
Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as POST /v1/orgs/{orgId}/own-accounts. Registers one of the organization's own accounts at another bank. Requires two-factor authentication.
Before you call it
- Organization
platform - Permission
platform:customer_operate
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
Request body
| Field | What it does |
|---|---|
bankBankAccountInput | US bank details for a new recipient account or an account the organization owns. |
bank.labelstring | Nickname, e.g. Operating account (default: bank name and last four) |
bank.owner_namestring | Name of the account holder at the other bank. |
bank.bank_namestring | Name of the bank. |
bank.routing_numberstringrequired | ABA routing number of the US bank. |
bank.account_numberstringrequired | Bank account number. Responses return only the last four digits. |
bank.account_typeenum | Whether the bank account is a checking or savings account. One of: checking, savings. One of Default |
bank.railsenum[] | Rails this account can receive. One of |
bank.bank_addressAddress | A postal address. |
bank.bank_address.street_line_1stringrequired | Street address. |
bank.bank_address.street_line_2string | Apartment, suite, or other second address line. |
bank.bank_address.citystringrequired | City. |
bank.bank_address.statestringrequired | State or region. Use the USPS abbreviation when the country is US. |
bank.bank_address.zipstringrequired | Postal code. In the United States this is the ZIP code. |
bank.beneficiary_addressAddress | A postal address. |
bank.beneficiary_address.street_line_1stringrequired | Street address. |
bank.beneficiary_address.street_line_2string | Apartment, suite, or other second address line. |
bank.beneficiary_address.citystringrequired | City. |
bank.beneficiary_address.statestringrequired | State or region. Use the USPS abbreviation when the country is US. |
bank.beneficiary_address.zipstringrequired | Postal code. In the United States this is the ZIP code. |
walletWalletInput | A stablecoin wallet address and the network it is on. |
wallet.labelstring | Short name chosen for this record. |
wallet.networkstringrequired | Blockchain network, such as base. |
wallet.addressstringrequired | On-chain address of the wallet. |
make_defaultboolean | When true, this account becomes the one preselected when paying this recipient. Default |
Response 201
Added
| Field | What it does |
|---|---|
idstring (uuid)required | Bank account or wallet id. Send it as external_account_id when you pay or withdraw. |
typeenumrequired | What kind of object this is. One of: bank, wallet. One of |
is_defaultbooleanrequired | The account preselected when paying this recipient |
labelstringrequired | Short name chosen for this record. |
bank_namestring | Name of the bank. |
routing_numberstring | ABA routing number of the US bank. |
account_last4string | Last four digits of the bank account number. |
account_typestring | Whether the bank account is a checking or savings account. |
railsstring[]required | Rails this account can receive. |
networkstring | Blockchain network, such as base. |
addressstring | On-chain address when this account is a wallet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
duplicate_account409 | this wallet is already saved for this recipient |
invalid_routing_number422 | enter a valid 9-digit ABA routing number |
Every error is a Problem document. Branch on code; quote request_id to support.