Request
To request the document in PDF, send a single XML file in an HTTP POST request.
Requirements
- Base URL:
https://www.szamlazz.hu/szamla/(request target) - Method: POST
- Content type:
multipart/form-data - Form field name:
action-szamla_agent_pdf - File content: the request data as XML (structure: XSD schema; sample: XML example)
- Identifying the document: by invoice number (
szamlaszam), order number (rendelesSzam) or external identifier (szamlaKulsoAzon) – if multiple documents share the same order number, the last one is returned; the external identifier is only usable if it was set when the document was created
Sample HTML form
The request can be sent for example with a form like this:
<html>
<head><meta content="text/html; CHARSET=UTF-8"></head>
<body>
<form action="https://www.szamlazz.hu/szamla/" method="post" enctype="multipart/form-data">
<input type="file" name="action-szamla_agent_pdf">
<input type="submit" name="generate" value="Query document (PDF)">
</form>
</body>
</html>
Try it:
tip
We recommend validating your XML against the XSD before sending.