---
title: "Units of measurement in e-invoices: How to select a code from the OKEI directory"
country: KZ
lang: en
author: Сапа Т.И. (https://buhgpt.kz/authors/sapa-ti)
date: 2026-11-25
canonical: https://buhgpt.kz/suraqtar/edinica-izmereniya-v-esf-kak-vybrat-kod-iz-spravochnika-o-en
source: BuhGPT
---

# Units of measurement in e-invoices: How to select a code from the OKEI directory

> **TL;DR:** Select the unit of measurement for an e-invoice from the directory. The directory is based on the Kazakhstan Classification of Units of Measurement (OKEI) . When issuing an electronic invoice, enter the unit of measurement code from the E-Invoice Information System (EIS) class

---

Select the unit of measurement for an e-invoice from the directory. The directory is based on the Kazakhstan Classification of Units of Measurement (OKEI). When issuing an electronic invoice, enter the unit of measurement code from the E-Invoice Information System (EIS) classification on each line for goods, work, or services. Free-text entries are prohibited. In 1C:Accounting for Kazakhstan, this directory is called “Classification of Units of Measurement” and is available under “Items and Warehouse” → “Classification of Units of Measurement”. Below, we explain how the directory works, how to set it up correctly, and how to avoid errors when exporting e-invoices.
What the units of measurement directory is and why e-invoices need it
An electronic invoice is a structured document. Each field is validated against predefined rules, including the unit of measurement field. If units could be entered as free text (“pc.”, “pieces”, “unit”, “pcs”), the information system could not reliably match the supplier’s data with the buyer’s. Units of measurement are therefore standardized, with a classification code assigned to each one.
This gives accountants three practical rules:
- The unit of measurement on the e-invoice must match an entry in the classification.

- The unit name in the accounting system must be linked to the correct code.

- The unit on the e-invoice must match the unit used to track and sell the goods. The quantity and unit price are calculated using that unit.

The Tax Code of the Republic of Kazakhstan and its implementing regulations govern how invoices are issued in Kazakhstan. For specific e-invoice field requirements, check the version in force in 2026 and the rules for using the EIS. The list of required fields and their formats are updated over time.
Where to find the directory in 1C and how it works
In 1C, the “Classification of Units of Measurement” directory serves as the master list for the entire configuration. It supplies the units of measurement for goods, work, and services in item records, receipt and sales documents, and ultimately e-invoices.
How to open the directory:
- Go to “Items and Warehouse” → “Classification of Units of Measurement”.
- Open it from the master data menu (“Master Data and Directories”).
- Open it directly from a document or item record by clicking the selection button in the “Unit of Measurement” field to open the selection window.
The directory follows OKEI, and each entry has a name and a code. Anyone who creates item records or posts documents uses the directory regularly. Setting it up carefully from the start saves you from correcting errors on individual e-invoices later.
How to add a unit correctly. Select the unit from the built-in classification so that its name and code match OKEI. If you create an entry manually, check its code against the official classification. A code error can go unnoticed in the accounting system and surface when the e-invoice is validated.
Common unit of measurement errors and how to avoid them
1. Duplicate directory entries. The database may contain multiple entries with similar names, such as “pc” and “piece”, with an incorrect or missing code on one of them. Some items end up linked to the faulty entry. Find the duplicates, keep one entry with the correct code, and relink the items to it.
2. The e-invoice unit differs from the accounting unit. For example, you may buy goods by the box and sell them individually. An incorrect base unit in the item record will produce incorrect quantities and prices on the e-invoice. Decide in advance which unit to use as the base unit and which to set up as packaging units.
3. Packaging errors. In configurations based on 1C:Trade Management for Kazakhstan, you may see this message:
> “The product is tracked in a unit based on measurement - this type of unit cannot be unpacked.”
This message comes from a validation check on the “Packaging and Units of Measurement” directory. It appears when you try to configure unpacking for a product tracked by a measurement such as weight or length as if it were counted individually. Check the packaging details and the unit type in the item record. A setting is usually missing or incorrect.
4. Services without a unit of measurement. Work and services also require a unit of measurement on e-invoices. Select a suitable entry from the classification and save it in the item record so you can reuse it automatically.
A quick checklist for accountants
- Open “Items and Warehouse” → “Classification of Units of Measurement” and check that every entry has a code.

- Delete duplicate entries or mark them for deletion, and relink items to the correct entries.

- Check the base units and packaging for fast-moving items.

- Before exporting e-invoices in bulk, generate a few test documents and verify that the units of measurement are transferred correctly.

- If the EIS rejects a document because of the unit of measurement, check the code in the 1C directory first, then check the item settings.

- Keep track of 1C configuration updates and changes to EIS rules, since classifications and formats are updated.

A quick review can save you from having to withdraw and reissue invoices or deal with disputes with counterparties over quantity discrepancies.
Frequently asked questions
Can I use a unit of measurement on an e-invoice if it is missing from the classification? — No. Select the unit from the EIS classification, which is based on OKEI. If you cannot find a suitable entry, select the closest equivalent from the classification.
Where can I find the units of measurement directory in 1C? — Go to “Items and Warehouse” → “Classification of Units of Measurement”. You can also open it from the master data menu or from the selection window in a document form.
What does the error “this type of unit cannot be unpacked” mean? — You are trying to configure unpacking for a product tracked in a unit based on measurement. Check the packaging and unit of measurement settings in the item record.
Do services need a unit of measurement on an e-invoice? — Yes, services and work also require a unit of measurement from the classification. Save it in the item record for easy reuse.
What should I do if the directory contains duplicate units? — Keep one entry with the correct OKEI code, relink the items to it, and mark the duplicate entries for deletion.
Sources
- 
The “Classification of Units of Measurement” directory in 1C:Accounting for Kazakhstan — BuhGPT

- Packaging and units of measurement in 1C:Trade Management for Kazakhstan — BuhGPT

---
_BuhGPT — ИИ-помощник для бухгалтеров Казахстана: https://buhgpt.kz_