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

![paymentDueDateType diagram](media://ab13c1b7-f825-4728-b012-b8c89238ad8a)

## Content

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

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@origcode** | `xsd:string` | [required] | Contains the code provided by the seller. |
| **@type** | [paymentDueDateTypeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-paymentDueDateTypeType)  
`Calculated` `Provided` | [required] | This attribute can have 2 values:<br>- 'Calculated' If a date is not provided by the Seller, the origcode is converted to a date by adding the number of days to the invoice date.
- 'Provided' If a date is provided by the selling party. |

## Used by

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

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

```xml
<xsd:complexType name="paymentDueDateType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="origcode" type="xsd:string" use="required">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN">Contains the code provided by the seller.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="type" type="paymentDueDateTypeType" use="required">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN">This attribute can have 2 values:
                            - 'Calculated'	If a date is not provided by the Seller, the origcode is converted to a date by adding the number of days to the invoice date.
                            - 'Provided'	If a date is provided by the selling party.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>