Skip to main content

Request

To create an invoice, send an XML file (and optionally e-mail attachments) 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: exactly action-xmlagentxmlfile (main file); optional attachments: attachfile1attachfile5
  • File content: the invoice data as XML (structure: XSD schema; sample: XML example)

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-xmlagentxmlfile"><br>
E-mail attachments if applicable:
<input type="file" name="attachfile1">
<input type="file" name="attachfile2">
<input type="file" name="attachfile3">
<input type="file" name="attachfile4">
<input type="file" name="attachfile5"><br>
<input type="submit" name="generate" value="Issue invoice">
</form>
</body>
</html>

Try it:

Upload your edited XML file
Attached file 1
Optional email attachment
Attached file 2
Optional email attachment
Attached file 3
Optional email attachment
Attached file 4
Optional email attachment
Attached file 5
Optional email attachment

Alternatively, you can use curl to post the XML:

curl -v -F action-xmlagentxmlfile=@agent.xml -c ./cookies.txt -o response.pdf https://www.szamlazz.hu/szamla/
tip

We recommend validating your XML against the XSD before sending.