Create General Journal

Beta
Creates a new general journal with header and lines in a single request.

Path parameters

tenantstringRequired

Your Entra Tenant ID. More details.

environmentstringRequired

Your Business Central Environment. More details.

companystringRequired

Your Business Central Company. More details.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-api-versiondateOptional

Used for API versioning. More details.

Request

This endpoint expects an object.
codestringRequired
The code for the new journal batch.
lineslist of objectsRequired
A list of lines to create within the new journal.
descriptionstringOptional

The display name (description) for the new journal batch.

Response

This endpoint returns an object.
idUUID
The unique identifier for the journal.
codestring
The code for the journal batch.
lastModifiedDateTimedatetime
The date and time the journal was last modified.
lineslist of objects
A list of the lines within this journal.
displayNamestring or null

The display name (description) of the journal batch.

templateDisplayNamestring or null
The name of the journal template this journal is based on.
balancingAccountIdUUID or null
The default balancing account ID for the journal lines.
balancingAccountNumberstring or null
The default balancing account number for the journal lines.