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

![discountsType diagram](media://161a27c1-03cb-4e9f-8f63-bd4313466509)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **discount** [required] | [discountType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726827210) | 1..n | Discounts are additional discounts on the invoice, like a promotional discount. A discount with the amountTypeCode="Credit" means that one deducts the discount from the invoiced amount. If the amountTypeCode="Debit", then one has to pay back the already received discount on a credit/correction invoice. The tax element is optional. |

## Used by

- [invoiceType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726106120) / **discounts**
- [invoiceLineType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725975206) / **discounts**

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

```xml
<xsd:complexType name="discountsType">
        <xsd:sequence>
            <xsd:element name="discount" type="discountType" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">Discounts are additional discounts on the invoice, like a promotional discount.
A discount with the amountTypeCode="Credit" means that one deducts the discount from the invoiced amount.
If the amountTypeCode="Debit", then one has to pay back the already received discount on a credit/correction invoice.
The tax element is optional.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>