---
title: "Invoice V3.1 · levyType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/726859914/Invoice%20V3.1%20%C2%B7%20levyType"
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

![levyType diagram](media://df8a931c-5ba4-446e-97b5-8670f3c56179)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **description** | `xsd:string` | 0..1 |  |
| 2 | **monetaryAmount** [required] | [monetaryAmountType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726794344) | 1..1 |  |
| 3 | **tax** | [taxType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726138937) | 0..1 |  |

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | `xsd:string` | [required] | This amount is always positive. The amountTypeCode specifies if the amount is a positive or negative value. |
| **@origrate** | `xsd:string` | optional | Original rate of the levy. (if rate is supplied in original invoice) |
| **@origcode** | `xsd:string` | optional | Original code of the levy. (if code is supplied in original invoice) |

## Used by

- [leviesType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725614663) / **levy**

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

```xml
<xsd:complexType name="levyType">
        <xsd:sequence>
            <xsd:element name="description" type="xsd:string" minOccurs="0"/>
            <xsd:element name="monetaryAmount" type="monetaryAmountType"/>
            <xsd:element name="tax" type="taxType" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="xsd:string" use="required">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">This amount is always positive. The amountTypeCode specifies if the amount is a positive or negative value.</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 levy. (if 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 levy. (if code is supplied in original invoice)</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>

```
</details>