Data erasure code (torloKod)
For each line item in the receipt request, you can optionally specify in the <torloKod> field how many data erasure codes the system should reserve for that item.
- Where: In the items block (
tetelek/tetel), inside eachtetelelement. - XSD: The
tetelTipustype in the receipt schema includes thetorloKodelement: optional (minOccurs="0"), typeint, value ≥ 0.
See the XSD schema and XML example for the request structure.
The field is a count, not a code value
The value of <torloKod> is the number of codes requested for the item, not the code itself (for example, <torloKod>1</torloKod> requests one code). 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.
Further reading
For more on using the data erasure code via the API and in bulk invoice generation, see the knowledge base.
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 standard (A4) receipt template; with any other template you will receive error code 521.
- 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 receipt is not created.
See Error handling & error codes for these codes.