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

![invoiceLinesType diagram](media://01426b43-4781-461d-9e66-a72ab05582e1)

## Elements

| # | Element | Type | Occurs | Description |
| --- | --- | --- | --- | --- |
| 1 | **invoiceLine** | [invoiceLineType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/725975206) | 0..n | In case of type of invoice is 'Invoice' at least one invoice line should be available. In case of type of invoice is 'Credit' or 'Debit' no invoice lines available is allowed. |

## Used by

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

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

```xml
<xsd:complexType name="invoiceLinesType">
        <xsd:sequence>
            <xsd:element name="invoiceLine" type="invoiceLineType" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation xml:lang="EN">In case of type of invoice is 'Invoice' at least one invoice line should be available.
In case of type of invoice is 'Credit' or 'Debit' no invoice lines available is allowed.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

```
</details>