---
title: "VatCodeSettingsByCode (Twinfield)"
description: "VAT Code Settings by Code"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/twinfield/Twinfield.Settings.VatCodeSettingsByCode
original: https://documentation.invantive.eu/en/datamodels/twinfield/Twinfield.Settings.VatCodeSettingsByCode
updated: 2026-11-01T17:45:47Z
license: https://documentation.invantive.eu/en/
---

# VatCodeSettingsByCode: Twinfield VAT Code Settings by Code

`read only` `per partition` `XML`

- Catalog: `Twinfield`
- Schema: `Settings`
- Primary Keys: `code`
- Label: VAT Code Settings by Code

The data in this table is partitioned per value of the `COMPANY_CODE` column.

Can only retrieve data.

## Summary

Settings of one VAT code, named by code. Every VAT code of a company is answered by the view VatCodeSettings; the percentages it holds over time by VatCodePercentages.

## API Source

- XML service: `webservices/processxml.asmx`
- XML topic: `vat`
- XML path: `/vat`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 54 |
| Full scan rows per minute | 1,690 |
| Point query rows per minute | 1,111 |
| Write rows per minute | 732 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `code` | `` | [x] |  | Code of the VAT code to read. |
| `COMPANY_CODE` | `` | [x] |  | Code of company. |

## Table Columns

The columns of the table `VatCodeSettingsByCode` 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 | Marks | Documentation |
|---|---|---|:---:|---|---|
| `CODE` | `varchar2` | Code | [x] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/code` |  |
| `COMPANY_CODE` | `varchar2` | Company ID | [x] |  |  |
| `COMPANY_NAME` | `varchar2` | Company Name | [x] |  |  |
| `CREATED` | `datetime` | Created | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/created` |  |
| `MODIFIED` | `datetime` | Modified | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/modified` |  |
| `NAME` | `varchar2` | Name | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/name` |  |
| `OFFICE` | `varchar2` | Office | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/office` | Company the VAT code belongs to. |
| `SHORTNAME` | `varchar2` | Short Name | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/shortname` |  |
| `STATUS` | `varchar2` | Status | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/status` | Either active or deleted. |
| `TOUCHED` | `int32` | Touched | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/touched` |  |
| `TYPE` | `varchar2` | Type | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/type` | Either sales or purchase. |
| `UID` | `varchar2` | UID | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/uid` |  |
| `USER` | `varchar2` | User | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/user` | User who created or last changed the VAT code. |
| `USER_NAME` | `varchar2` | User Name | [ ] | `/soap:Envelope/soap:Body/tns:ProcessXmlDocumentResponse/tns:ProcessXmlDocumentResult/vat/user/name` |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Twinfield](/en/release-notes/drivers?driver=twinfield)

### Changes of This Table, 26.0 to 27.0

<div class="rn-item" id="TFD-27.0-D017">

##### Table function Twinfield.Settings.VatCodeSettingsByCode is added

The table function has 14 columns and can select.

<div class="rn-chips">

- importance 3

</div>

</div>

[All changes of the driver, 26.0 to 27.0](/en/release-notes/drivers?driver=twinfield&step=26.0-to-27.0#twinfield-26.0-to-27.0)

