Skip to main content
M8 Sistemas is an ERP for Brazilian companies, widely used by auto centers and workshops, covering registrations, stock, service orders, billing, finance, purchases and CRM. This connector reads your M8 data through the M8 Integra API and brings customers, products and stock balances, service orders with their parts and services, sales invoices, orders and quotes with their lines, receivables and payables with installments and settlements, purchases and CRM records.
The connector only reads data. It never creates, changes or deletes anything in M8.

Before you start

The connector signs in to M8 with a regular M8 user, the same way you sign in at app.erpm8.cloud. You need:
  • Tenant: the name of your M8 environment, which is the part of your M8 address after the domain. If you open M8 at https://app.erpm8.cloud/mycompany, the tenant is mycompany.
  • Username and Password of the M8 user the connector will use. We recommend creating a dedicated user for Nekt.
  • Establishment ID: the ID of the M8 establishment (company) that user signs in to. If you don’t know it, ask your M8 administrator or M8 support.
  • Domain: only if your M8 address is not app.erpm8.cloud.
The user needs access to the M8 areas of the tables you want to sync (see Permissions). A table the user cannot read is skipped and the others keep syncing.

Configuring M8 Sistemas as a Source

In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the M8 Sistemas option from the list of connectors. Click Next and you’ll be prompted to add your access.

1. Add account access

The following configurations are available:
  • Tenant: the name of your M8 environment (for https://app.erpm8.cloud/mycompany, use mycompany). If you paste the whole address, the connector uses the part after the domain.
  • Username: login of the M8 user the connector signs in with.
  • Password: password of that user.
  • Establishment ID: ID of the M8 establishment (company) the user signs in to.
  • Start Date: the earliest issue date of the documents read (receivables, payables, customer advances, sales invoices, orders, quotes, purchases) and of the service orders. The registrations (customers, products, lookups and so on) are always read in full.
Documents issued before the Start Date are never read. If you move the Start Date to a later date, the next run removes the older documents from the document tables (even when no document is left), and their lines stop matching any document. Choose a date that covers all the history you need, including old receivables and payables that are still open.
  • Domain (advanced, optional): the domain of your M8 address, only if it is not app.erpm8.cloud.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.
Tip: The stream can be found more easily by typing its name.
Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.
  • Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
  • Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
  • Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
  • Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
    • Incremental: every time the extraction happens, we’ll get only the new data, which is good if, for example, you want to keep every record ever fetched.
    • Full table: every time the extraction happens, we’ll get the current state of the data, which is good if, for example, you don’t want to have deleted data in your catalog.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:
  • Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
  • Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
Once you are ready, click Next to finalize the setup.

5. Check your new source

You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.
For you to be able to see it on your Catalog, you need at least one successful source run.

Streams and Fields

Available streams

The table below lists every stream, its slug (the exact identifier to pass when creating the source via API), how it is synced and a short description. Column names are the M8 field names in snake_case.

Fields by stream

Registrations

Customers (clientes) with tax ID, contact, group, region, payment condition and status.Table: customers · Primary key: id · Sync: Full table · M8 area: Configurações > Clientes
Suppliers (fornecedores).Table: suppliers · Primary key: id · Sync: Full table · M8 area: Configurações > Fornecedores
Employees (funcionários).Table: employees · Primary key: id · Sync: Full table · M8 area: Configurações > Funcionários
Sellers (vendedores) and their supervisors.Table: sellers · Primary key: id · Sync: Full table · M8 area: Configurações > Vendedores
Carriers (transportadores).Table: carriers · Primary key: id · Sync: Full table · M8 area: Configurações > Transportadores
M8 users.Table: users · Primary key: id · Sync: Full table · M8 area: Configurações > Usuários

Products, services and stock

Products with prices, costs, stock group, family, brand, NCM and dimensions.Table: products · Primary key: id · Sync: Full table · M8 area: Estoque > Produtos
Services offered (labor and other services).Table: services · Primary key: id · Sync: Full table · M8 area: Estoque > Serviços
Equipment registered in stock (Estoque, Equipamentos).Table: equipment · Primary key: id · Sync: Full table · M8 area: Estoque > Equipamentos
Price and stock balance of each product in each price table (id is the product ID).Table: product_price_stock · Primary key: id, tabela_preco_id, condicao_pagamento_id · Sync: Full table · M8 area: Estoque > Tabela de preço / saldo de produtos
Stock groups.Table: product_groups · Primary key: id · Sync: Full table · M8 area: Estoque > Grupos
Product families.Table: product_families · Primary key: id · Sync: Full table · M8 area: Estoque > Famílias
Brands.Table: brands · Primary key: id · Sync: Full table · M8 area: Estoque > Marcas
Product categories.Table: product_categories · Primary key: id · Sync: Full table · M8 area: Estoque > Categorias
Units of measure.Table: units · Primary key: id · Sync: Full table · M8 area: Estoque > Unidades
Stock locations.Table: stock_locations · Primary key: id · Sync: Full table · M8 area: Estoque > Locais de estoque

Service orders

Service orders (Assistência técnica) with customer, vehicle, technician, dates, totals and maintenance data (mileage, oil change).Table: service_orders · Primary key: id · Sync: Incremental · M8 area: Assistência técnica > Ordens de serviço
Products (parts) used in each service order.Table: service_order_products · Primary key: ordem_servico_id, id · Sync: Incremental · M8 area: Assistência técnica > Ordens de serviço
Services performed in each service order.Table: service_order_services · Primary key: ordem_servico_id, id · Sync: Incremental · M8 area: Assistência técnica > Ordens de serviço
Service order types and their settings.Table: service_order_types · Primary key: id · Sync: Full table · M8 area: Faturamento > Tipos de ordem de serviço
Service order situations (Assistência técnica).Table: service_order_statuses · Primary key: id · Sync: Full table · M8 area: Assistência técnica > Situações de OS
Service orders of the billing module (Faturamento, Ordens de serviço) issued since the Start Date.Table: billing_service_orders · Primary key: id · Sync: Full table · M8 area: Faturamento > Ordens de serviço

Sales

Sales invoices (NF-e) issued since the Start Date.Table: sales_invoices · Primary key: id · Sync: Full table · M8 area: Faturamento > Notas fiscais de venda
Product lines of each sales invoice, with taxes.Table: sales_invoice_products · Primary key: documento_fiscal_id, id · Sync: Incremental · M8 area: Faturamento > Notas fiscais de venda
Service lines of each sales invoice, with taxes.Table: sales_invoice_services · Primary key: documento_fiscal_id, id · Sync: Incremental · M8 area: Faturamento > Notas fiscais de venda
Sales orders (pedidos) issued since the Start Date.Table: sales_orders · Primary key: id · Sync: Full table · M8 area: Faturamento > Pedidos
Product lines of each sales order.Table: sales_order_products · Primary key: pedido_id, id · Sync: Incremental · M8 area: Faturamento > Pedidos
Service lines of each sales order.Table: sales_order_services · Primary key: pedido_id, id · Sync: Incremental · M8 area: Faturamento > Pedidos
Installments of each sales order.Table: sales_order_installments · Primary key: pedido_id, id · Sync: Incremental · M8 area: Faturamento > Pedidos
Quotes (orçamentos) issued since the Start Date, with vehicle plate and model.Table: quotes · Primary key: id · Sync: Full table · M8 area: Faturamento > Orçamentos
Product lines of each quote.Table: quote_products · Primary key: orcamento_id, id · Sync: Incremental · M8 area: Faturamento > Orçamentos
Service lines of each quote.Table: quote_services · Primary key: orcamento_id, id · Sync: Incremental · M8 area: Faturamento > Orçamentos
Price tables.Table: price_tables · Primary key: id · Sync: Full table · M8 area: Faturamento > Tabelas de preço
Order types and their settings.Table: order_types · Primary key: id · Sync: Full table · M8 area: Faturamento > Tipos de pedido
Billing statuses.Table: billing_statuses · Primary key: id · Sync: Full table · M8 area: Faturamento > Status

Finance

Receivable titles issued since the Start Date, with amount, open balance and status.Table: accounts_receivable · Primary key: id · Sync: Full table · M8 area: Financeiro > Contas a receber
Installments of each receivable title.Table: receivable_installments · Primary key: titulo_id, id · Sync: Incremental · M8 area: Financeiro > Contas a receber
Settlements (payments received) of each receivable title.Table: receivable_settlements · Primary key: titulo_id, id · Sync: Incremental · M8 area: Financeiro > Contas a receber
Payable titles issued since the Start Date, with amount, open balance and status.Table: accounts_payable · Primary key: id · Sync: Full table · M8 area: Financeiro > Contas a pagar
Installments of each payable title.Table: payable_installments · Primary key: titulo_id, id · Sync: Incremental · M8 area: Financeiro > Contas a pagar
Settlements (payments made) of each payable title.Table: payable_settlements · Primary key: titulo_id, id · Sync: Incremental · M8 area: Financeiro > Contas a pagar
Customer advances issued since the Start Date.Table: customer_advances · Primary key: id · Sync: Full table · M8 area: Financeiro > Adiantamentos de clientes
Payment conditions.Table: payment_conditions · Primary key: id · Sync: Full table · M8 area: Financeiro > Condições de pagamento
Payment methods.Table: payment_methods · Primary key: id · Sync: Full table · M8 area: Financeiro > Meios de pagamento
Financial operations (chart of financial categories).Table: financial_operations · Primary key: id · Sync: Full table · M8 area: Financeiro > Operações financeiras
Document types (espécies) of financial titles.Table: document_species · Primary key: id · Sync: Full table · M8 area: Financeiro > Espécies
Chart of accounts.Table: chart_of_accounts · Primary key: id · Sync: Full table · M8 area: Contábil > Plano de contas

Purchases

Purchase invoices issued since the Start Date.Table: purchase_invoices · Primary key: id · Sync: Full table · M8 area: Compras > Notas fiscais de compra
Product lines of each purchase invoice.Table: purchase_invoice_products · Primary key: documento_fiscal_id, id · Sync: Incremental · M8 area: Compras > Notas fiscais de compra
Purchase orders issued since the Start Date.Table: purchase_orders · Primary key: id · Sync: Full table · M8 area: Compras > Ordens de compra
Items of each purchase order.Table: purchase_order_items · Primary key: ordem_compra_id, id · Sync: Incremental · M8 area: Compras > Ordens de compra

CRM

CRM accounts (leads, prospects and customers).Table: crm_accounts · Primary key: id · Sync: Full table · M8 area: CRM > Contas
CRM opportunities.Table: crm_opportunities · Primary key: id · Sync: Full table · M8 area: CRM > Oportunidades
CRM tasks.Table: crm_tasks · Primary key: id · Sync: Full table · M8 area: CRM > Tarefas

How data is synced

  • Registrations and lookups (customers, products, price and stock balance, payment conditions and so on) are read in full on every run, so the tables always show the current state, including deletions.
  • Documents (receivables, payables, customer advances, sales invoices, orders, quotes, billing service orders, purchases) are the documents issued on or after the Start Date, read in full on every run. Changes to a document (a payment, a cancellation) appear on the next run. Documents issued before the Start Date are not read.
  • Document lines (installments, settlements, invoice, order, quote and purchase lines) are incremental. M8 only gives the lines one document at a time, so the first run reads the lines of every document, which can take a while. After that, each run reads the lines only of documents that are new, that changed in any way (status, balance, totals and so on), that were issued in the last 30 days, or that are still open (titles with an open balance; orders, invoices, quotes and purchases whose status is not final), plus one seventh of the other documents for each day since the previous run, so every document is read again at least once a week, whatever the schedule. Accounts with many open titles read all of them on every run.
  • Current lines of a document: every document and service order has a fingerprint column, and every line has documento_fingerprint and linhas_lidas_em. A line removed in M8 stays in the table with an older linhas_lidas_em. To keep only the current lines, keep the lines whose documento_fingerprint equals their document’s fingerprint and whose linhas_lidas_em is the latest for that document. For example:
The same rule applies to service order products and services, joined on ordem_servico_id to service_orders.id. This filter needs the document table selected in the same source. If a run updates the document table but its line table fails, documents that changed show no current lines until the next successful run of the line table.
  • Service orders (Assistência técnica) and their products and services are incremental: each run reads the orders updated or issued since the previous run (with a safety margin of a few hours). The first run, and a Full Sync, read every order updated or issued since the Start Date.
  • Dates and times are M8’s local time, as M8 returns them. Empty M8 dates (0001-01-01) are stored as empty.
  • Nested data (for example a service order’s maintenance data, time entries or checklist answers) is stored as JSON text.

Permissions

The M8 user needs access to the M8 area of each table you sync. A table the user cannot read is skipped in that run, with a warning naming the tables and the area; the other tables keep syncing. Document lines follow their documents.

Troubleshooting

Skills for agents

Download M8 Sistemas skills file

M8 Sistemas connector documentation as plain markdown, for use in AI agent contexts.