XSD Schema Description

ARInvoiceTransaction

Notes

	<xs:element name="ARInvoiceTransaction">
		<xs:annotation>
			<xs:documentation>Contains general ledger accounting associated to invoices in the ledger</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Transactions" minOccurs="1" maxOccurs="1">
					<xs:annotation>
						<xs:documentation>Contains multiple transactions</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Transaction" minOccurs="1" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Contains information associated to one transaction</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="BookDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation>Processing date</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ValueDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation>Date in general ledger</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="InvoiceNo" use="required">
										<xs:annotation>
											<xs:documentation>Invoice number</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="PaymentReference" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation>Paymentreference associated to the invoice</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="DebitGLAccount" type="xs:positiveInteger" use="required">
										<xs:annotation>
											<xs:documentation>Genral ledger account (Debit)</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="CreditGLAccount" type="xs:positiveInteger" use="required">
											<xs:annotation>
													<xs:documentation>Genral ledger account (Credit)</xs:documentation>
											</xs:annotation>
									</xs:attribute>								
									<xs:attribute name="CurrencyCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation>Currencycode according to ISO4217</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="Amount" use="required">
										<xs:annotation>
											<xs:documentation>Amount with two decimals</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:decimal">
												<xs:fractionDigits value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="PXId" type="xs:long" use="required">
											<xs:annotation>
													<xs:documentation>Identity of the transaction at PayEx. Useful for tracing and troubleshooting.</xs:documentation>
											</xs:annotation>
									</xs:attribute>
									<xs:attribute name="AccountingEventType" type="xs:string" use="required">
											<xs:annotation>
													<xs:documentation>Attribute where value contains both debit and credit GLAccount, for easier filtering. Format: "DebitGLAccount | CreditGLAccount"</xs:documentation>
											</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="Version" type="Version" use="required">
				<xs:annotation>
					<xs:documentation>The XSD version of the xml format. XSD</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CreatedDateTime" type="xs:dateTime" use="required">
				<xs:annotation>
					<xs:documentation>Date and time when the file was created</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CompanyNo" type="CompanyNumber" use="required">
				<xs:annotation>
					<xs:documentation>Your billing/accountsreceivablenumber at PayEx</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CompanyName" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>The name of your company</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>

CompanyNumber

	<xs:simpleType name="CompanyNumber">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="15"/>
			<xs:pattern value="[0-9]*"/>
		</xs:restriction>
	</xs:simpleType>

Version

Notes

	<xs:simpleType name="Version">
		<xs:annotation>
			<xs:documentation>Versions supported by this schema</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="1.0"/>
		</xs:restriction>
	</xs:simpleType>

eAccountingAction

	<xs:simpleType name="eAccountingAction">
		<xs:restriction base="xs:string">
			<xs:enumeration value="D"/>
			<xs:enumeration value="C"/>
		</xs:restriction>
	</xs:simpleType>

Created by David Persson on 2023/01/20 08:41