EET and the Shoptet API: a guide for add-on and Premium developers
Introduction
This article summarises the API changes delivered for EET (Czech sales registration) and what add-ons and Premium integrations working with EET must adapt. For information about EET itself, see the Shoptet EET guide (in Czech).
Changes and new endpoints in API
Stores and cash desks
A physical store and each of its cash desks are separate sales channels, all of type in_store. The attribute parentGuid tells them apart:
Until now the API showed only the store and presented cash desk orders as orders of the store. Now it shows both:
GET /api/sales-channelsreturns cash desks as well as stores, with the new attributeparentGuid.- An order made on a cash desk has the
salesChannelGuidof the cash desk, not of the store. This applies to the order detail, order list and order snapshot. - The
salesChannelGuidfilter returns only the orders of the given channel. Filtering by a store no longer includes its cash desks. POST /api/ordersand the batch order insert accept thesalesChannelGuidof a cash desk. The GUID of a store itself is still rejected with422 sales-channel-type-invalid.
New EET section
All endpoints of the new EET section require the active eetV2 module, otherwise they return 403 missing-module.
GET /api/eet/evidence-unitslists the EET evidence units:store(bound to an in-store sales channel) andcontactPoint(pickup point, warehouse, stand).GET /api/eet/recordslists the receipts sent to the tax administration with theirstate(pending,sending,registered,rejected,failed), errors and warnings. It supports paging and filtering.POST /api/eet/records/{documentType}/{code}registers a receipt for an existing order, invoice or credit note (orders,invoices,credit-notes). It also requires the EET evidence to be switched on in the e-shop settings, otherwise it returns403 eet-evidence-disabled.
Mandatory requirements
The requirements apply to add-ons and to Premium integrations that work with EET. EET takes effect on 1 January 2027, so integrations must be adapted by this date.
- Count with cash desks as separate sales channels. An
in_storechannel with a filledparentGuidis a cash desk, not a store. To get all orders of a store, request the orders of the store and of each of its cash desks. - Register in-person payments taken by the integration. Shoptet reports only the payments taken through the Shoptet Cash Register. For other in-person payments call
POST /api/eet/records/{documentType}/{code}withreceiptedAt,evidenceUnitId(fromGET /api/eet/evidence-units) anddeviceId(identifier of the cash desk the payment was taken on). The amount is taken from the document. - Send the order or its invoice, never both. Otherwise the sale is reported twice. For a partial prepayment send the invoice. Send a credit note only for a refund paid out in person.
- Do not retry after
409 eet-record-already-registered. Each document gets one receipt and the response carries the existingrecordId. Shoptet retries temporary failures itself. - Check the result. The response
201only means the record ispending. Follow it throughGET /api/eet/records?id={recordId}and inform the merchant aboutrejectedandfailedrecords. Only a record withisLegallyValid: trueis legally registered; aplaygroundrecord never is.
Upcoming changes
These items are planned and subject to change.
- An option to exclude a document from EET when creating or updating invoices, credit notes, proforma invoices and proofs of payment.
- Detail, create, update and delete endpoints for evidence units.
- The registration data as part of the create and update endpoints of orders, invoices and credit notes.
- An endpoint with the EET settings and certificate information of the e-shop.
Contact and links
- EET in Shoptet (in Czech)
- Shoptet API documentation
- Questions: api@shoptet.cz