Integração Service

Integração Service (VTEX, Sankhya, WMW Vendas, PostalNet, SGP Web, Mandaê, SIGEP, AVJ/CGE, Lista de Compras, Canal do Artesanato, Vitrine do Artesanato Digital)

View on GitHub

Integração Service

Integração Service application mainly performs the synchronization of the Sankhya ERP with the e-commerce on the VTEX platform.

Build Deploy Update packages

Integração Service


Table of Contents


Features


About

This application is responsible for the integration between the various systems, platforms, and services used or developed by the Inovação group, such as:

System Type
Sankhya ERP
VTEX E-commerce PaaS
Canal do Artesanato Own platform
Lista de Compras Own platform
Vitrine do Artesanato Digital Own platform
SIGEP - Correios Carrier / courier
Mandaê Carrier / courier
WMW Vendas CRM
Postal Net AGF - Correios reporting system
CGE - AVJ Delivery control and management

NuGet Packages

The following libraries are published as NuGet packages and can be consumed by other projects within the Inovação group:

Package Description
IntegracaoService.Configuration Application configuration and dependency resolution classes
IntegracaoService.Databases Database communication classes (SQL Server, PostgreSQL, MariaDB/MySQL)
IntegracaoService.Infrastructure Infrastructure utilities (versioning, operation management, competition)
IntegracaoService.Logging Log adapter implementations
IntegracaoService.Notifications Notification adapter implementations
IntegracaoService.ProductsCrawlers Product data scraping utilities
IntegracaoService.Shared Shared constants and cross-cutting classes
IntegracaoService.TotalIp PostgreSQL integration with TotalIP (Digital PBX)
IntegracaoService.WMWVendas SQL integration with WMW Vendas CRM

Organization

The application consists of 26 projects:

Solution


Architecture

Stack

Containers


Diagrams

SVG diagrams of the modules, the runtime and every operation flow. They are kept in docs/diagrams. Click a diagram to open it at full size.

Modules and runtime

Solution modules

The 26 projects grouped by layer, with each project’s ProjectReferences.

Solution modules

Runtime architecture

Processes, triggers, external systems and infrastructure.

Runtime architecture

Operation execution pipeline

What IntegracaoService.exe does from process start to exit when it runs an operation.

Operation execution pipeline

Operations catalog

Every value of the Operation enum, with its [OperationEntryPoint] method, data source and destination.

Operations catalog

ForIntegration web API

Callers, controllers and the data each controller reads or writes.

ForIntegration web API

Operation flows

Catalog, price and stock export (Sankhya → VTEX)

ExportCatalog, UpdateCatalogPrice and UpdateCatalogInventory.

Catalog export flow

Order import (VTEX → Sankhya)

ImportOrders, including the error and manual-fix loop.

Order import flow

Order lifecycle after import

UpdateOrders, CancelOrders and the delivery notification.

Order lifecycle flow

Shipment tracking: data collection

ShipmentsTracking: the handlers that collect data from Correios, Mandaê, PostalNet and AVJ/CGE.

Shipment tracking data collection

Shipment tracking: status dispatch and customer service

How tracking statuses become VTEX notifications, seller messages and WMW Vendas tickets.

Shipment tracking status dispatch

Order flow monitoring

ProcessOrdersFlows and the order-control flow register.

Order flow monitoring

Data, platform and maintenance operations

Geolocation, Elasticsearch indexing, marketplace errors, Lista de Compras, Vitrine do Artesanato Digital, NF-e correction and stock correction.

Other operations

Platform flows

Self-update

The VersionManager version check and the IntegracaoService.Updater installer.

Self-update flow

Logging, telemetry and health monitoring

Log providers, the RabbitMQ log monitor, run history and the Node.js scheduler’s health checks.

Logging and monitoring flow

CI/CD

The GitHub Actions build, package and release pipelines.

CI/CD pipelines


Development

To carry out application development, troubleshooting, or maintenance, the following tools are required:

IDE

SDKs

Tooling

Versioning

Versions are derived automatically via GitVersion using the GitHubFlow/v1 workflow in ContinuousDeployment mode. The version is computed from Git tags and branch names — no manual Version.txt files are needed. To create a new release, push a tag like v9.3.0 to main.

Infrastructure

Available over the network, via docker-compose, or installed locally:

Service Purpose
Elastic Search Data indexing and report extraction
Microsoft SQL Server Primary relational database
Microsoft SQL Server Management Studio Database management UI
RabbitMQ Async messaging between services
Redis Cache and distributed state

Contributing

Issues and pull requests are tracked on GitHub.


Developed by Guilherme Branco Stracini for Editora Inovação.

2012 ~ 2026 © All rights reserved.