Books

Create multiple journal entries

Changed on

Creates one or more journal entries in a Books instance and returns them. Each journal entry has a datetime, a description, and line entries; each line entry is a debit or credit of an amount to one ledger, i.e. a general ledger (GL) account in the organization's chart of accounts, with its own description and optional tag IDs. Every ledger must belong to the Books instance and must not be read-only. Use expand to include related objects in the response, and modifiedBy to record the user responsible for the change in the audit log. To discover ledger IDs, use getBooksLedgers; to change existing journal entries, use bulkUpdateBooksJournalEntries.

post/books/journal-entries

Request

Query parameters

booksIdstring uuid

The Books instance to act on. Must be the token organization's own instance, which it defaults to.

expand'lineEntries' | 'lineEntriesTransactions' | 'lineEntriesLedger' | 'lineEntriesOpposingLedgerIds' | 'lineEntriesPaymentApplications' | 'lineEntriesLinePaymentApplications' | 'accrualSource' | 'transfer' | 'autocatResult'

Comma-separated list of expandable paths.

modifiedBystring uuid

An optional identifier for audit logging.

Request body

datetimestring yyyy-mm-ddThh:MM:ssZ required

The date and time of the journal entry

descriptionstring size < 513 required

Description of the journal entry

Example request

[
  {
    "datetime": "2016-07-22T00:00:00Z",
    "lineEntries": [
      {
        "ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
        "tagIds": [
          "7JRNsKwy2Lw66caxVU7WGC"
        ]
      }
    ]
  }
]

Response

Changes