---
title: "Invoice V3.1 · taxType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/726138937/Invoice%20V3.1%20%C2%B7%20taxType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Invoice V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262)

## Diagram

![taxType diagram](media://d03b54be-f2a3-4725-bb9f-2ca31d1689da)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **monetaryAmount** | [monetaryAmountType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726794344) | 0..1 |  |

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | [taxTypeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-taxTypeType)  
`NationalTax` `RegionalTax` `VATReverseCharge` | [required] | [V3.1] This attribute holds the type of tax that is being applied. Possible values are:<br>- 'NationalTax'
- 'RegionalTax'
- 'VATReverseCharge' |
| **@rate** | `xsd:string` | optional | [V3.1] This attribute is the normalized VAT code by Onetrail. Please check with Onetrail TPN™ support- or implementation team for a VAT list per country. Possible values are in the portal database Examples:UK HIGH,DE LOW,IT ZERO. |
| **@origrate** | `xsd:string` | optional | Original rate of the tax. (if the rate is supplied in original invoice) |
| **@origcode** | `xsd:string` | optional | Original code of the tax. (if the code is supplied in original invoice) |

## Used by

- [levyType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726859914) / **tax**
- [levyTotalType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725647413) / **tax**
- [taxesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725483654) / **tax**
- [chargeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726368562) / **tax**
- [discountType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726827210) / **tax**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="taxType">
        <xsd:sequence>
            <xsd:element name="monetaryAmount" type="monetaryAmountType" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="taxTypeType" use="required">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN" source="V3.1">This attribute holds the type of tax that is being applied. Possible values are:
- 'NationalTax'
- 'RegionalTax'
- 'VATReverseCharge'</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="rate" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN" source="V3.1">This attribute is the normalized VAT code by Onetrail. Please check with Onetrail TPN™ support- or implementation team for a VAT list per country. Possible values are in the portal database
Examples:UK HIGH,DE LOW,IT ZERO.</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="origrate" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">Original rate of the tax. (if the rate is supplied in original invoice)</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="origcode" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">Original code of the tax. (if the code is supplied in original invoice)</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>

```
</details>