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"?>
<xmlszamlast xmlns="http://www.szamlazz.hu/xmlszamlast" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamlast https://www.szamlazz.hu/szamla/docs/xsds/agentst/xmlszamlast.xsd">
<beallitasok>
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
<eszamla>false</eszamla>
<!-- e-invoice (true/false) -->
<szamlaLetoltes>true</szamlaLetoltes>
<!-- download PDF -->
<szamlaLetoltesPld>1</szamlaLetoltesPld>
<!-- DEPRECATED: this field can be omitted, as our system no longer processes it. -->
<szamlaKulsoAzon></szamlaKulsoAzon><!-- string --> <!-- The invoice can be identified with this key by the third party system (system which uses the Számla Agent): later the invoice can be queried with this key -->
</beallitasok>
<fejlec>
<!-- header -->
<szamlaszam>E-TST-2011-1</szamlaszam>
<!-- invoice number -->
<keltDatum>2010-09-12</keltDatum>
<!-- date of issue -->
<tipus>SS</tipus>
<!-- type -->
</fejlec>
<elado>
<!-- seller -->
<emailTargy>Email subject</emailTargy>
<!-- e-mail subject -->
<emailSzoveg>Lorem ipsum</emailSzoveg>
<!-- e-mail content -->
</elado>
<vevo>
<!-- buyer -->
</vevo>
</xmlszamlast>
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/xmlszamlast" xmlns:tns="http://www.szamlazz.hu/xmlszamlast" elementFormDefault="qualified">
<!-- If the buyer's tax number is missing from the original invoice, it can be provided in this block. -->
<complexType name="vevoTipus">
<sequence>
<element name="email" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="adoszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="adoszamEU" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<complexType name="eladoTipus">
<sequence>
<element name="emailReplyto" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="emailTargy" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="emailSzoveg" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<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>
<element name="eszamla" type="boolean" maxOccurs="1" minOccurs="1"></element>
<element name="szamlaLetoltes" type="boolean" maxOccurs="1" minOccurs="1"></element>
<element name="szamlaLetoltesPld" type="int" maxOccurs="1" minOccurs="0"></element>
<!-- DEPRECATED: this field can be omitted, as our system no longer processes it. -->
<element name="aggregator" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="guardian" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="valaszVerzio" type="int" maxOccurs="1" minOccurs="0"></element>
<element name="szamlaKulsoAzon" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<complexType name="fejlecTipus">
<sequence>
<element name="szamlaszam" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="keltDatum" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="teljesitesDatum" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="megjegyzes" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Reason for reversal (free text). -->
<element name="tipus" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Codomain: 'SzlaMost' | 'SzlaAlap' | 'SzlaNoEnv' | 'Szla8cm' | 'SzlaTomb' | 'SzlaFuvarlevelesAlap' -->
<element name="szamlaSablon" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<element name="xmlszamlast">
<complexType>
<sequence>
<element name="beallitasok" type="tns:beallitasokTipus" maxOccurs="1" minOccurs="1"></element>
<element name="fejlec" type="tns:fejlecTipus" maxOccurs="1" minOccurs="1"></element>
<element name="elado" type="tns:eladoTipus" maxOccurs="1" minOccurs="0"></element>
<element name="vevo" type="tns:vevoTipus" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
</element>
</schema>