Documentation Index

Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt

Use this file to discover all available pages before exploring further.

/public/v1/accounting/journal-entries

Prev Next
Post
/public/v1/accounting/journal-entries

Creates journal entries in batch. Journal entry numbers are not required to be unique — duplicate numbers are allowed and will create separate records.

Security
HTTP
Type Bearer

Put ONLY your JWT Bearer token on textbox below!

Body parameters
Expand All
object

Creates journal entries in batch.

journalEntries
Array of object (R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntry) Required

Collection of journal entries to create. Required.

object
number
string Required

Unique journal entry number. Required.

date
string (date) Required

Document date for the journal entry in ISO 8601 format. Required.

location
string (uuid) Required

Unique identifier (GUID) of the location. Required.

comment
string | null

Optional comment or memo for the journal entry header.

type
string | null

Entry type classification. Must be "Standard". Defaults to "Standard" if not specified.

Valid values[ "Standard" ]
details
Array of object (R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryDetail) Required

Collection of detail lines. Required; total debits must equal total credits.

object
glAccount
string (uuid) Required

Unique identifier (GUID) of the general ledger account. Required.

debitAmount
number (decimal) Required

Debit amount for this detail line. Mutually exclusive with creditAmount; one must be greater than zero.

creditAmount
number (decimal) Required

Credit amount for this detail line. Mutually exclusive with debitAmount; one must be greater than zero.

location
string (uuid) | null

Optional location override for this detail line. Defaults to the header location if not specified.

comment
string | null

Optional comment for this detail line.

Responses
207

Multi-Status – batch operation result containing per-item success or failure.

Expand All
object
results
Array of object (R365.Accounting.JournalEntries.Api.Contracts.Public.Models.CreateJournalEntryResult)

Collection of results, one per journal entry in the original request, ordered by request index.

object
requestIndex
integer (int32)

Zero-based position of this journal entry in the original request.

number
string

Journal entry number from the original request.

status
string

Outcome of the create operation.

Valid values[ "Unknown", "Succeeded", "Failed" ]
errorCode
string | null

Machine-readable error code. Present only when status is Failed.

errorMessage
string | null

Human-readable error description. Present only when status is Failed.

id
string (uuid) | null

Unique identifier (GUID) of the created journal entry. Present only when status is Succeeded.

400

Bad request – one or more validation errors occurred.

401

Unauthorized – authentication credentials are missing or invalid.

403

Forbidden – the caller does not have permission to perform this operation.

422

Unprocessable Entity – the request is well-formed but contains semantic errors (e.g. debits do not equal credits).

500

Internal Server Error – an unexpected error occurred while processing the request.