Export
The Swedish Tax Agency may request an export of register data from the journal memory in XML format.

From the efsta EFR point of view, an export is still triggered locally from the EFR. The content of the file, however, must follow the Swedish standard export model and now includes TCS / control-system related elements when applicable.
Content
The export follows the XML schema of the Swedish Tax Agency regulation SKVFS 2021:16 and covers:
- the receipts of the selected period (cash receipts, return receipts, receipt copies, proforma receipts and training receipts) each with its control code(whenever available) and the list of the articles sold on it.
- the article registration history of each receipt: registering an article, changing or deleting a registration, parking an article, changing, deleting or moving a parked article.
- discount given for a single item , group discounts or recipt level discounts.
- the Z daily reports of the period, including the VAT and the payment method breakdown.
- the audit events of the period (login/logout, drawer openings, price lookups, reports, time changes, register status and etc), see Export/Audit Events
What ends up in the article registration history is derived from the position data the POS sends, see Article Registration & Changes.
Export via API
The export can also be triggered via GET request.
GET /control/export
Query
| Name | Value | Example |
|---|---|---|
| from | Optional from date (yyyy-mm-dd) | 2000-01-01 |
| till | Optional till date (yyyy-mm-dd) | 2001-01-01 |
| target | Optional, name of target path | C:/temp |
Response Header
| Name | Value |
|---|---|
| Content-type | Application/octet-stream |
| Content-disposition | Attachment;filename=export.tar |
Request Example
GET http://localhost:5618/control/export?target=C:/temp