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"?>
<xmlszamlaxml xmlns="http://www.szamlazz.hu/xmlszamlaxml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamlaxml https://www.szamlazz.hu/szamla/docs/xsds/agentxml/xmlszamlaxml.xsd">
<szamlaagentkulcs>Please fill out!</szamlaagentkulcs>
<szamlaszam>E-TST-2011-1</szamlaszam>
<rendelesSzam></rendelesSzam> <!-- Order number can be used in the query. In this case the last invoice with this order number will be returned
-->
<pdf>true</pdf> <!-- Only needed if the pdf must be downloaded
-->
<szamlaKulsoAzon></szamlaKulsoAzon> <!-- 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
-->
</xmlszamlaxml>
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/xmlszamlaxml" xmlns:tns="http://www.szamlazz.hu/xmlszamlaxml" elementFormDefault="qualified">
<element name="xmlszamlaxml">
<complexType>
<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="szamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="rendelesSzam" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Set to true if the PDF is also to be downloaded. -->
<element name="pdf" type="boolean" maxOccurs="1" minOccurs="0"></element>
<!-- External identifier; the invoice can be queried with this key if it was set at creation. -->
<element name="szamlaKulsoAzon" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
</element>
</schema>