---
title: "OTRN V3.2 · discountType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/727384129/OTRN%20V3.2%20%C2%B7%20discountType"
format: markdown
---
**Complex type** in namespace `(none)` · part of [OTRN Library V3.2](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727023656)

## Diagram

![discountType diagram](media://d8823c4f-9879-4c16-ade3-e779e9183f2a)

## Elements

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

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | `xsd:string` | optional |  |
| **@origcode** | `xsd:string` | [required] |  |

## Used by

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

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

```xml
<xsd:complexType name="discountType">
        <xsd:sequence>
            <xsd:element name="description" type="xsd:string"/>
            <xsd:element name="monetaryAmount" minOccurs="0" type="FinancialAmountType"/>
            <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:attribute name="origcode" type="xsd:string" use="required"/>
    </xsd:complexType>

```
</details>