One-Click 1C Invoices with Stamp and Signature in 2 Seconds from CRM

The Challenge

The client is an automotive interior studio serving both individual car owners and dealerships. A single B2B order frequently covers 2–⁠7 vehicles. The studio runs a custom CRM (Next.js + PostgreSQL + S3) alongside cloud-hosted 1C:Accounting 3.0 on Scloud.

The goal was to issue an invoice in 1C with one click from a CRM order card and automatically receive a PDF containing the company stamp and signature facsimile. At the same time, the accountant’s existing workflow in the MAX messenger (completion certificates, UPD tax documents, advance payments, and onboarding new corporate entities) had to remain untouched.

The owner and accountant set one strict constraint: do not modify the standard 1C configuration and never create duplicate or posted accounting documents.

Before the Integration

For every B2B order, a manager clicked “Request invoice and certificate” and waited. The order card was sent to the accountant in MAX, who manually created the invoice in 1C: copying line items, car makes, models, and VINs (often 5–⁠7 vehicles per invoice), double-checking totals, exporting a stamped PDF, and sending the file back in chat for the bot to attach.

This created manual bottlenecks on routine invoices, risked typos in VINs and line totals, and delayed sending invoices to dealerships.

How We Built It

Step 1. Outbound Pull Instead of Exposing 1C Publicly

Our initial plan was inbound OData from CRM to 1C. Reconnaissance of the cloud Scloud instance uncovered two hard blockers: standard OData returned zero published entities (value=[]), and the available cloud login was a shared admin account where permissions, passwords, and licenses could not be changed.

We switched to an outbound pull architecture with zero open inbound ports. A lightweight external processing module (.epf) inside 1C polls the CRM API over HTTPS and claims jobs from a PostgreSQL queue (MVCC order snapshot + SHA256 verification, 5-minute lease). Authentication uses a Bearer token strictly bound to the exact infobase Ref so a staging copy can never collide with production.

The module runs under 1C’s standard library safe mode (SafeMode = True) with a single permission: HTTPS calls to the CRM domain. The core 1C configuration was never touched, so vendor updates apply cleanly.

CRM and cloud 1C exchange flow: outbound HTTPS pull

Step 2. Duplicate Prevention and Safe Drafts

1C always creates an unposted draft invoice without VAT. Documents only go to clients after manager review.

Each job carries a deterministic UUID for the target invoice. On network drops, double-clicks, or timeouts, 1C looks up any existing document by that UUID instead of creating a second invoice.

We also built a smart fallback: if an order involves an advance payment, lacks a matching counterparty or contract in 1C, or already has an open accounting request, the CRM automatically routes the manager to the MAX accountant workflow.

Step 3. Auditing 10 Real PDFs Before Writing Code

Before launch, we compared 10 real accountant-issued PDF invoices against raw CRM orders. Two non-obvious business rules surfaced immediately:

We encoded both rules into the invoice builder using BigInt cent-level integer math. Without that pre-launch audit, automated invoices would have been mathematically valid yet unfamiliar to repeat B2B clients.

Step 4. In-Memory Stamped PDFs and Unified MAX Flow

Under cloud 1C safe mode, writing temporary PDF files to disk is unreliable. We switched print-form export (using 1C’s built-in print manager with stamp and signature graphics) to an in-memory binary stream: the ~180 KB PDF renders entirely in RAM and uploads straight back to the CRM within the same job confirmation request.

A “Create in 1C” button now sits directly inside the CRM’s corporate documents panel with a confirmation modal showing the total and tax ID. Once generated, the PDF uploads to S3 and attaches to the order card with Preview and Download actions, short invoice number, audit log entry, and a link in the client portal.

The accountant chat button updates dynamically to “Request act and UPD in MAX” and posts "Invoice #225 created" to the accountant’s thread so no duplicate is ever raised.

Cloud 1C Production Nuances

Results

MetricBeforeAfter
Invoice creationWaiting on accountant, manual entry1 manager click, ~2 seconds in 1C
Stamped & signed PDFSent manually as a chat fileAttached automatically to order card
Duplicate invoicesRisk on repeat requests0, guarded by deterministic UUID
Core 1C changesWould require custom configuration edits0, safe-mode external .epf module
Accountant workloadEvery invoice entered manuallyOnly acts, UPDs, prepayments, new entities

Draft invoices match the exact visual layout and grouping rules that dealership clients and the accountant expect.

Tech Stack

Want a Similar Integration?

Message @eldarmarketing or reach out here to discuss your workflow.

Need a similar solution?

Describe your situation and we will outline how to adapt this approach to your business. Free 30-minute call.