generalLedgerEntry resource type

Important: Currently all requests to API v2.0 must append $schemaversion=2.0 to the request URL to work properly. This is to uptake the new improved $metadata model avaliable from Business Central 17. An update will be applied shortly to apply the schemaversion automatically to API v2.0. For all other APIs $schemaversion=1.0 will be the default, unless specified in the request URL with $schemaversion=2.0. A solution is being worked on, where the schemaversion will be defined in the extension.

Represents a general ledger entry in Dynamics 365 Business Central.


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


Method Return Type Description
GET generalLedgerEntry generalLedgerEntry Gets a general ledger entry object.
Navigation Return Type Description
account account Gets the account of the generalLedgerEntry.
attachments attachments Gets the attachments of the generalLedgerEntry.
dimensionSetLines dimensionSetLines Gets the dimensionsetlines of the generalLedgerEntry.


Property Type Description
id GUID The unique ID of the general ledger entry. Non-editable.
entryNumber integer G/L Entry number.
postingDate date The date that the general ledger entry is posted.
documentNumber string Specifies a document number for the general ledger entry.
documentType NAV.genJournalDocumentType Specifies the document type of the general ledger entry. It can be " ", "Payment", "Invoice", "Credit Memo", "Finance Charge Memo", "Reminder" or "Refund".
accountId GUID The id of the account that the general ledger entry is related to.
accountNumber string The number of the account that the general ledger entry is related to.
description string Specifies the description of the general ledger entry.
debitAmount decimal Specifies the debitAmount of the general ledger entry.
creditAmount decimal Specifies the creditAmount of the general ledger entry.
lastModifiedDateTime datetime The last datetime the general ledger entry was modified. Read-Only.

JSON representation

Here is a JSON representation of the generalLedgerEntry resource.

    "id": "GUID",
    "entryNumber": "integer",
    "postingDate": "date",
    "documentNumber": "string",
    "documentType": "NAV.genJournalDocumentType",
    "accountId": "GUID",
    "accountNumber": "string",
    "description": "string",
    "debitAmount": "decimal",
    "creditAmount": "decimal",
    "lastModifiedDateTime": "datetime"

See Also

GET generalLedgerEntry