---
title: "Create Transactions"
method: POST
path: "/transactions"
tags: ["ledger"]
---

# Create Transactions

`POST /transactions`

## Create Transactions
Creates a Transaction.

## Headers

- `Content-Type` string

## Request body

- object — The transaction object represents an exchange of value between two accounts. Any amount of any type of currency can be exchanged.
  - `from` string, required — The id of payer of the transaction. It can be any id you choose, if never used before, it will be created.
  - `to` string, required — The id of payee of the transaction. It can be any id you choose, if never used before, it will be created.
  - `metadata` string[] — A list of metadata you can add to the transaction.
  - `amount` integer, required
  - `currency` string, required

## Response `201`

The Transaction object created.

- object — The Transaction object represents an exchange of value between two accounts. Any amount of any type of currency can be exchanged.
  - `id` string, uuid, required — The id of the transaction.
  - `from` string, required — The id of payer of the transaction. It can be any id you choose, if never used before, it will be created.
  - `to` string, required — The id of payee of the transaction. It can be any id you choose, if never used before, it will be created.
  - `date` string, date-time, required — The date the transaction was created.
  - `metadata` string[] — A list of metadata you can add to the transaction.
  - `amount` integer, required
  - `currency` string, required

---

[API](https://skmtc.dev/hoophq/apis/sequence.md) · [All operations](https://skmtc.dev/hoophq/apis/sequence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hoophq/sequence/revisions/b31e251374a1/schema)
