Skip to main content

XSD scheme

The sent XML file must comply with the following XSD scheme.

warning

The fields where you see minOccurs=”1” are mandatory.

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.szamlazz.hu/xmlszamla" xmlns:tns="http://www.szamlazz.hu/xmlszamla" elementFormDefault="qualified">

<complexType name="vevoTipus">
<sequence>
<element name="nev" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="orszag" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="irsz" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="telepules" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="cim" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="email" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="sendEmail" type="boolean" maxOccurs="1" minOccurs="0"></element>
<!-- Possible values for the adoalany field: 7:business is based outside of the European Union, 6:business is based in the Europen Union, 1: has a hungarian tax number, 0: we don't know, if the buyer has a tax number, -1: no tax number -->
<element name="adoalany" type="int" maxOccurs="1" minOccurs="0"></element>
<element name="adoszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="csoportazonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="adoszamEU" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="postazasiNev" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="postazasiOrszag" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="postazasiIrsz" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="postazasiTelepules" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="postazasiCim" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="vevoFokonyv" type="tns:vevoFokonyvTipus" maxOccurs="1" minOccurs="0"></element>
<element name="azonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="alairoNeve" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="telefonszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="megjegyzes" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="vevoFokonyvTipus">
<sequence>
<element name="konyvelesDatum" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="vevoAzonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="vevoFokonyviSzam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="folyamatosTelj" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="elszDatumTol" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="elszDatumIg" type="date" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="eladoTipus">
<sequence>
<element name="bank" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="bankszamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<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>
<element name="alairoNeve" 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>
<element name="valaszVerzio" type="int" maxOccurs="1" minOccurs="0"></element>
<element name="aggregator" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="guardian" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="cikkazoninvoice" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="szamlaKulsoAzon" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="tetelTipus">
<sequence>
<element name="megnevezes" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="azonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="mennyiseg" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="mennyisegiEgyseg" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="nettoEgysegar" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="afakulcs" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="arresAfaAlap" type="double" maxOccurs="1" minOccurs="0"></element>
<element name="nettoErtek" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="afaErtek" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="bruttoErtek" type="double" maxOccurs="1" minOccurs="1"></element>
<element name="megjegyzes" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="tetelFokonyv" type="tns:tetelFokonyvTipus" maxOccurs="1" minOccurs="0"></element>
<element name="torloKod" type="int" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="tetelekTipus">
<sequence>
<element name="tetel" type="tns:tetelTipus" maxOccurs="unbounded" minOccurs="1"></element>
</sequence>
</complexType>

<complexType name="tetelFokonyvTipus">
<sequence>
<element name="gazdasagiEsem" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="gazdasagiEsemAfa" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="arbevetelFokonyviSzam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="afaFokonyviSzam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="elszDatumTol" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="elszDatumIg" type="date" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="fejlecTipus">
<sequence>
<element name="keltDatum" type="date" maxOccurs="1" minOccurs="0"></element>
<element name="teljesitesDatum" type="date" maxOccurs="1" minOccurs="1"></element>
<element name="fizetesiHataridoDatum" type="date" maxOccurs="1" minOccurs="1"></element>
<element name="fizmod" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="penznem" type="string" maxOccurs="1" minOccurs="1"></element>
<element name="szamlaNyelve" type="tns:szamlaNyelveTipus" maxOccurs="1" minOccurs="1"></element>
<element name="megjegyzes" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="arfolyamBank" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- If arfolyamBank='MNB' AND ther is no exchange rate, then the current exchange rate of MNB will be used durring receipt creation -->
<element name="arfolyam" type="double" maxOccurs="1" minOccurs="0"></element>
<element name="rendelesSzam" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- link to prepayment request -->
<element name="dijbekeroSzamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="elolegszamla" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="vegszamla" type="boolean" maxOccurs="1" minOccurs="0"></element>
<!-- The invoice number of the down payment invoice can be defined here if the final bill of the down payment invoice can't be identified with the order number. If both invoice number and order number is present, order number takes precedent. -->
<element name="elolegSzamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="helyesbitoszamla" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="helyesbitettSzamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="dijbekero" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="szallitolevel" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="logoExtra" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="szamlaszamElotag" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="fizetendoKorrekcio" type="double" maxOccurs="1" minOccurs="0"></element>
<element name="fizetve" type="boolean" maxOccurs="1" minOccurs="0"></element>
<element name="arresAfa" type="boolean" maxOccurs="1" minOccurs="0"></element>
<!-- There is no hungarian VAT on the receipt. Data disclosure towards NTCAs Online Invoice System is not needed. -->
<element name="eusAfa" type="boolean" maxOccurs="1" minOccurs="0"></element>
<!-- Codomain: 'SzlaMost' | 'SzlaAlap' | 'SzlaNoEnv' | 'Szla8cm' | 'SzlaTomb' | 'SzlaFuvarlevelesAlap'-->
<element name="szamlaSablon" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- invoice preview pdf (no invoice is created) -->
<element name="elonezetpdf" type="boolean" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<simpleType name="szamlaNyelveTipus">
<restriction base="string">
<enumeration value="hu"></enumeration>
<enumeration value="en"></enumeration>
<enumeration value="de"></enumeration>
<enumeration value="it"></enumeration>
<enumeration value="ro"></enumeration>
<enumeration value="sk"></enumeration>
<enumeration value="hr"></enumeration>
<enumeration value="fr"></enumeration>
<enumeration value="es"></enumeration>
<enumeration value="cz"></enumeration>
<enumeration value="pl"></enumeration>
<enumeration value="bg"></enumeration>
<enumeration value="nl"></enumeration>
<enumeration value="ru"></enumeration>
<enumeration value="si"></enumeration>
</restriction>
</simpleType>

<complexType name="transoflexTipus">
<sequence>
<!-- 5 digit number provided by TOF -->
<element name="azonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="shipmentID" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="csomagszam" type="int" maxOccurs="1" minOccurs="0"></element>
<element name="countryCode" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="zip" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="service" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="sprinterTipus">
<sequence>
<!-- 3-character abbreviation agreed with Sprinter -->
<element name="azonosito" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- 10-character long "feladókód" provided by Sprinter -->
<element name="feladokod" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- "Iránykód" from Sprinter is Sprinters own special parcel shipment code, eg. "106" -->
<element name="iranykod" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Number of packages, this shows how many consignment note will be attached to the receipt-->
<element name="csomagszam" type="int" maxOccurs="1" minOccurs="0"></element>
<!-- unique per receipt, 7-13 characters long identifyer -->
<element name="vonalkodPostfix" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- usually this is the 1 work day note -->
<element name="szallitasiIdo" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="pppTipus">
<sequence>
<!-- 3-character abbreviation agreed with PPP -->
<element name="vonalkodPrefix" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- unique per receipt, MAX 7 characters long identifyer -->
<element name="vonalkodPostfix" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="mplTipus">
<sequence>
<!-- MPL customer code -->
<element name="vevokod" type="string" maxOccurs="1" minOccurs="1"></element>
<!-- Bar code is generated based on thes string -->
<element name="vonalkod" type="string" maxOccurs="1" minOccurs="1"></element>
<!-- Weight of the package, can contain a decimal point, if necessary -->
<element name="tomeg" type="string" maxOccurs="1" minOccurs="1"></element>
<!-- Optional configuration for special services icons, if not defined no icon will be shown -->
<element name="kulonszolgaltatasok" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Vallue ("erteknyilvanitas") field on the consignment note -->
<element name="erteknyilvanitas" type="double" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<complexType name="fuvarlevelTipus">
<sequence>
<!-- TODO the destination ("uticel") field is not used, should be removed after 2014.05.30, sprinter/iranykod field should be used instead -->
<element name="uticel" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Codomain: TOF, PPP, SPRINTER, FOXPOST, EMPTY ,not necessary if there is no consignment note -->
<element name="futarSzolgalat" type="string" maxOccurs="1" minOccurs="0"></element>
<!--General bar code definition, this will be used, if no carrierspecific data is defined -->
<element name="vonalkod" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Comment on the consignment note -->
<element name="megjegyzes" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Trans-O-Flex node to upload -->
<element name="tof" type="tns:transoflexTipus" maxOccurs="1" minOccurs="0"></element>
<!-- PickPackPoint node to upload -->
<element name="ppp" type="tns:pppTipus" maxOccurs="1" minOccurs="0"></element>
<!-- Sprinter node to upload -->
<element name="sprinter" type="tns:sprinterTipus" maxOccurs="1" minOccurs="0"></element>
<!-- MPL node to upload-->
<element name="mpl" type="tns:mplTipus" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>

<element name="xmlszamla">
<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="1"></element>
<element name="vevo" type="tns:vevoTipus" maxOccurs="1" minOccurs="1"></element>
<element name="fuvarlevel" type="tns:fuvarlevelTipus" maxOccurs="1" minOccurs="0"></element>
<element name="tetelek" type="tns:tetelekTipus" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</element>
</schema>