XML Schema description

AccountingDetail

  <xs:element name="AccountingDetail">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="BookDates" maxOccurs="1" minOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="BookDate" maxOccurs="unbounded" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Vouchers" maxOccurs="1" minOccurs="1">
                      <xs:annotation>
                        <xs:documentation>Vouchers grouped by book date</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Voucher" maxOccurs="unbounded" minOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="VoucherDetails" maxOccurs="1" minOccurs="1">
                                    <xs:annotation>
                                      <xs:documentation>Voucher details grouped by VoucherSerie, VoucherNo and ValueDate</xs:documentation>
                                    </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="VoucherDetail" maxOccurs="unbounded" minOccurs="1">
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="VoucherDetailTransactions" maxOccurs="1" minOccurs="1">
                                              <xs:annotation>
                                                <xs:documentation>Transaction details grouped by PxId, TransactionType, AccountType and AccountName</xs:documentation>
                                              </xs:annotation>
                                              <xs:complexType>
                                                <xs:sequence>
                                                  <xs:element name="VoucherDetailTransaction" maxOccurs="unbounded" minOccurs="2">
                                                    <xs:complexType>
                                                      <xs:sequence>
                                                        <xs:element name="Dimensions" maxOccurs="1" minOccurs="0">
                                                          <xs:annotation>
                                                            <xs:documentation>Dimensions are not normally used. Possible dimensions, if any, are described separately</xs:documentation>                                     
                                                          </xs:annotation>
                                                          <xs:complexType>
                                                            <xs:sequence>
                                                              <xs:element name="Dimension" maxOccurs="5" minOccurs="1">
                                                                <xs:complexType>
                                                                  <xs:attribute name="DimensionType" use="required" type="xs:string"/>
                                                                  <xs:attribute name="DimensionValue" use="required" type="xs:string"/>
                                                                </xs:complexType>
                                                              </xs:element>
                                                            </xs:sequence>
                                                          </xs:complexType>
                                                        </xs:element>
                                                      </xs:sequence>
                                                      <xs:attribute name="BookAccount" use="required" type="xs:positiveInteger">
                                                        <xs:annotation>
                                                          <xs:documentation>Book account as specified by the accounting rule set being used by the company</xs:documentation>
                                                        </xs:annotation>
                                                      </xs:attribute>
                                                      <xs:attribute name="AccountingAction" use="required" type="xs:string">
                                                        <xs:annotation>
                                                          <xs:documentation>"D" for Debit "C" for Credit</xs:documentation>
                                                        </xs:annotation>
                                                      </xs:attribute>
                                                      <xs:attribute name="CurrencyCode" use="required" type="xs:string">
                                                        <xs:annotation>
                                                          <xs:documentation>Currency code according to ISO4217</xs:documentation>
                                                        </xs:annotation>
                                                      </xs:attribute>
                                                      <xs:attribute name="Amount" use="required" type="xs:decimal "/>
                                                    </xs:complexType>
                                                  </xs:element>
                                                </xs:sequence>
                                              </xs:complexType>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="PXId" use="required" type="xs:long">
                                            <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" use="required" type="xs:string">
                                            <xs:annotation>
                                              <xs:documentation>PayEx internal transaction type, used for support</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                          <xs:attribute name="AccountType" use="optional" type="xs:string">
                                            <xs:annotation>
                                              <xs:documentation>"InvAcc" equals Invoice</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                          <xs:attribute name="AccountName" use="optional" type="xs:string">
                                            <xs:annotation>
                                              <xs:documentation>AccountName equals InvoiceNumber for account type "InvAcc"</xs:documentation>
                                            </xs:annotation>
                                          </xs:attribute>
                                          <xs:attribute name="TransactionCause" use="optional" type="xs:string">
                                            <xs:annotation>
                                              <xs:documentation>Possible transaction causes 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" use="required" type="xs:string">
                                <xs:annotation>
                                  <xs:documentation>Voucher series, used with voucher number and value date for grouping of voucher details</xs:documentation>
                                </xs:annotation>
                              </xs:attribute>
                              <xs:attribute name="VoucherNo" use="required" type="xs:positiveInteger">
                                <xs:annotation>
                                  <xs:documentation>Voucher reference number, used with voucher serie and value date for grouping of voucher details</xs:documentation>
                                </xs:annotation>
                              </xs:attribute>
                              <xs:attribute name="ValueDate" use="required" type="xs:date">
                                <xs:annotation>
                                  <xs:documentation>a.k.a "valuteringsdatum". used with voucher serie and voucher number for grouping of voucher details</xs:documentation>
                                </xs:annotation>
                              </xs:attribute>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="Date" use="required" type="xs:date"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="Version" use="required" type="xs:string" fixed="1.1">
        <xs:annotation>
          <xs:documentation>The XSD version of the xml format</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="CreatedDateTime" use="required" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Date and time when the file was created</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="CompanyNo" use="required" type="xs:string">
        <xs:annotation>
          <xs:documentation>The identity of your accounts receivable at PayEx</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="CompanyName" use="required" type="xs:string">
        <xs:annotation>
          <xs:documentation>Your registered name at PayEx</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>

Created by Fredrik Nilsson on 2021/06/29 16:52