# VATCodes: Exact Online VAT Codes
- Catalog: `ExactOnlineREST`
- Schema: `VAT`
- Primary Keys: `ID`
- Label: VAT Codes
The data in this table is partitioned per value of the `Division` column.
Can retrieve data and change data using insert, update and delete.
## Table Columns
The columns of the table `VATCodes` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `Account` | `guid` | Account | ☐ | Tax account. |
| `AccountCode` | `varchar2`(18) | Account Code | ☐ | Code of Account. |
| `AccountName` | `varchar2`(50) | Account Name | ☐ | Name of Account. |
| `CalculationBasis` | `int16` | | ☐ | Indicates how to calculate the tax. 0 = based on the gross amount, 1 = based on the gross amount + another tax. |
| `Charged` | `char` | Charged | ☐ | Indicates if transactions using the VAT code are transactions of the domestic VAT charging regulation (such as those for subcontractors) or transactions that are registered within the EU. If Charged=1 and linked to a purchase invoice, both a line for the VAT to pay and a line for the VAT to claim are being created. |
| `Code` | `varchar2`(3) | Code | ☑ | VAT code. |
| `Country` | `varchar2`(30) | Country | ☐ | Obsolete. |
| `Created` | `datetime` | Created | ☐ | Creation date. |
| `CreatedUtc` | `datetime` | Created (UTC) | ☐ | Creation date in UTC. |
| `Creator` | `guid` | Creator | ☐ | User ID of creator. |
| `CreatorFullName` | `varchar2`(240) | Creator Full Name | ☐ | Name of creator. |
| `CustomField` | `varchar2` | Custom Field | ☐ | |
| `Description` | `varchar2`(60) | Description | ☐ | Description of the VAT code. |
| `Division` | `int32` | Division | ☐ | Division code. |
| `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. |
| `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. |
| `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. |
| `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. |
| `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. |
| `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. |
| `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. |
| `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. |
| `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. |
| `EUSalesListing` | `varchar2`(1) | EU Sales Listing | ☐ | Used in all legislations except France. Indicates if and how transactions using the VAT code appear on the ICT return (EU sales list). L = Listing goods, N = No listing, S = Listing services, T = Triangulation. |
| `ExcludeVATListing` | `int16` | Exclude VAT Listing | ☑ | |
| `GLDiscountPurchase` | `guid` | | ☐ | Indicates the purchase discount GL account linked to the VAT codes for German legislation. |
| `GLDiscountPurchaseCode` | `varchar2`(30) | | ☐ | Code of GLDiscountPurchase. |
| `GLDiscountPurchaseDescription` | `varchar2`(60) | | ☐ | Description of GLDiscountPurchase. |
| `GLDiscountSales` | `guid` | | ☐ | Indicates the sales discount GL account linked to the VAT codes for German legislation. |
| `GLDiscountSalesCode` | `varchar2`(30) | | ☐ | Code of GLDiscountSales. |
| `GLDiscountSalesDescription` | `varchar2`(60) | | ☐ | Description of GLDiscountSales. |
| `GLToClaim` | `guid` | | ☐ | G/L account that is used to book the VAT to claim. If you enter purchases with a VAT code, the VAT amount to be claimed is entered to this VAT account. Must be of type VAT. |
| `GLToClaimCode` | `varchar2`(30) | | ☐ | Code of GLToClaim. |
| `GLToClaimDescription` | `varchar2`(60) | | ☐ | Description of GLToClaim. |
| `GLToPay` | `guid` | | ☐ | G/L account that is used to book the VAT to pay. If you enter sales with a VAT code, the VAT amount to be paid is entered to this VAT account. Must be of type VAT. |
| `GLToPayCode` | `varchar2`(30) | | ☐ | Code of GLToPay. |
| `GLToPayDescription` | `varchar2`(60) | | ☐ | Description of GLToPay. |
| `ID` | `guid` | ID | ☑ | Primary key. |
| `IntraStat` | `char` | Intrastat | ☐ | Used in all legislations except France. Indicates if intrastat is used. |
| `IntrastatType` | `varchar2`(1) | Intrastat Type | ☐ | Used in France legislation only. Indicates if and how transactions using the VAT code appear on the DEB/DES return. L = Goods, N = Empty, S = Services. |
| `IsBlocked` | `char` | Is Blocked | ☐ | Indicates if the VAT code may still be used. |
| `LegalText` | `varchar2`(150) | Legal Text | ☐ | Legal description for VAT code to print in the total block of the invoice. |
| `Modified` | `datetime` | Modified | ☐ | Last modified date. |
| `ModifiedUtc` | `datetime` | Modified (UTC) | ☐ | Last modified date in UTC. |
| `Modifier` | `guid` | Modifier | ☐ | User ID of modifier. |
| `ModifierFullName` | `varchar2`(240) | Modified Full Name | ☐ | Name of modifier. |
| `OssCountry` | `varchar2` | OSS Country | ☐ | |
| `Percentage` | `double` | Percentage | ☐ | Percentage of the VAT code. |
| `TaxReturnType` | `int16` | Tax Return Type | ☐ | Indicates what type of Taxcode it is: can be VAT, IncomeTax. |
| `Type` | `varchar2`(1) | Type | ☐ | Indicates how the VAT amount should be calculated in relation to the invoice amount. B = VAT 0% (Only base amount), E = Excluding, I = Including, N = No VAT. |
| `VatDocType` | `varchar2`(1) | VAT Document Type | ☐ | Field in VAT code maintenance to calculate different VATs depending on the selected document type. P = purchase invoice, F = freelance invoice, E = expense voucher. The field is valid for witholding tax type. |
| `VatMargin` | `int16` | VAT Margin | ☑ | The VAT margin scheme is used for the trade of secondhand goods which are purchased without VAT (for example when a company buys a secondhand good from a private person). In the VAT margin scheme, the VAT is not calculated based on the sales price. Instead of that, the VAT is calculated based on the margin (gross sales price minus the gross purchase price). |
| `VATPartialRatio` | `int16` | VAT Partial Ratio | ☐ | Partial ratio explains which part of the VAT the company has to pay. Used in some branches where the sellers have a bad reputation, so the buyers have to take over the VAT-liability. |
| `VATTransactionType` | `varchar2`(1) | Vat Transaction Type | ☐ | Indicates the type of transactions for which the VAT code may be used. B = Both, P = Purchase, S = Sales. |