XML Schema description

ARAccounting

Notes

	<xs:element name="ARAccounting">
		<xs:annotation>
			<xs:documentation>Contains general ledger accounting associated to bills/invoices created in the billingsystem</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Vouchers">
					<xs:annotation>
						<xs:documentation>Contains multiple vouchers</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Voucher" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Contains accounting associated to one voucher</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ARTransactions">
											<xs:annotation>
												<xs:documentation>Contains multiple bills/inoices </xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ARTransaction" maxOccurs="unbounded">
														<xs:annotation>
															<xs:documentation>Contains information associated to one Bill/Invoice</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="Accountings">
																	<xs:annotation>
																		<xs:documentation>Contains accountings associated to one bill/invoice</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="Accounting" maxOccurs="unbounded">
																				<xs:annotation>
																					<xs:documentation>Contains information associated to one accounting</xs:documentation>
																				</xs:annotation>
																				<xs:complexType>
																					<xs:attribute name="AccountingAction" type="eAccountingAction" use="required">
																						<xs:annotation>
																							<xs:documentation>Accountingaction </xs:documentation>
																						</xs:annotation>
																					</xs:attribute>
																					<xs:attribute name="GLAccount" type="fIdentifier" use="required">
																						<xs:annotation>
																							<xs:documentation>General ledger account</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="GLProduct" type="fIdentifier" use="optional">
																						<xs:annotation>
																							<xs:documentation>General ledger product associated to the product in the productcatalog</xs:documentation>
																						</xs:annotation>
																					</xs:attribute>
																					<xs:attribute name="VatCode" type="fIdentifier" use="optional">
																						<xs:annotation>
																							<xs:documentation>General ledger VatCode</xs:documentation>
																						</xs:annotation>
																					</xs:attribute>
																					<xs:attribute name="CostCenter" type="fIdentifier" use="optional">
																						<xs:annotation>
																							<xs:documentation>Costcenter associated to the product in the productcatalog</xs:documentation>
																						</xs:annotation>
																					</xs:attribute>
																				</xs:complexType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
															<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="TransactionType" type="xs:string" use="required">
																<xs:annotation>
																	<xs:documentation>PayEx internal transactiontype, used for support</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="AccountType" type="fIdentifier" use="required">
																<xs:annotation>
																	<xs:documentation>"InvAcc" equals Invoice</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="CurrencyCode" use="required">
																<xs:annotation>
																	<xs:documentation>Currencycode according to ISO4217</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:maxLength value="3"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="InterCompanyCode" type="xs:string" use="optional">
																<xs:annotation>
																	<xs:documentation>Possible intercompanycode of the customer</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="CustomerNo" type="xs:string" use="optional">
																<xs:annotation>
																	<xs:documentation>Customernumber of the customer</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="AccountName" type="xs:string" use="optional">
																<xs:annotation>
																	<xs:documentation>AccountName equals InvoiceNumber for accounttype "InvAcc"</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="TransactionCause" type="xs:string" use="optional">
																<xs:annotation>
																	<xs:documentation>Possible transactioncauses are described separately</xs:documentation>
																</xs:annotation>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="VoucherSerie" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation>Voucher serie association</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="VoucherNo" type="xs:positiveInteger" use="required">
										<xs:annotation>
											<xs:documentation>Voucher reference number within voucherserie</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="BookDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation>Processing date</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.1"/>
			<xs:enumeration value="2.0">
				<xs:annotation>
					<xs:documentation>BookDate is now required in xsd</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</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>

fIdentifier

	<xs:simpleType name="fIdentifier">
		<xs:restriction base="xs:string">
			<xs:maxLength value="15"/>
			<xs:pattern value="[A-Za-z0-9]*"/>
		</xs:restriction>
	</xs:simpleType>

Created by Fredrik Nilsson on 2021/12/28 13:51