XML + XSD
- XML example
- XSD schema
In the XML file, the order of the fields is fixed, they cannot be interchanged.
<?xml version="1.0" encoding="UTF-8"?>
<xmlszamlakifiz xmlns="http://www.szamlazz.hu/xmlszamlakifiz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamlakifiz https://www.szamlazz.hu/szamla/docs/xsds/agentkifiz/xmlszamlakifiz.xsd">
<beallitasok> <!-- settings -->
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
<szamlaszam>E-TST-2011-1</szamlaszam> <!-- invoice number -->
<adoszam>12345678-1-13</adoszam> <!-- If you provide the tax number of the issuer of invoice, then the system will match the incoming invoice with the corresponding incoming receipt. -->
<additiv>false</additiv> <!-- if it is true, then the former credit entries will be retained -->
</beallitasok>
<kifizetes> <!-- payment -->
<datum>2012-01-01</datum><!-- date -->
<jogcim>készpénz</jogcim><!-- payment type -->
<osszeg>1000</osszeg><!-- amount -->
</kifizetes>
<kifizetes><!-- another payment -->
<datum>2012-01-15</datum>
<jogcim>átutalás</jogcim>
<osszeg>2000</osszeg>
<leiras>Test description</leiras> <!-- Description, not required -->
</kifizetes>
</xmlszamlakifiz>
The sent XML file must comply with the following XSD schema.
warning
Elements marked minOccurs="1" must be present in the XML (the tag cannot be omitted). Elements marked minOccurs="0" may be omitted.
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.szamlazz.hu/xmlszamlakifiz" xmlns:tns="http://www.szamlazz.hu/xmlszamlakifiz" elementFormDefault="qualified">
<complexType name="beallitasokTipus">
<sequence>
<element name="felhasznalo" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="jelszo" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="szamlaagentkulcs" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Invoice number. -->
<element name="szamlaszam" type="string" maxOccurs="1" minOccurs="1"></element>
<!-- If provided, the system will match the incoming payment with the corresponding invoice. -->
<element name="adoszam" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- If true, former credit entries are retained; otherwise they are replaced. -->
<element name="additiv" type="boolean" maxOccurs="1" minOccurs="1"></element>
<element name="aggregator" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="valaszVerzio" type="int" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<!-- Payment / credit entry. -->
<complexType name="kifizetesTipus">
<sequence>
<element name="datum" type="date" maxOccurs="1" minOccurs="1"></element>
<element name="jogcim" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="osszeg" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="leiras" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<element name="xmlszamlakifiz">
<complexType>
<sequence>
<element name="beallitasok" type="tns:beallitasokTipus" maxOccurs="1" minOccurs="1"></element>
<element name="kifizetes" type="tns:kifizetesTipus" maxOccurs="5" minOccurs="0"></element>
</sequence>
</complexType>
</element>
</schema>