BYstudio
RU/EN

CRM and 1C integration: orders, payments and stock without duplicates

Start CRM and 1C integration with one complete route: a CRM order reaches the accounting system, while the sales team sees confirmed status, payment information and the age of a stock snapshot. Give each field a source of truth, stable identifier and conflict rule. A deal stage does not confirm payment, a stock snapshot does not reserve goods, and a cancellation request does not issue a refund.

Check an existing connector first

Custom development is useful when an existing connector cannot deliver the agreed process. Before estimating work, identify the CRM, 1C configuration and version, hosting and changes made to the standard configuration.

Standard exchange
Test the required objects, directions, filters and status mappings in a test database. A marketplace listing alone does not establish compatibility with your database.
Configuration or development
If field mapping, status mapping and an exchange schedule are sufficient, start with configuration. An additional calculation rule, multiple databases or an unsupported object may require development.
Bitrix24 and other CRMs
This article uses official documentation for the Bitrix24 Connector to 1C. Another CRM needs a separate review of its connector or API. Capabilities do not automatically carry over between products.

Bitrix24 documentation describes date filters, exchanged fields and order/shipment status mappings. Check the actual plan, subscription, versions and permissions in the relevant account. There is no universal price or compatibility promise for every configuration.

Assign an owner to each field

The following is a proposed ownership map for one sales route. It is a project decision, not a mandatory architecture for every company. If accounting works differently, agree another source of truth.

Order request and lines: CRM -> 1C
CRM sends agreed items, quantities, currency and a link to the source order. A response containing the 1C document ID establishes the link. Until then, the sales team sees a pending transfer.
Posted document and payment: 1C -> CRM
Sales sees the confirmed amount and document state from the accounting system. A manually selected paid deal stage cannot overwrite them. Partial payment remains distinct from full payment.
Products and warehouses: one agreed reference set
Map stable IDs, units, product variants and warehouses. Matching names alone are not a reliable key. Send unknown items for review instead of creating them automatically.
Stock: 1C -> CRM
Specify the warehouse, treatment of reservations, definition of available quantity and snapshot time. Selling several units needs a separate reservation or order confirmation from the accounting system.
Cancellation: request and confirmation are separate
CRM may request cancellation. The final state comes from the agreed authoritative system. Refunds and correcting documents have their own rules and confirmations.

A customer may have multiple legal entities, agreements and delivery addresses. Map existing records first and decide who may create new ones. A wrong customer link matters more than an overall successful-exchange indicator.

Handle retries and conflicting updates

An exchange must preserve the meaning of an operation through redelivery and delay. A successful technical response does not replace checking the outcome in both systems.

Exact retry
The same event ID with identical content creates neither a second order nor another payment. A correction needs a new identifier and an agreed source version.
Altered retry
Reusing an event ID with another amount or set of lines is a conflict. Accepted content must not silently change under the same ID.
Late snapshot
Preserve source version order for each stock record or state. An older event cannot overwrite a newer one. Arrival time alone does not prove that data is current.
Unknown reference
A product, customer or source order cannot be matched: route the record to a review queue with a reason and owner. Do not create a similar record based on its name.
Unavailable system
Keep the transfer task, retry after recovery under the same rules and reconcile the result. Agree retry limits, delay alerts and manual escalation before launch.

Daily operations need the last successful transfer, pending items, differences, an owner and a clear next action. Full exports and credentials must not appear in public logs.

Fictional replay: one order, partial payment and cancellation

BYstudio prepared fictional events and a local Python 3 replay with no CRM, 1C, external API or payment-service connection. It is a reproducible acceptance model, not a working connector or customer implementation.

Input
12 events with 10 unique IDs. Order O-101 contains two fictional units of SKU-A: total=40000 kopecks, or RUB 400. Payment paid=15000 kopecks, or RUB 150. These are fictional amounts, not service prices.
First pass
Six changes apply, two exact retries are skipped and one older stock snapshot is ignored. Three events need review: a CRM-origin payment edit, an unknown product and payment for an unknown order.
Order outcome
One fictional order links to 1C-501. It is cancelled only after separate confirmation from 1C, while paid=15000 remains. The script neither issues a refund nor resets payment based on a CRM stage.
Stock outcome
SKU-A at W1 has availability 5 at version 2. A later arrival of version 1 with quantity 20 cannot replace it. Neither snapshot creates a reservation.
Retry and altered event
Replaying the whole batch produces 12 duplicates and leaves state, including review items, unchanged. An additional altered-payment retry under its previous ID is rejected as a conflict without changing the amount.

The ZIP contains a README, source events, replay.py and expected output. Extract it and run python3 replay.py from that folder. It writes result.json and checks it against the reference. It does not test real permissions, document writes/posting, network failures or queue recovery. Those require separate checks in an agreed test environment.

Download events, replay and expected output, ZIP

Accept a complete first exchange

Acceptance starts with an agreed field map and ends with reconciliation on both sides. A green status without record links and exception checks is insufficient.

Before launch
Record configurations, companies, currencies, units, warehouses, statuses, authoritative sources and allowed fields. Specify the expected outcome of each disputed case.
Normal route
One order with mapped customer and product, document confirmation, partial and full payment, and a stock update. Inspect actual records and fields, not only the number of outgoing requests.
Exceptions
Exact and altered retries, stale state, unknown product, missing order link, cancellation without refund, one unavailable side and recovery. Verify that no extra documents or unauthorized actions appear.
Reconciliation and ownership
For every source record: IDs on both sides, expected and actual values, reason for a difference, owner and next action. Count pending unaccepted items separately.

A first phase may cover one order type, company and warehouse. A limited scope is useful when it completes the whole agreed route and has testable boundaries. Connecting all data at once is not itself a quality criterion.

Permissions and exposing 1C

The 1C platform supports several integration methods, including HTTP services and REST. Selecting an interface does not automatically establish business rules, security or configuration compatibility.

Minimum scope
Use an account and permissions scoped to required objects and actions. Enforce access in the system itself rather than only hiding CRM controls.
Required-field validation
Official 1C documentation says normal access checks and event handlers run for REST reads/writes, except the fill-check operation. Validate required fields and business rules explicitly.
Document changes
Creating, writing and posting a document are distinct actions. Explicitly agree any automated posting permission and verify it in a test database.
Upgrades and operations
Assign queue ownership, a mapping-change process, checks after CRM/1C upgrades and outage recovery. Discuss backups and rollback as part of launch.

Do not expose a general-purpose database interface publicly just to run a demonstration. Choose connectivity, network boundaries and access scope for the actual infrastructure. The downloadable example has no network connection at all.

What an estimate needs

The initial discussion is free. A full audit, configuration, pilot, custom development and support have separately agreed scope and price.

Inputs
CRM and 1C configuration names, versions and modifications, hosting, current connector, one route and fictional record structures. Start without credentials or real exports.
First-phase deliverables
An exchange and ownership map, a working connection for the agreed route, error records, reconciliation and acceptance evidence. Select implementation after checking the existing connector.
Cost drivers
Database and company count, customization, reference-data quality, volume, required latency, permissions, retries, recovery and support. A precise price without these inputs would be guesswork.
Assessing value
Measure manual entry, time resolving differences, duplicates and confirmation delay. Transferring an order or a payment does not establish an additional sale or profit.

The published Krest-NN example documents a scoped Bitrix24 activity-deadline change. It illustrates an approach to automation checks, not evidence of a 1C integration. The exchange in this article remains an explicitly fictional demonstration.

Prepare one exchange route

Name the CRM, 1C configuration and one route to connect. A field description and fictional records are enough to start. Do not send passwords, tokens, bank details or real exports through the public form.

Download the exchange brief and acceptance checklist, TXT

Official sources

Checked on 9 November 2026. BYstudio prepared the proposed field ownership map, fictional events and checklist. This example measures no time savings, real connector accuracy or financial outcome.

Tell us what
you need to build.

The initial task discussion is free. Describe it in your own words. A BYstudio specialist or Yan Bunin will respond.

For example: @username, a phone number or name@company.com

Name the CRM, 1C configuration and one exchange route: order, payment or stock. Do not include real exports or credentials.

Add a detail (optional)

Please do not send passwords, tokens, customer databases or bank files.

What happens after you send it

We read the description, clarify the goal and suggest a first-phase scope. A few sentences are enough to start.