journalLine resource type

Represents a journal line 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 journalLinejournalLineGets a journal line object.
DELETE journalLinenoneDeletes a journal line object.
POST journalLinejournalLineCreates a journal line object.
PATCH journalLinejournalLineUpdates a journal line object.
NavigationReturn TypeDescription
journaljournalGets the journal of the journalLine.
customerPaymentJournalcustomerPaymentJournalGets the customerpaymentjournal of the journalLine.
accountaccountGets the account of the journalLine.
attachmentsattachmentsGets the attachments of the journalLine.
dimensionSetLinesdimensionSetLinesGets the dimensionsetlines of the journalLine.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the journal line. Non-editable.
journalIdGUIDThe ID of the journal.
journalDisplayNamestringThe display name of the journal that this line belongs to. Read-Only.
lineNumberintegerThe journal line item line number.
accountTypeNAV.genJournalAccountTypeSpecifies the type of account. It can be "G/L Account", "Customer", "Vendor", "Bank Account", "Fixed Asset", "IC Partner" or "Employee".
accountIdGUIDThe id of the account that the journal line is related to.
accountNumberstringThe number of the account that the journal line is related to.
postingDatedateThe date that the journal line is posted.
documentNumberstringSpecifies a document number for the journal line.
externalDocumentNumberstringSpecifies an external document number for the journal line.
amountdecimalSpecifies the total amount (including VAT) that the journal line consists of.
descriptionstringSpecifies the description of the journal line.
commentstringA user specified comment on the journal line.
taxCodestringThe tax code for the line.
balanceAccountTypeNAV.genJournalAccountTypeSpecifies the type of account. It can be "G/L Account", "Customer", "Vendor", "Bank Account", "Fixed Asset", "IC Partner" or "Employee".
balancingAccountIdGUIDThe balancing G/L Account ID.
balancingAccountNumberstringThe balancing G/L Account number.
lastModifiedDateTimedatetimeThe last datetime the journal line was modified. Read-Only.

JSON representation

Here's a JSON representation of the journalLine resource.

{
    "id": "GUID",
    "journalId": "GUID",
    "journalDisplayName": "string",
    "lineNumber": "integer",
    "accountType": "NAV.genJournalAccountType",
    "accountId": "GUID",
    "accountNumber": "string",
    "postingDate": "date",
    "documentNumber": "string",
    "externalDocumentNumber": "string",
    "amount": "decimal",
    "description": "string",
    "comment": "string",
    "taxCode": "string",
    "balanceAccountType": "NAV.genJournalAccountType",
    "balancingAccountId": "GUID",
    "balancingAccountNumber": "string",
    "lastModifiedDateTime": "datetime"
}

GET journalLine
DELETE journalLine
POST journalLine
PATCH journalLine