Data erasure code (torloKod)
For each line item in the invoice request, you can optionally specify in the <torloKod> field how many data erasure codes the system should reserve for that item. Place it inside every <tetel> element within the <tetelek> block. The value must be an integer (int) of 0 or greater.
The value of <torloKod> is the number of codes requested for the item, not the code itself. The system selects the codes randomly from the free codes uploaded to the account; you cannot request a specific code. If the uploaded free codes are not enough, Számlázz.hu supplies the missing codes.
For more on using the data erasure code via the API and in bulk invoice generation, see the knowledge base.
Example for one item requesting 1 code:
<tetel>
<megnevezes>Minta termék</megnevezes>
<mennyiseg>2.0</mennyiseg>
<mennyisegiEgyseg>db</mennyisegiEgyseg>
<nettoEgysegar>10000</nettoEgysegar>
<afakulcs>27</afakulcs>
<nettoErtek>20000.0</nettoErtek>
<afaErtek>5400.0</afaErtek>
<bruttoErtek>25400.0</bruttoErtek>
<torloKod>1</torloKod>
</tetel>
Which documents does it work on?
Data erasure codes are only assigned to standard invoices. On final invoices, prepayment invoices, pro forma invoices, corrective, reversal and credit invoices the field has no effect: the document is created without error and without a code, even if the value of <torloKod> is greater than 0.
Requirements and error codes
- You must enable the use of data erasure codes in the Számlázz.hu account under Settings (Beállítások). If it is disabled, you will receive error code 539.
- Data erasure codes cannot be used in test and demo accounts; in this case you will receive error code 538.
- The feature only works with the Számlázz.hu recommended invoice template (
SzlaMost, the default); with any other invoice template you will receive error code 521. - At most 400 data erasure codes can be requested per item; if you exceed this, you will receive error code 537.
- If the uploaded codes are not enough even with the codes supplied by Számlázz.hu, you will receive error code 520, and the invoice is not created.
See Error handling & error codes for these codes.