# Open Account Opens a new account for a customer of a given product type Endpoint: POST /v1/accounts/deposits Version: 1.1.2 Security: OAuth2Flow ## Header parameters: - `Authorization` (string) OAuth bearer token (see authentication flows) - `x-l2f-request-id` (string) Optional Unique ID per request, useful for fault resolution/diagnosis and audit. - `x-l2f-idempotency-id` (string) Unique ID used to safely retry an operation. See idempotency section for more details. ## Request fields (application/json): - `customer_id` (string, required) Customer ID of the customer for whom the account is being opened (see /customers) - `account_to_open` (object, required) Details of the account to open for the customer - `account_to_open.account_id` (string, required) The identifier you wish to use to uniquely identify this account. The account id follows the [External Identifier](https://docs.layer2financial.com/guides/externalidentifiers/) pattern. - `account_to_open.product_id` (string, required) Select the type of account being opened. You can customise and/or create new product offerings by visiting the [Management Interface](https://management.layer2financial.com) Pre configured products that are available for use are - DEPOSIT_BASIC - `account_to_open.asset_type_id` (string, required) Select the asset type of the account being opened. Asset type selection is not open ended, it must be configured per product via the [Management Interface](https://management.layer2financial.com). Asset type IDs follow a simple structure as follows: {$BLOCKCHAIN}_{$NETWORK}_{$CURRENCY_CODE} Simple asset type to test with include - ETHEREUM_SEPOLIA_ETH - ETHEREUM_SEPOLIA_USDC - SOLANA_DEVNET_SOL - BITCOIN_TESTNET_BTC - FIAT_TESTNET_USD - FIAT_TESTNET_USD - FIAT_MAINNET_USD - FIAT_TESTNET_EUR ## Response 200 fields (application/json): - `data` (object, required) - `data.id` (string, required) Unique Identifier for the account - defined by the Client during account open ## Response 400 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 401 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 404 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 500 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description