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

![paymentTermConditionType diagram](media://7fc7cf63-7e21-4f0f-8c64-0a44c0a224c3)

## Content

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

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@period** | `xsd:string` | optional | [V3.1] Specifies the number of days. |
| **@amountTypeCode** | [amountTypeCodeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-amountTypeCodeType)  
`Debit` `Credit` | optional | [V3.1] 'Credit' if a discount is applied when paid before period expires. 'Debit' if a charge is applied when paid after period expires. |
| **@origcode** | `xsd:string` | [required] | Contains the code provided by the seller. |

## Used by

- [paymentTermType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726827179) / **paymentCondition**

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

```xml
<xsd:complexType name="paymentTermConditionType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="period" type="xsd:string" use="optional">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN" source="V3.1">Specifies the number of days.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="amountTypeCode" type="amountTypeCodeType" use="optional">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN" source="V3.1">'Credit' if a discount is applied when paid before period expires.
'Debit' if a charge is applied when paid after period expires.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <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:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>