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
| Method | Return Type | Description | 
|---|---|---|
| GET journalLine | journalLine | Gets a journal line object. | 
| DELETE journalLine | none | Deletes a journal line object. | 
| POST journalLine | journalLine | Creates a journal line object. | 
| PATCH journalLine | journalLine | Updates a journal line object. | 
Navigation
| Navigation | Return Type | Description | 
|---|---|---|
| journal | journal | Gets the journal of the journalLine. | 
| customerPaymentJournal | customerPaymentJournal | Gets the customerpaymentjournal of the journalLine. | 
| account | account | Gets the account of the journalLine. | 
| attachments | attachments | Gets the attachments of the journalLine. | 
| dimensionSetLines | dimensionSetLines | Gets the dimensionsetlines of the journalLine. | 
Properties
| Property | Type | Description | 
|---|---|---|
| id | GUID | The unique ID of the journal line. Non-editable. | 
| journalId | GUID | The ID of the journal. | 
| journalDisplayName | string | The display name of the journal that this line belongs to. Read-Only. | 
| lineNumber | integer | The journal line item line number. | 
| accountType | NAV.genJournalAccountType | Specifies the type of account. It can be "G/L Account", "Customer", "Vendor", "Bank Account", "Fixed Asset", "IC Partner" or "Employee". | 
| accountId | GUID | The id of the account that the journal line is related to. | 
| accountNumber | string | The number of the account that the journal line is related to. | 
| postingDate | date | The date that the journal line is posted. | 
| documentNumber | string | Specifies a document number for the journal line. | 
| externalDocumentNumber | string | Specifies an external document number for the journal line. | 
| amount | decimal | Specifies the total amount (including VAT) that the journal line consists of. | 
| description | string | Specifies the description of the journal line. | 
| comment | string | A user specified comment on the journal line. | 
| taxCode | string | The tax code for the line. | 
| balanceAccountType | NAV.genJournalAccountType | Specifies the type of account. It can be "G/L Account", "Customer", "Vendor", "Bank Account", "Fixed Asset", "IC Partner" or "Employee". | 
| balancingAccountId | GUID | The balancing G/L Account ID. | 
| balancingAccountNumber | string | The balancing G/L Account number. | 
| lastModifiedDateTime | datetime | The 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"
}
Related information
GET journalLine
DELETE journalLine
POST journalLine
PATCH journalLine