---
title: "Make a transaction"
method: POST
path: "/users/{userId}/transactions"
---

# Make a transaction

`POST /users/{userId}/transactions`

## Path parameters

- `userId` integer, required

## Request body

- TransactionInput
  - `from_account_id` integer
  - `account_no` string
  - `bank_name` string
  - `amount` number, float
  - `currency` string
  - `user_id` integer

## Response `201`

Transaction successful

- Transaction
  - `id` integer
  - `user_id` integer
  - `from_account_id` integer
  - `to_account_id` integer
  - `amount` number, float
  - `currency` string
  - `created_at` string, date-time

---

[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)
