journalLines 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 line in 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 journalLinesjournalLinesGets a journal line.
POST journalLinesjournalLinesCreates a journal line.
PATCH journalLinesjournalLinesUpdates a journal line.
DELETE journalLinesnoneDeletes a journal line.
MethodTypeDescription
attachmentspaymentTermAttach documents to journalLine.
accountpaymentMethodGets the account.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the journal line. Non-editable.
journalDisplayNamestring, maximum size 10The display name of the journal that this line belongs to. Read-Only.
lineNumberintegerThe number of the journal line.
accountIdGUIDThe unique ID of the account that the journal line is related to.
accountNumberstring, maximum size 20The number of the account that the journal line is related to.
postingDatedateThe date that the journal line is posted.
documentNumberstring, maximum size 20Specifies a document number for the journal line.
externalDocumentNumberstring, maximum size 20Specifies an external document number for the journal line.
amountdecimalSpecifies the total amount (including VAT) that the journal line consists of.
descriptionstring, maximum size 50The description of the journal line, provided by the user or autocreated.
commentstring, maximum size 250A user specified comment on the journal line.
lastModifiedDateTimedatetimeThe last datetime the journal line was modified. Read-Only.

Relationships

A journal line is a subpage of a journal. It cannot be accessed directly.

A journal line can be a "Parent Entity" of the dimension lines.

An Account (accountId) must exist in the Accounts table.

JSON representation

Here is a JSON representation of the resource.

{
    "id": "GUID",
    "journalDisplayName": "string",
    "lineNumber": "integer",
    "accountId": "GUID",
    "accountNumber": "string",
    "postingDate": "date",
    "documentNumber": "string",
    "externalDocumentNumber": "string",
    "amount": "decimal",
    "description": "string",
    "comment": "string",
    "lastModifiedDateTime": "datetime"
}

Journal Line
Get Journal Line
Create Journal Line
Update Journal Line
Delete Journal Line