---
title: "Create a summary journal entry"
method: POST
path: "/v1/journal-entries"
tags: ["Summary Journal Entries"]
---

# Create a summary journal entry

`POST /v1/journal-entries`

This REST API reference describes how to manually create a summary journal entry. Request and response field descriptions and sample code are provided.
### Requirements
1.The sum of debits must equal the sum of credits in the summary journal entry.

2.The following applies only if you use foreign currency conversion:
  * If you have configured Aggregate transactions with different currencies during a Journal Run to "Yes", the value of the **currency** field must be the same as your tenant's home currency. That is, you must create journal entries using your home currency.
  * All journal entries in an accounting period must either all be aggregated or all be unaggregated. You cannot have a mix of aggregated and unaggregated journal entries in the same accounting period.

## Headers

- `Idempotency-Key` string
- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Request body

- POSTJournalEntryType — Container for custom fields of a Journal Entry object.
  - `accountingPeriodName` string, required — Name of the accounting period. The open-ended accounting period is named `Open-Ended`.
  - `currency` string, required — The type of currency used. Currency must be active.
  - `journalEntryDate` string, date, required — Date of the journal entry.
  - `journalEntryItems` POSTJournalEntryItemType[], required — Key name that represents the list of journal entry items.
    - `accountingCodeName` string, required — Name of the accounting code.
    - `accountingCodeType` 'AccountsReceivable' | 'On-Account Receivable' | 'Cash' | 'OtherAssets' | 'CustomerCashOnAccount' | 'DeferredRevenue' | 'SalesTaxPayable' | 'OtherLiabilities' | 'SalesRevenue' | 'SalesDiscounts' | 'OtherRevenue' | 'OtherEquity' | 'BadDebt' | 'OtherExpenses' — Accounting code type. This field is required if `accountingCodeName` is not unique. Note that `On-Account Receivable` is only available if you enable the Invoice Settlement feature.
    - `amount` string, decimal, required — Journal entry item amount in transaction currency.
    - `homeCurrencyAmount` string, decimal — Journal entry item amount in home currency. This field is required if you have set your home currency for foreign currency conversion. Otherwise, do not pass this field.
    - `type` 'Credit' | 'Debit', required — Type of journal entry item.
  - `notes` string — The number associated with the revenue event. Character limit: 2,000
  - `organizationLabel` string — Name of the organization that the journal entry belongs to. This field is only required when you have already turned on Multi-Org feature.
  - `segments` POSTJournalEntrySegmentType[] — List of segments that apply to the summary journal entry.
    - `segmentName` string, required — Name of segment. You must use the segment name that has already been specified in the default segment rule. In addition, segments need to be passed in the order where they were defined in the segmentation rule. If multiple segments are configured in the default rule, you need to specify all of them in order.
    - `segmentValue` string, required — Value of segment in this summary journal entry.
  - `transferredToAccounting` 'No' | 'Processing' | 'Yes' | 'Error' | 'Ignore' — Status shows whether the journal entry has been transferred to an accounting system.

## Response `200`

OK

- POSTJournalEntryResponseType
  - `journalEntryNumber` string — Journal entry number in the format JE-00000001.
  - `success` boolean — Returns `true` if the request was processed successfully.

## Other responses

- `500` — Internal Server Error
- `4XX` — Request Errors

---

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