journal resource type

Represents a journal in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET journaljournalGets a journal object.
DELETE journalnoneDeletes a journal object.
POST journaljournalCreates a journal object.
PATCH journaljournalUpdates a journal object.

Bound actions

The journal resource type offers a bound action called post which posts the corresponding journal batch. This is illustrated in the following example: POST https://<server address>:<server API port>/<server instance name>/api/v2.0/companies({id})/journals({id})/Microsoft.NAV.post

The response has no content; the response code is 204.

NavigationReturn TypeDescription
journalLinesjournalLinesGets the journallines of the journal.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the journal. Non-editable.
codestringThe code of the journal.
displayNamestringSpecifies the journal's name. This name will appear on all sales documents for the journal.
templateDisplayNamestring
lastModifiedDateTimedatetimeThe last datetime the journal was modified. Read-Only.
balancingAccountIdGUIDThe balancing G/L Account ID.
balancingAccountNumberstringThe balancing G/L Account number.

JSON representation

Here's a JSON representation of the journal resource.

{
    "id": "GUID",
    "code": "string",
    "displayName": "string",
    "templateDisplayName": "string",
    "lastModifiedDateTime": "datetime",
    "balancingAccountId": "GUID",
    "balancingAccountNumber": "string"
}

GET journal
DELETE journal
POST journal
PATCH journal