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"?>
<xmlnyugtast xmlns="http://www.szamlazz.hu/xmlnyugtast" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlnyugtast http://www.szamlazz.hu/docs/xsds/nyugtast/xmlnyugtast.xsd">
<beallitasok>
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
<pdfLetoltes>false</pdfLetoltes> <!-- download PDF receipt -->
</beallitasok>
<fejlec>
<nyugtaszam>NYGT-2020-1</nyugtaszam> <!-- ID of the receipt, which should be cancelled -->
<!-- in case of custom PDF template, the identifier of the used template-->
<!--
<pdfSablon></pdfSablon>
-->
</fejlec>
</xmlnyugtast>
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/xmlnyugtast" xmlns:tns="http://www.szamlazz.hu/xmlnyugtast" 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>
<!-- If true, the reversed receipt PDF is returned in the response. -->
<element name="pdfLetoltes" type="boolean" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
<complexType name="fejlecTipus">
<sequence>
<element name="nyugtaszam" type="string" maxOccurs="1" minOccurs="1"></element>
<!-- Codomain: 'A' | 'N' | 'J' | 'L' -->
<element name="pdfSablon" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="hivasAzonosito" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<element name="xmlnyugtast">
<complexType>
<sequence>
<element name="beallitasok" type="tns:beallitasokTipus" maxOccurs="1" minOccurs="1"></element>
<element name="fejlec" type="tns:fejlecTipus" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</element>
</schema>