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

![lineNumberType diagram](media://d535a7ae-7f9a-48ba-be5a-5c77b720194e)

## Content

Text content of type `xsd:string`, with the attributes below.

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | [lineNumberTypeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-lineNumberTypeType)  
8 code values | [required] | Mandatory:<br>- 'Invoice'
- 'Purchase' or 'Buyer' when available. Recommended:
- 'DesAdv' Optional:
- 'Seller'
- 'Claim'
- 'Deal'
- 'Project' |

## Used by

- [lineNumbersType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892760) / **lineNumber**

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

```xml
<xsd:complexType name="lineNumberType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="type" type="lineNumberTypeType" use="required">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN">Mandatory:
- 'Invoice'
- 'Purchase' or 'Buyer' when available.

Recommended:
- 'DesAdv'

Optional:
- 'Seller'
- 'Claim'
- 'Deal'
- 'Project'</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>