# Journal Lines _(Realtime-enabled)_

`GET` `POST` `PATCH` `DELETE` _(Table: Gen. Journal Line)_

```
eOne/core/v1.0/journalLines
```

The individual posting lines of a journal batch, one per account movement, with account, amount, applies-to, and dimensions. Deep-insertable on create.

## Nested under the journal batch

Deep-insertable under a [Journals](https://eonesolutions.github.io/eone-bc-integration/core-journals.md); the template and batch are stamped from the parent, and `sequence` (the line number) auto-assigns when omitted.

## Account resolver, currency, dimensions

`accountNumber` sets the line's account for the batch's account type, a [resolver](https://eonesolutions.github.io/eone-bc-integration/resolvers.md) that saves a lookup. `currencyCode` is an ISO code; blank means the local currency (LCY). The `shortcutDimension{1..8}Code` columns are writable per line. See [Dimensions](https://eonesolutions.github.io/eone-bc-integration/dimensions.md).

## Lines drafted by a staged document

A batch can also hold lines drafted by a [journal wrapper endpoint](https://eonesolutions.github.io/eone-bc-integration/journal-wrappers.md), because a staged document writes into whichever batch its setup names. Those lines appear in this collection on purpose, so a batch reconciles as a whole, but they belong to a document with its own approval and processing rules. `PATCH` and `DELETE` on such a line are refused: changing an amount or an account would corrupt the document just as effectively as deleting the line, and the document's history record is already written.

Reading is unaffected. To change or post one of those lines, work its document through the endpoint that created it.

## Journal Lines fields

_API column → BC field._

**Legend**

- _(req)_ required on create
- _(res)_ resolver
- _(cur)_ currency-translated
- _(ro)_ read-only
- _(ext)_ added to this endpoint by another extension (BC field name shown; its API column name is not known here)

| API | BC field | Notes |
| --- | --- | --- |
| `id` | SystemId | BC record GUID. _(ro)_ |
| `bcCompanyId` | bcCompanyId | The company this row belongs to - the same GUID that appears in the request URL. Present on every endpoint so a store pooling several companies can keep them apart without relying on which URL it called. _(ro)_ |
| `bcCompanyName` | bcCompanyName | The name of the company this row belongs to. _(ro)_ |
| `journalId` | Journal Batch Id | Parent batch GUID (stamped by SubPageLink). _(ro)_ |
| `journalDisplayName` | Journal Batch Name | _(ro)_ |
| `lineNumber` | Line No. | Stamped automatically. _(ro)_ |
| `accountType` | Account Type | G/L Account / Bank Account / Customer / Vendor. |
| `accountId` | accountId | Resolve the account by GUID. _(ro)_ |
| `accountNumber` | Account No. | The account number. |
| `postingDate` | Posting Date |  |
| `documentNumber` | Document No. |  |
| `externalDocumentNumber` | External Document No. |  |
| `currencyCode` | currencyCode | ISO code; blank = LCY. _(cur)_ |
| `amount` | Amount | Positive debit / negative credit. |
| `description` | Description |  |
| `comment` | Comment |  |
| `balancingAccountType` | Bal. Account Type | Balancing account type. |
| `balancingAccountId` | balancingAccountId | Resolve the balancing account by GUID. _(ro)_ |
| `balancingAccountNumber` | Bal. Account No. | Bank or G/L account (polymorphic). |
| `integrationId` | EONE Integration Id | Your external key; round-trips to the posted G/L entry. |
| `shortcutDimension1Code` | Shortcut Dimension 1 Code | Shortcut dimension 1. See Dimensions. |
| `shortcutDimension2Code` | Shortcut Dimension 2 Code | Shortcut dimension 2. See Dimensions. |
| `shortcutDimension3Code` | EONE Shortcut Dim 3 Code | Shortcut dimension 3. See Dimensions. |
| `shortcutDimension4Code` | EONE Shortcut Dim 4 Code | Shortcut dimension 4. See Dimensions. |
| `shortcutDimension5Code` | EONE Shortcut Dim 5 Code | Shortcut dimension 5. See Dimensions. |
| `shortcutDimension6Code` | EONE Shortcut Dim 6 Code | Shortcut dimension 6. See Dimensions. |
| `shortcutDimension7Code` | EONE Shortcut Dim 7 Code | Shortcut dimension 7. See Dimensions. |
| `shortcutDimension8Code` | EONE Shortcut Dim 8 Code | Shortcut dimension 8. See Dimensions. |
| `dimensionSetId` | Dimension Set ID | The dimension set this record carries. Join it to the dimensionSetEntries endpoint to resolve the full set of dimension codes and values, including any beyond the eight shortcut dimension columns. _(ro)_ |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |

## Related pages

Nested under [Journals](https://eonesolutions.github.io/eone-bc-integration/core-journals.md).
