pzs / nav-online-invoice

PHP interface for Online Invoice Data Reporting System of Hungarian Tax Office (NAV)
MIT License
146 stars 52 forks source link

Invoice XML #47

Closed balicekt closed 3 years ago

balicekt commented 3 years ago

Hi, could anyone help me how to get XML of inovice?

$invoiceXml = simplexml_load_file(TEST_DATA_DIR . "invoice1.xml");
$transactionId = $reporter->manageInvoice($invoiceXml, "CREATE");

I mean how create invoice1.xml from our internal data?

Thank you very much for your help.

pzs commented 3 years ago

Hi, you have to go though the API documentation: https://onlineszamla.nav.gov.hu/dokumentaciok (there is English version as well). The second chapter describes the invoice XML itself. This library is just for the communication (which is in the first chapter).

balicekt commented 3 years ago

I see now. Thank you very much :)