---
title: "Create a new batch of transactions to a ledger"
method: POST
path: "/{ledger}/transactions/batch"
tags: ["ledger.v1"]
---

# Create a new batch of transactions to a ledger

`POST /{ledger}/transactions/batch`

## Path parameters

- `ledger` string, required

## Request body

- Transactions
  - `transactions` TransactionData[], required
    - `postings` Posting[], required
      - `amount` integer, required
      - `asset` string, required
      - `destination` string, required
      - `source` string, required
    - `reference` string
    - `metadata` Metadata, nullable
    - `timestamp` string, date-time

## Response `200`

OK

- TransactionsResponse
  - `data` Transaction[], required
    - `timestamp` string, date-time, required
    - `postings` Posting[], required
      - `amount` integer, required
      - `asset` string, required
      - `destination` string, required
      - `source` string, required
    - `reference` string
    - `metadata` Metadata, nullable
    - `txid` integer, required
    - `preCommitVolumes` AggregatedVolumes
    - `postCommitVolumes` AggregatedVolumes

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/7ee573f0087f/schema)
