---
title: "Create bank account"
method: POST
path: "/users/{userId}/accounts"
---

# Create bank account

`POST /users/{userId}/accounts`

## Path parameters

- `userId` integer, required

## Request body

- BankAccount
  - `id` integer
  - `user_id` integer
  - `owner` string
  - `account_no` string
  - `bank_name` string
  - `balance` number, float

## Response `201`

Created

- BankAccount
  - `id` integer
  - `user_id` integer
  - `owner` string
  - `account_no` string
  - `bank_name` string
  - `balance` number, float

---

[API](https://skmtc.dev/wso2/apis/banking-microservice-api.md) · [All operations](https://skmtc.dev/wso2/apis/banking-microservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wso2/banking-microservice-api/revisions/1594c7281453/schema)
