Skip to main content

Finance endpoints

The general ledger, chart of accounts, budgets, dimensions, posting setup, VAT groups and currencies — the basis of most financial reporting.

All URLs on this page are relative to the company URL, https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/datawareness/endpoints/v1.0/companies({companyId})/. See Construction of the URL.

Master data​

EndpointDescriptionBusiness keySource tableTier
chartOfAccountCategoriesG/L account category definitions.entryNoG/L Account CategoryPremium
chartOfAccountsG/L accounts from the chart of accounts.noG/L AccountFree
countriesRegionsCountry/region master data (ISO codes, EU membership, address format).codeCountry/RegionPremium
currenciesCurrency master data.codeCurrencyPremium
currencyExchangeRatesCurrency exchange rates by starting date.currencyCode&&startingDateCurrency Exchange RatePremium
dimensionsDimension definitions for financial analysis.codeDimensionPremium
dimensionSetEntriesRaw dimension set entries; one row per dimension on a dimension set.dimensionSetId&&dimensionCodeDimension Set EntryPremium
dimensionValuesValues for each dimension used in analysis.dimensionCode&&codeDimension ValuePremium
genBusinessPostingGroupsGeneral business posting group definitions.codeGen. Business Posting GroupPremium
generalPostingSetupGeneral posting setup with account mappings.genBusPostingGroup&&genProdPostingGroupGeneral Posting SetupPremium
glBudgetsG/L budget definitions.nameG/L Budget NamePremium
glSetupGeneral ledger setup including dimension codes and LCY.primaryKeyGeneral Ledger SetupPremium
paymentTermsPayment terms definitions.codePayment TermsPremium
vatBusinessPostingGroupsVAT business posting group definitions.codeVAT Business Posting GroupPremium
vatProductPostingGroupsVAT product posting group definitions.codeVAT Product Posting GroupPremium

Transactional data​

EndpointDescriptionBusiness keySource tableTier
glBudgetEntriesBudget entries for G/L accounts.entryNoG/L Budget EntryPremium
glEntriesPosted general ledger entries.entryNoG/L EntryFree
glItemLedgerRelationsG/L entry to value entry relations.glEntryNo&&valueEntryNoG/L - Item Ledger RelationPremium

Example queries​

G/L entries for a posting period​

GET .../glEntries?$filter=postingDate ge 2026-01-01 and postingDate lt 2026-02-01
&$select=entryNo,postingDate,documentNo,gLAccountNo,amount,dimensionSetID

Sum amount per gLAccountNo in your BI tool for a trial balance.

Chart of accounts​

GET .../chartOfAccounts?$select=no,name,accountType,incomeBalance,accountCategory,totaling

Exchange rates for one currency​

GET .../currencyExchangeRates?$filter=currencyCode eq 'USD'
&$orderby=startingDate desc
&$select=currencyCode,startingDate,exchangeRateAmount,relationalExchRateAmount

Dimension values behind G/L entries​

GET .../dimensionSetEntries?$select=dimensionSetId,dimensionCode,dimensionValueCode

Join dimensionSetEntries.dimensionSetId to glEntries.dimensionSetID to get every dimension of an entry, not only the global and shortcut dimensions carried on the entry itself.

Tips​

  • Free tier: chartOfAccounts and glEntries are available without a Premium subscription.
  • Dimensions: glSetup tells you which dimension codes are the global and shortcut dimensions 1–8, so you can label globalDimension1Code and friends. The relationships metadata carries this as a condition, for example dimensionCode=glSetup.globalDimension1Code.
  • Fields: every endpoint's fields, with types, are listed by properties — see Metadata discovery. The same list is on the endpoint's page under BI Endpoints in Business Central.