XML + XSD
- XML example
- XSD schema
In the XML file, the order of the fields is fixed, they cannot be interchanged.
<xmlszamlapdf xmlns="http://www.szamlazz.hu/xmlszamlapdf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamlapdf https://www.szamlazz.hu/szamla/docs/xsds/agentpdf/xmlszamlapdf.xsd">
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
<szamlaszam>E-TST-2011-1</szamlaszam><!-- invoice number -->
<valaszVerzio>2</valaszVerzio><!-- response type (see details below) -->
<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 -->
</xmlszamlapdf>
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/xmlszamlapdf" xmlns:tns="http://www.szamlazz.hu/xmlszamlapdf" elementFormDefault="qualified">
<element name="xmlszamlapdf">
<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>
<!-- Response type: 2 = XML response with PDF in base64. -->
<element name="valaszVerzio" type="int" maxOccurs="1" minOccurs="1"></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>