EET certificates can be imported into ABRA Flexi via the REST API as well. The imported file must contain both the certificate and the private key.
🚨 Electronic sales records (EET) have been abolished in the Czech Republic, and EET is disabled in current versions of ABRA Flexi. The service therefore returns 500 with the code eetDeactivated and the message EET is not supported. — regardless of the parameters provided. The description below applies to older versions in which EET was functional.
Calling method
The service is available at /c/{firma}/certifikat-eet/import, where {firma} is the company's database identifier. It is called using the method PUT or POST; any other method returns 405 Method Not Allowed. The supported output formats are XML and JSON.
Example call
The request body is the certificate file itself:
PUT https://demo.flexibee.eu/c/demo/certifikat-eet/import.json?heslo={heslo}&provozovna={provozovna}
Content-Type: application/x-pkcs12
Accept: application/json
<binární obsah souboru s certifikátem>
ℹ️ For instructions on how to send such a request from the command line, see the article Importing data via the command line.
Parameters
Both parameters are required:
Parameter | Meaning |
| Password to unlock the certificate. |
| EET business premises identifier. |
If the password is incorrect or the business premises is invalid or missing, the operation ends with the code 400.
Content-Type header
The header must specify Content-Type corresponding to the format of the imported file:
MIME type | Certificate file format |
| X.509 certificates in text-based PEM format — common extensions |
| Certificates in PKCS #12 format — common extensions |
📝 Older versions of this guide additionally listed application/x-x509-ca-cert for the extensions .crt and .der, and application/pkix-cert for the extension .cer. The developer documentation now groups text-based X.509 certificates under application/x-pem-file.
Error states
State | Error code | Cause |
|
| EET is disabled in this version — the service is unavailable. |
| — | Incorrect certificate password, or an invalid or missing business premises. |
| — | The HTTP method used is neither |
