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

![discountType diagram](media://554df22f-92f5-4ed9-a56c-2caad3162da0)

## Elements

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

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | `xsd:string` | optional | This attribute holds the type of discount that is being applied. |
| **@origcode** | `xsd:string` | [required] | Original code of the discount. (if code is supplied in original invoice) |

## Used by

- [discountsType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725483685) / **discount**

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

```xml
<xsd:complexType name="discountType">
        <xsd:sequence>
            <xsd:element name="description" type="xsd:string"/>
            <xsd:element name="monetaryAmount" type="monetaryAmountType" minOccurs="0"/>
            <xsd:element name="discountPercentage" minOccurs="0" type="xsd:string"/>
            <xsd:element name="tax" minOccurs="0" type="taxType"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="xsd:string" use="optional">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">This attribute holds the type of discount that is being applied.</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute name="origcode" type="xsd:string" use="required">
            <xsd:annotation>
                <xsd:documentation xml:lang="EN">Original code of the discount. (if code is supplied in original invoice)</xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>
    </xsd:complexType>

```
</details>