Skip to main content

EET and the Shoptet API: a guide for add-on and Premium developers

· 4 min read
Klára Hrabcová

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:

Sales channeltypeparentGuid
Storein_storenull
Cash desk of that storein_storeGUID of the store

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-channels returns cash desks as well as stores, with the new attribute parentGuid.
  • An order made on a cash desk has the salesChannelGuid of the cash desk, not of the store. This applies to the order detail, order list and order snapshot.
  • The salesChannelGuid filter returns only the orders of the given channel. Filtering by a store no longer includes its cash desks.
  • POST /api/orders and the batch order insert accept the salesChannelGuid of a cash desk. The GUID of a store itself is still rejected with 422 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-units lists the EET evidence units: store (bound to an in-store sales channel) and contactPoint (pickup point, warehouse, stand).
  • GET /api/eet/records lists the receipts sent to the tax administration with their state (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 returns 403 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.

  1. Count with cash desks as separate sales channels. An in_store channel with a filled parentGuid is 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.
  2. 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} with receiptedAt, evidenceUnitId (from GET /api/eet/evidence-units) and deviceId (identifier of the cash desk the payment was taken on). The amount is taken from the document.
  3. 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.
  4. Do not retry after 409 eet-record-already-registered. Each document gets one receipt and the response carries the existing recordId. Shoptet retries temporary failures itself.
  5. Check the result. The response 201 only means the record is pending. Follow it through GET /api/eet/records?id={recordId} and inform the merchant about rejected and failed records. Only a record with isLegallyValid: true is legally registered; a playground record 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.