Create multiple journal entries
Changed onCreates 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.
Request
- Base URLhttps://api.mercury.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The Books instance to act on. Must be the token organization's own instance, which it defaults to.
Comma-separated list of expandable paths.
An optional identifier for audit logging.
Request body
Example request
[
{
"datetime": "2016-07-22T00:00:00Z",
"lineEntries": [
{
"ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
"tagIds": [
"7JRNsKwy2Lw66caxVU7WGC"
]
}
]
}
]Response
Changes
- info
endpoint added
- info