Books
Update multiple journal entries
Changed onUpdates one or more existing journal entries of a Books instance. Each update names a journal entry by ID and can change its datetime, description, and review status, and create, update, or delete its 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. Every ledger named by a created or updated line entry must belong to the Books instance and must not be read-only. Returns no content on success. To find journal entry IDs, use listBooksJournalEntries; to create journal entries, use bulkCreateBooksJournalEntries.
put/books/journal-entries
Request
- Base URLhttps://api.mercury.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
booksIdstring uuid
The Books instance to act on. Must be the token organization's own instance, which it defaults to.
Request body
Example request
{
"updates": [
{
"datetime": "2016-07-22T00:00:00Z",
"journalEntryId": "7JRNsKwy2Lw66caxVU7WGC",
"lineEntryChanges": {
"create": [
{
"ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
"tagIds": [
"7JRNsKwy2Lw66caxVU7WGC"
]
}
],
"delete": [
"7JRNsKwy2Lw66caxVU7WGC"
],
"update": [
{
"id": "7JRNsKwy2Lw66caxVU7WGC",
"ledgerId": "7JRNsKwy2Lw66caxVU7WGC",
"tagIds": [
"7JRNsKwy2Lw66caxVU7WGC"
]
}
]
}
}
]
}Changes
- info
endpoint added
- info