account resource type

Represents an account 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 accountaccountGets a account object.
NavigationReturn TypeDescription
trialBalancetrialBalanceGets the trialbalance of the account.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the account. Non-editable.
numberstringSpecifies the number of the account.
displayNamestringSpecifies the account's name. This name will appear on all sales documents for the account.
categoryNAV.glAccountCategorySpecifies the category of the account. It can be " ", "Assets", "Liabilities", "Equity", "Income", "Cost of Goods Sold" or "Expense".
subCategorystringSpecifies the subcategory of the account category of the G/L account.
blockedbooleanSpecifies that entries can't be posted to the account. True indicates account is blocked and posting is not allowed.
accountTypeNAV.glAccountTypeThe type of the account that the account is related to. It can be "Posting", "Heading", "Total", "Begin Total" or "End Total".
directPostingbooleanSpecifies whether direct posting is enabled.
netChangedecimalThe account net change.
consolidationTranslationMethodstring
consolidationDebitAccountstring
consolidationCreditAccountstring
excludeFromConsolidationboolean
lastModifiedDateTimedatetimeThe last datetime the account was modified. Read-Only.

JSON representation

Here's a JSON representation of the account resource.

{
    "id": "GUID",
    "number": "string",
    "displayName": "string",
    "category": "NAV.glAccountCategory",
    "subCategory": "string",
    "blocked": "boolean",
    "accountType": "NAV.glAccountType",
    "directPosting": "boolean",
    "netChange": "decimal",
    "consolidationTranslationMethod": "string",
    "consolidationDebitAccount": "string",
    "consolidationCreditAccount": "string",
    "excludeFromConsolidation": "boolean",
    "lastModifiedDateTime": "datetime"
}

GET account