---
title: "Create multiple Journal Entries"
method: POST
path: "/journal-entries/{booksId}"
tags: ["Books"]
---

# Create multiple Journal Entries

`POST /journal-entries/{booksId}`

## Request

- Base URL: `https://api.mercury.com/api/v1`
- URL: `https://api.mercury.com/api/v1/journal-entries/{booksId}`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

## Path parameters

- `booksId` string, uuid, required

## Query parameters

- `expand` 'line_entries' | 'line_entries.transaction' | 'line_entries.ledger' | 'line_entries.opposing_ledger_ids' | 'line_entries.payment_applications': Comma-separated list of expandable paths.
- `modified_by` string, uuid: An optional identifier for audit logging.

## Request body

- TealCreateJournalEntryParams[]
  - `datetime` string, yyyy-mm-ddThh:MM:ssZ, required
  - `description` string, required: An arbitrary string on the object, useful for displaying to the user.
  - `line_entries` TealCreateJournalEntryLineEntry[], required: The Line Entry objects to be associated with the Journal Entry. Must include at least two Line Entries, one debit and one credit, and the sum of the `amount`s of all debit entries must equal the sum of the `amount`s of the credit entries.
    - `amount` number, double, required: A dollar amount
    - `debit_credit` 'debit' | 'credit', required: Indicates if the amount is a credit or debit.
    - `description` string, required: An arbitrary string on the object, useful for displaying to the user or for categorization.
    - `ledger_id` string, base58 (max length 22), required: The ID of the Line Entry's Ledger.
    - `tag_ids` string[], nullable: A list of IDs of the Tag objects associated with the Line Entry.

## Response `200`

## Other responses

- `400`: Invalid `body` or `modified_by` or `expand`
- `404`: `booksId` not found

## Changes

- **2026-10-16** `ab652aa5aa8e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mercurytechnologies/apis/mercury-api/changes/journal-entries/:booksId/post.md)

---

[API](https://skmtc.dev/mercurytechnologies/apis/mercury-api.md) - [All operations](https://skmtc.dev/mercurytechnologies/apis/mercury-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mercurytechnologies/apis/mercury-api/revisions/ab652aa5aa8e?raw)
