dokumentace k produktu Invantivesoučást invantive cloud
Fóra podpory InvantivePřihlásit se/ Zaregistrujte se

TransactionLines: Exact Online Transaction Lines

read only per partition webhook REST

  • Katalog: ExactOnlineREST
  • Schéma: FinancialTransaction
  • Primární klíče: ID
  • Label: Transaction Lines

The lines of financial entries: the general ledger, read through the regular Exact Online REST API at 60 rows per call.

Data v této tabulce jsou rozdělena na hodnotu sloupce Division.

Lze načítat pouze data.

Shrnutí

The same rows are available as TransactionLinesBulk (the bulk API, 1,000 rows per call, read-only) and as TransactionLinesIncremental (a local copy kept current through the sync API). A select on TransactionLines which can return more than 60 rows is read from TransactionLinesBulk by the driver itself, when TransactionLinesBulk filters on the platform on the same columns and has every column the select uses (provider attribute use-bulk-for-select, default true); the rows can then come in another order. TransactionLines is the one of them that can be written to. Exact Online answers a request on this table only when it filters on one of a fixed set of columns; those columns are filtered on the platform. A query that filters only on other columns reads all rows and filters them afterwards. Exact Online accepts a filter on FinancialYear only together with FinancialPeriod, and the other way round; the driver adds the missing one itself. Special line numbers: LineNumber 0 holds the total of an entry on the account of the customer or supplier and LineNumber 9999 its VAT; the lines of a general journal entry can lack a LineNumber. Leave out 0 and 9999 to sum the lines of entries; LineNumber = 0 gives one row per sales or purchase entry, as the obsolete table Transactions did. See https://forums.invantive.com/t/1855.

Změny přicházejí prostřednictvím tématu webhooku FinancialTransactions na EntryID.

Zdroj API

  • Koncový bod: /api/v1/{division}/financialtransaction/TransactionLines
  • Metadata: /api/v1/{division}/financialtransaction/$metadata

Provozní charakteristiky

Charakteristika Hodnota
Průměrná latence přístupu (ms) 5
Počet řádků při úplném skenování za minutu 7,200
Počet řádků Query za minutu 300
Počet řádků za minutu 300

Výsledek lze uložit do mezipaměti na straně klienta.

Sloupce tabulky

Sloupce tabulky TransactionLines jsou uvedeny níže. Každý sloupec má datový typ SQL. Pro každý požadovaný sloupec musí být vždy během vkládání a aktualizace zadána nová hodnota, která není nulová (non-null).

Jméno Datový typ Štítek Vyžadováno Značky Dokumentace
Account guid Účet filtry na platformě, zapisovatelné Reference to account.
AccountCode varchar2(18) Kód účtu filtry na platformě, zapisovatelné Code of the Account.
AccountName varchar2(50) Název Účtu writable Name of account.
AmountDC double Částka Rozdělení Měna writable Amount in the default currency of the company.
AmountFC double Částka v cizí měně writable Amount in the currency of the transaction.
AmountVATBaseFC double Částka Základ pro výpočet DPH Cizí měna writable Vat base amount in the currency of the transaction.
AmountVATFC double Částka DPH v cizí měně writable Vat amount in the currency of the transaction.
Asset guid Aktivum filtry na platformě, zapisovatelné Reference to asset.
AssetCode varchar2(30) Kód aktiva writable Code of Asset.
AssetDescription varchar2(60) Popis majetku writable Description of Asset.
CostCenter varchar2(8) Nákladové středisko filtry na platformě, zapisovatelné Reference to cost center.
CostCenterDescription varchar2(60) Popis nákladového střediska writable Description of CostCenter.
CostUnit varchar2(8) Nákladová jednotka filtry na platformě, zapisovatelné Reference to cost unit.
CostUnitDescription varchar2(60) Nákladová jednotka – popis writable Description of CostUnit.
Created datetime Vytvořeno writable Datum vytvoření.
CreatedUtc datetime Vytvořeno (UTC) writable Creation date in UTC.
Creator guid Tvůrce writable User ID of creator.
CreatorFullName varchar2(240) Celé jméno autora writable Name of creator.
Currency varchar2(30) Měna writable Currency.
CustomField varchar2 Vlastní pole writable
Date datetime Datum filtry na platformě, zapisovatelné Date.
Description varchar2(60) Popis filtry na platformě, zapisovatelné Description.
DisplayDocumentsUrl varchar2 Zobrazit dokumenty (URL) writable URL to display documents attached to this transaction using Get My Report.
Division int32 Divize Division code.
DivisionCompanyCoCNumber varchar2(60) Číslo obchodní komory divize writable Chamber of commerce number of the Exact Online division.
DivisionCompanyIBANNumber varchar2(50) Číslo IBAN divize writable IBAN number of the Exact Online division.
DivisionCompanyName varchar2(50) Divize Název společnosti writable Company name of the Exact Online division.
DivisionCompanyRSINNumber varchar2(9) Číslo divize RSIN writable RSIN number of the Exact Online division.
DivisionCompanyVATNumber varchar2(35) Daňové identifikační číslo divize writable VAT number of the Exact Online division.
DivisionCompanyWageTaxNumber varchar2(60) Číslo pro daň z mezd divize writable Wage tax number of the Exact Online division.
DivisionLabel varchar2(128) Název divize writable Label of the Exact Online division.
DivisionName varchar2(50) Název správního orgánu writable Name of the Exact Online division.
DivisionOwnerCompanyName varchar2(50) Jméno držitele předplatného writable Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs.
DivisionOwnerCompanyNumber varchar2(18) Číslo předplatitele writable Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs.
DivisionShortName int64 Zkrácený název divize writable Short name of the Exact Online division.
Document guid Dokument filtry na platformě, zapisovatelné Reference to document.
DocumentNumber int32 Číslo dokumentu writable Number of the document.
DocumentSubject varchar2(256) Předmět dokumentu writable Subject of the document.
DueDate datetime Datum Splatnosti writable Date that payment should be done.
EntryID guid ID záznamu filtry na platformě, zapisovatelné The transaction lines that make up a financial entry share the same EntryID.
EntryNumber int32 Číslo záznamu filtry na platformě, zapisovatelné Entry number of the header.
ExchangeRate double Směnný kurz writable Exchange rate.
ExternalLinkDescription varchar2 Popis externího odkazu writable
ExternalLinkReference varchar2 Odkaz na externí zdroj writable
ExtraDutyAmountFC double Částka za nadstandardní službu v cizí měně writable Extra duty amount.
ExtraDutyPercentage double Příplatek za práci v nadstandardní pracovní době (%) writable Extra duty percentage.
FinancialPeriod int16 Účetní období filtry na platformě, zapisovatelné Finanční období.
FinancialYear int16 Účetní rok filtry na platformě, zapisovatelné Finanční rok.
GLAccount guid Účet hlavní knihy filtry na platformě, zapisovatelné General ledger account.
GLAccountBalanceSide varchar2(1) Stránka se zůstatkem účtu GL writable Balance side of transactions on this GL account.
GLAccountBalanceType varchar2(1) Typ zůstatku na účtu GL writable Balance type of transactions on this GL account, being either 'B' for Balance or 'W' for Profit and Loss.
GLAccountCode varchar2(30) Kód účtu GL filtry na platformě, zapisovatelné Code of the G/L account.
GLAccountDescription varchar2(60) Popis účtu GL writable Description of the G/L account.
GLAccountRevalueCurrency char GL Účet – Přecenění měny writable Whether to revalue amounts posted on this GL account.
GLAccountSearchCode varchar2(9) Kód pro vyhledávání účtu GL writable User-friendly search code for the GL account.
GLAccountType int32 Typ účtu GL writable Type of GL account.See view GLAccountTypes.
GLAccountTypeDescription varchar2 Popis typu účtu GL writable Description of the GL account type.
GLAccountUseCostCenter char Použít nákladové středisko writable Indicator whether to use cost centers for transaction lines on the GL account.
GLAccountUseCostUnit char Použít jednotku nákladů writable Indicator whether to use cost units for transaction lines on the GL account.
GLAccountVatCode varchar2(3) Kód DPH účtu hlavní knihy writable Associated VAT code of the GL account.
ID guid ID filtry na platformě, zapisovatelné Primary key.
InvoiceNumber int32 Číslo Faktury filtry na platformě, zapisovatelné Invoice number.
Item guid Položka filtry na platformě, zapisovatelné Reference to item.
ItemCode varchar2(30) Kód položky writable Code of Item.
ItemDescription varchar2(255) Popis položky writable Description of Item.
JournalCode varchar2(20) Kód časopisu filtry na platformě, zapisovatelné The journal code.
JournalDescription varchar2(60) Popis časopisu writable The journal description.
LineNumber int32 Číslo řádku writable Line number.
LineType int16 Typ čáry writable Line type.
Modified datetime Upraveno filtry na platformě, zapisovatelné Datum poslední změny.
ModifiedUtc datetime Upraveno (UTC) writable Last modified date in UTC.
Modifier guid Modifikátor writable User ID of modifier.
ModifierFullName varchar2(240) Upravené celé jméno writable Name of modifier.
Notes varchar2 Poznámky writable Extra remarks.
OffsetID guid ID kompenzačního účtu GL filtry na platformě, zapisovatelné OffsetID.
OrderNumber int32 Číslo Objednávky filtry na platformě, zapisovatelné Order number.
PaymentDiscountAmount double Výše slevy z platby writable Discount amount when paid in time.
PaymentReference varchar2(60) Platební reference writable Payment reference.
Project guid Projekt filtry na platformě, zapisovatelné Reference to project.
ProjectCode varchar2(20) Kód Projektu filtry na platformě, zapisovatelné Code of Project.
ProjectDescription varchar2(60) Popis projektu writable Description of Project.
ProjectWBS guid Projektová struktura prací (WBS) writable Project WBS ID.
ProjectWBSDescription varchar2 Popis struktury rozdělení práce (WBS) projektu writable Project WBS description.
Quantity double Množství writable Quantity.
SerialNumber varchar2(30) Sériové číslo writable Serial number of item.
ShopOrder guid Objednávka v obchodě filtry na platformě, zapisovatelné Reference to shop order.
Status int16 Stav filtry na platformě, zapisovatelné 20 = Open, 50 = Processed.
Subscription guid Předplatné filtry na platformě, zapisovatelné Reference to subscription line.
SubscriptionDescription varchar2(60) Popis předplatného writable Description of subscription line.
TrackingNumber varchar2(100) Sledovací číslo writable Tracking number of item.
TrackingNumberDescription varchar2(240) Popis sledovacího čísla writable Tracking number description.
Type int32 Typ filtry na platformě, zapisovatelné The transaction type.Possible values: see TransactionLineTypes.
VATCode varchar2(3) Kód DPH filtry na platformě, zapisovatelné Kód DPH.
VATCodeDescription varchar2(60) Kód DPH – popis writable Description of VAT code.
VATPercentage double Sazba DPH writable Vat percentage.
VATType varchar2(1) Typ DPH filtry na platformě, zapisovatelné VAT type.
YourRef varchar2(60) Vaše reference filtry na platformě, zapisovatelné Your reference (of customer).

Klíče

Klíč Sloupec Vztahuje se k Druh Popis
TransactionLines_Account_Accounts_fk Account Accounts.ID Klíč
TransactionLines_Asset_Assets_fk Asset Assets.ID Klíč
TransactionLines_CostCenter_Costcenters_fk CostCenter Costcenters.Code Klíč
TransactionLines_CostUnit_Costunits_fk CostUnit Costunits.Code Klíč
TransactionLines_Creator_Users_fk Creator Users.UserID Klíč
TransactionLines_Currency_Currencies_fk Currency Currencies.Code Klíč
TransactionLines_Document_Documents_fk Document Documents.ID Klíč
TransactionLines_GLAccountType_GLAccountTypes_cv GLAccountType GLAccountTypes.code Kandidát Named after the domain; 18 distinct values in the sandbox division on 2026-12-01, all codes of the domain.
TransactionLines_GLAccount_GLAccounts_fk GLAccount GLAccounts.ID Klíč
TransactionLines_Item_Items_fk Item Items.ID Klíč
TransactionLines_JournalCode_Journals_fk JournalCode Journals.Code Klíč
TransactionLines_Modifier_Users_fk Modifier Users.UserID Klíč
TransactionLines_ProjectWBS_ProjectWBS_fk ProjectWBS ProjectWBS.ID Klíč
TransactionLines_Project_Projects_fk Project Projects.ID Klíč
TransactionLines_ShopOrder_ShopOrders_fk ShopOrder ShopOrders.ID Klíč
TransactionLines_Subscription_Subscriptions_fk Subscription Subscriptions.EntryID Klíč
TransactionLines_Type_TransactionTypes_cv Type TransactionTypes.code Klíč The documentation of the column lists the codes: The transaction type.10 = Opening balance 142 = Issue to parent (Exact Online REST reference, 2026-12-01)
TransactionLines_VATCode_VATCodes_fk VATCode VATCodes.Code Klíč

Odkazuje na

Příklad Query

--
-- Financial transaction lines from all journals and selected companies. Note that LineNumber 0 reflects the header and 9999 the VAT.
--
-- Table documentation: https://documentation.invantive.eu/2017R2/exact-online-data-model/webhelp/exact-online-connector-exactonlinerest-incremental-transactionlinesincremental.html
--
-- Related forum post: https://forums.invantive.eu/t/recommended-and-popular-exact-online-tables-for-2022/2340
--
select *
from   ExactOnlineREST.Incremental.TransactionLinesIncremental@eol
limit  100

Poznámky k Vydání

Jaké změny v tabulkách, sloupcích, atributech a funkcích ovladače nastaly v jednotlivých verzích: