Edit

Share via


journal resource type (v1.0)

NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0).

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

Method Return Type Description
GET journal journal Gets a journal.
POST journal journal Creates a journal.
PATCH journal journal Updates a journal.
DELETE journal none Deletes a journal.

Properties

Property Type Description
id GUID The unique ID of the journal. Non-editable.
code string, maximum size 10 The code of the journal.
displayName string, maximum size 50 The display name of the journal.
lastModifiedDateTime datetime The last datetime the journal was modified. Read-Only.

Bound actions

The journal resource type offers a bound action called post which posts the corresponding general journal batch.

Posting the general journal batch is illustrated in the following example:
POST https://<server address>:<server API port>/<server instance name>/api/v1.0/companies({id})/journals({id})/Microsoft.NAV.post.

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

JSON representation

Here is a JSON representation of the resource.

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

Get Journal
Create Journal
Update Journal
Delete Journal