CommerceML Integration: Sync 1C with Your Website

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1All 2062 services
CommerceML Integration: Sync 1C with Your Website
Complex
~3-5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1358
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1250
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    956
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1188
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    929
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    947

1C Integration via CommerceML with Your Website

Every morning, you update prices on your site manually? Then find out you forgot a promotion, and customers leave for competitors? Our 1C CommerceML integration provides automatic 1C site synchronization of products, prices, stock, and orders. No manual work, no errors. We deploy a working solution on your hosting (depending on scope). The CommerceML standard was developed by 1C. Contact us for a free assessment of your project. Our engineers have 10+ years of experience in 1C integration. Our clients achieve significant monthly savings in salary costs.

What Problems CommerceML Solves

Manual catalog export: each new item takes time, and human error creeps in. With manual sync, the chance of missing a price or stock change increases with every update. CommerceML processes catalogs 10 times faster than manual export, eliminating errors. Price changed in 1C—on the site it must update instantly, or the customer sees an incorrect amount. CommerceML allows configuring exchange intervals from minutes. The standard is 5 times more efficient than custom CSV parsers. A new order on the site must reach 1C for invoicing; if not, penalties and lost trust. CommerceML ensures automatic order export. If a product runs out in 1C stock but is still sold on the site, CommerceML exports stock and hides unavailable items, preventing overselling.

Parameter Manual Sync CommerceML Integration
Catalog update time Hours/days Minutes
Error frequency High Minimal
Scalability Limited Unlimited

How CommerceML Works in Practice?

CommerceML is a standard for exchanging commercial data between 1C and trading systems. Developed by 1C, the CommerceML protocol is widely supported by Russian CMS for 1C CMS integration (1C-Bitrix, OpenCart, WordPress + WooCommerce). For custom sites, a CommerceML parser needs to be implemented.

CommerceML Format

CommerceML is an XML format with several file types:

  • import.xml — product catalog (items, groups, properties)
  • offers.xml — offers (prices, stock, characteristics)
  • orders.xml — orders (export from CMS to 1C)
  • import.xml response from 1C — order status updates
Example import.xml structure
<?xml version="1.0" encoding="UTF-8"?>
<КоммерческаяИнформация ВерсияСхемы="2.05">
    <Каталог СодержитТолькоИзменения="false">
        <Товары>
            <Товар>
                <Ид>550e8400-e29b-41d4-a716-446655440001</Ид>
                <Наименование>Футболка мужская синяя</Наименование>
                <Группы><Ид>category-001</Ид></Группы>
                <СтавкаНалога>НДС20</СтавкаНалога>
                <Картинка>images/tshirt.jpg</Картинка>
                <ЗначенияСвойств>
                    <ЗначенияСвойства>
                        <Ид>prop-color</Ид>
                        <Значение>Синий</Значение>
                    </ЗначенияСвойства>
                </ЗначенийСвойств>
            </Товар>
        </Товары>
    </Каталог>
</КоммерческаяИнформация>

Offers.xml Structure

<ПакетПредложений>
    <Предложения>
        <Предложение>
            <Ид>550e8400-e29b-41d4-a716-446655440001#size-XL</Ид>
            <Наименование>Футболка мужская синяя XL</Наименование>
            <Цены>
                <Цена>
                    <ИдТипаЦены>retail</ИдТипаЦены>
                    <ЦенаЗаЕдиницу>1500.00</ЦенаЗаЕдиницу>
                    <Валюта>RUB</Валюта>
                </Цена>
            </Цены>
            <Количество>25</Количество>
        </Предложение>
    </Предложения>
</ПакетПредложений>

Why Incremental Updates Are Critical for Performance

After the initial full sync, subsequent exchanges can be incremental: СодержитТолькоИзменения="true". This dramatically speeds up sync since only changed products are loaded. Incremental updates reduce sync time from hours to minutes. Without them, a full re-import of a 10,000-product catalog would take 2–3 hours, unacceptable for frequent exchange.

How CommerceML Handles Product Variations

Products with variations (size, color) in CommerceML are represented as a single item with multiple offers. Each offer has a unique Ид like {product-guid}#{characteristic-guid}. This must be correctly mapped to product variations in the site database. We use the Repository pattern for flexible mapping. Variations are a common source of errors in integrations without CommerceML; the standard solves this without extra tweaks.

Exchange Protocol

1C initiates an exchange session via HTTP requests to the CMS using a specific protocol:

GET /exchange.php?type=catalog&mode=checkauth
→ Authentication

GET /exchange.php?type=catalog&mode=init
→ Initialization (buffer size, zip support)

POST /exchange.php?type=catalog&mode=file&filename=import.xml
→ File upload (may be chunked for large files)

GET /exchange.php?type=catalog&mode=import&filename=import.xml
→ Start processing

Handler Implementation in PHP

class CommerceML
{
    public function handle(Request $request): Response
    {
        $mode = $request->query('mode');
        $type = $request->query('type');

        return match($mode) {
            'checkauth' => $this->checkAuth(),
            'init'      => $this->init(),
            'file'      => $this->saveFile($request),
            'import'    => $this->processImport($request->query('filename')),
            'query'     => $this->exportOrders(),  // export orders to 1C
            'success'   => $this->markOrdersExported(),
            default     => response('failure', 400)
        };
    }

    protected function processImport(string $filename): Response
    {
        $xml = simplexml_load_file(storage_path("cms-exchange/{$filename}"));
        // Parse and save products to DB
        dispatch(new ProcessCommerceMLImport($xml));
        return response('success');
    }
}

Project Phases

  1. Analysis — study the 1C structure (documents, directories) and current site architecture. Identify necessary mappings.
  2. Design — develop the exchange scheme: what data to transfer, frequency, error handling.
  3. Development — write a CommerceML parser supporting incremental updates, variations, and bidirectional exchange.
  4. Testing — verify all scenarios: full load, partial updates, concurrent access, handling malformed XML.
  5. Deployment — configure cron or 1C scheduler, monitoring, logging.
Phase Duration
Analysis 2–3 days
Design 1–2 days
Development 5–10 days
Testing 2–3 days
Deployment 1 day

What You Get

  • Working bidirectional exchange of products, prices, stock, and orders.
  • API and protocol documentation (for future modifications).
  • Instructions for the accountant on how to trigger exchange in 1C.
  • 6-month warranty on the setup.
  • Free support for the first month.

Development time: 2–4 weeks for implementing CommerceML parser and bidirectional exchange. Total project cost depends on scope.

Case Study: 15,000 SKU Retailer

We integrated CommerceML for a retailer with 15,000 SKUs. Previously, manual price updates required two employees working 4 hours daily. After integration, sync is fully automatic—10,000 product updates now complete in under 2 minutes. The client saves significantly monthly and avoids overselling.

Contact us for a free engineer consultation with 10+ years of 1C integration experience. We'll assess your project's complexity and propose the optimal solution.

1C:Enterprise Integration: Product, Order, and Stock Exchange

Monday morning. The manager opens the site and sees that the item sold out on Friday is still listed as "in stock". Three customers have already paid for a product that doesn't exist. We encounter this pain regularly: the lack of synchronization between 1C and the online store hurts revenue and reputation. We solve the problem end-to-end — setting up the exchange so that the accounting system and the storefront update synchronously, without data loss, and with consistency guarantees.

1C is the accounting system of most Russian companies. The site is the storefront. They must speak the same language and do so regularly, reliably, and without data loss. Our experience: over 50 successful integrations for clients with catalogs from 500 to 200,000 SKUs.

Why isn't standard CommerceML always sufficient?

CommerceML is a standard exchange protocol supported by 1C:Trade Management, 1C:Integrated Automation, and several other configurations. WooCommerce, Shopify, and other CMS have plugins for CommerceML (e.g., "1C-Bitrix" for their products, separate plugins for WordPress). Flow: 1C initiates exchange → sends a ZIP archive with XML to the site endpoint → site parses and updates the catalog.

CommerceML format is XML with its own schema: КоммерческаяИнформация, Классификатор, Каталог, ПакетПредложений. Categories, products, characteristics, images, prices, stock. The main difficulty: the hierarchy of characteristics in 1C and product attributes on the site do not always match one-to-one. Mapping is needed. For a deep understanding of the protocol, we recommend documentation on WikipediaWikipedia: CommerceML.

How we overcome CommerceML limitations

For non-standard 1C configurations or when CommerceML is not suitable — we write an HTTP service in 1C (built-in since version 8.3) and interact via REST JSON. This gives full control over the data structure and synchronization frequency, but requires development from a 1C programmer.

For enterprise tasks with multiple accounting systems — Message Broker (RabbitMQ, Apache Kafka) as an intermediary. 1C publishes events to a queue, the site subscribes and processes them. Guaranteed delivery, buffering when one side is unavailable.

What we synchronize and how

Catalog (products, categories, attributes). The most voluminous part. Full export on first run, delta updates thereafter. When importing CommerceML: parse XML via PHP SimpleXML or XMLReader (for large files — only XMLReader, otherwise memory limit). Match products by GUID from 1C, which we store in a separate database field. If a product is deleted in 1C, we hide it on the site, not delete (order history may reference it).

Stock and prices. This is a separate ПакетПредложений in CommerceML, updated more often than the catalog. It's critical to do it atomically: not update stock one by one, but in a transaction. Otherwise, during the update, the user may see an inconsistent state. Frequency: once an hour for calm mode, once every 5–15 minutes for active trading.

Orders. Two-way exchange. Site → 1C: new order is sent with items, quantities, prices, customer contact info. 1C → site: order status (paid, assembled, shipped, delivered). For order transfer — either the same CommerceML (Документы block) or a direct REST call when an order is created on the site.

What typical problems do we solve?

Duplicate products. A 1C operator created an item with a typo in the SKU, then fixed it. On the site — two items. Solution: matching by GUID from 1C (not by SKU), GUID is immutable.

Cyrillic in XML and encodings. 1C historically works with Windows-1251. A CommerceML file may come in CP1251, PHP expects UTF-8. mb_convert_encoding() or iconv() in the first lines of the parser — mandatory.

Timeouts during large exports. A catalog of 100,000 items is 50–200MB XML. PHP default execution time of 30s is insufficient. Solution: CLI command (Laravel Artisan or Symfony Console) run via cron, without HTTP timeout. Or chunked processing via XMLReader with partial commits to the database.

Images. 1C can transmit images as Base64 inside XML (bloats file by 1.3x) or as file links. The second option is preferable. Download asynchronously, convert to WebP, place in media library.

Case: auto parts online store, 85,000 SKUs. Synchronization via CommerceML every 30 minutes. Problem: full export took 18 minutes, resulting in a new export starting while the old one was still running. Solution: lock via Redis (SET nx ex), delta export (only changed items in the last 2 hours via filter in 1C), processing via queue with 20 parallel workers. Sync time: 18 minutes → 2.5 minutes, no conflicts.

Comparison of integration methods

Method Sync speed Configuration flexibility Resource intensity
CommerceML High (binary XML) Low (fixed schema) Low (hardly affects server)
REST API directly Medium (JSON) High (any model) Medium (needs two HTTP servers)
Message Broker (RabbitMQ/Kafka) Very high (asynchronous) Medium (event-driven architecture) High (needs broker cluster)

CommerceML in typical scenarios is 2-3 times faster than REST for catalog synchronization due to binary packing of XML and compact format. However, if custom exchange logic is required, REST provides full flexibility.

Process and timeline

Audit of 1C configuration (version, configuration type, export capabilities) → data mapping design → development of receiver on site and sender in 1C → testing on real data → schedule setup → monitoring of first exchanges.

Participation of a 1C programmer on the client side is mandatory, or we involve a trusted specialist.

| Scenario | Timeline | | CommerceML, catalog + stock, WooCommerce | 2–4 weeks | | Two-way order exchange | +2–3 weeks | | Custom 1C configuration, REST API | 4–8 weeks | | Enterprise: multiple 1C databases, data bus | 2–4 months |

What's included in the result (deliverables)

  • Documentation: mapping scheme, data formats, error handling logic.
  • Configured synchronization schedule with execution logs.
  • Access to monitoring (Grafana/ELK — by agreement).
  • Training for managers: how to run manual exchange, how to read logs.
  • Post-launch warranty support — 2 weeks (issue fixing).

Get a consultation

We will evaluate your project within one business day — email us or use the chat. The integration cost is calculated individually based on project complexity. With over 7 years of experience in 1C integrations, we guarantee stable synchronization without surprises.