> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# M8 Sistemas as a data source

> Bring your M8 Sistemas ERP data to Nekt: customers, products, service orders, sales, invoices, receivables, payables, purchases and CRM.

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.

> [!NOTE]
>
> 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](#permissions)). A table the user cannot read is skipped and the others keep syncing.

## Configuring M8 Sistemas as a Source

In the [Sources](https://app.nekt.ai/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.

> [!WARNING]
>
> 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](https://docs.nekt.com/runs/scheduling-and-triggers.md), 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](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#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](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/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.

| Stream | Slug | Sync | Description |
| :- | :- | :- | :- |
| Customers | `customers` | Full table | Customers (clientes) with tax ID, contact, group, region, payment condition and status. |
| Suppliers | `suppliers` | Full table | Suppliers (fornecedores). |
| Employees | `employees` | Full table | Employees (funcionários). |
| Sellers | `sellers` | Full table | Sellers (vendedores) and their supervisors. |
| Carriers | `carriers` | Full table | Carriers (transportadores). |
| Users | `users` | Full table | M8 users. |
| Products | `products` | Full table | Products with prices, costs, stock group, family, brand, NCM and dimensions. |
| Services | `services` | Full table | Services offered (labor and other services). |
| Equipment | `equipment` | Full table | Equipment registered in stock (Estoque, Equipamentos). |
| Product price stock | `product_price_stock` | Full table | Price and stock balance of each product in each price table (`id` is the product ID). |
| Product groups | `product_groups` | Full table | Stock groups. |
| Product families | `product_families` | Full table | Product families. |
| Brands | `brands` | Full table | Brands. |
| Product categories | `product_categories` | Full table | Product categories. |
| Units | `units` | Full table | Units of measure. |
| Stock locations | `stock_locations` | Full table | Stock locations. |
| Service orders | `service_orders` | Incremental | Service orders (Assistência técnica) with customer, vehicle, technician, dates, totals and maintenance data (mileage, oil change). |
| Service order products | `service_order_products` | Incremental | Products (parts) used in each service order. |
| Service order services | `service_order_services` | Incremental | Services performed in each service order. |
| Service order types | `service_order_types` | Full table | Service order types and their settings. |
| Service order statuses | `service_order_statuses` | Full table | Service order situations (Assistência técnica). |
| Billing service orders | `billing_service_orders` | Full table | Service orders of the billing module (Faturamento, Ordens de serviço) issued since the Start Date. |
| Sales invoices | `sales_invoices` | Full table | Sales invoices (NF-e) issued since the Start Date. |
| Sales invoice products | `sales_invoice_products` | Incremental | Product lines of each sales invoice, with taxes. |
| Sales invoice services | `sales_invoice_services` | Incremental | Service lines of each sales invoice, with taxes. |
| Sales orders | `sales_orders` | Full table | Sales orders (pedidos) issued since the Start Date. |
| Sales order products | `sales_order_products` | Incremental | Product lines of each sales order. |
| Sales order services | `sales_order_services` | Incremental | Service lines of each sales order. |
| Sales order installments | `sales_order_installments` | Incremental | Installments of each sales order. |
| Quotes | `quotes` | Full table | Quotes (orçamentos) issued since the Start Date, with vehicle plate and model. |
| Quote products | `quote_products` | Incremental | Product lines of each quote. |
| Quote services | `quote_services` | Incremental | Service lines of each quote. |
| Price tables | `price_tables` | Full table | Price tables. |
| Order types | `order_types` | Full table | Order types and their settings. |
| Billing statuses | `billing_statuses` | Full table | Billing statuses. |
| Accounts receivable | `accounts_receivable` | Full table | Receivable titles issued since the Start Date, with amount, open balance and status. |
| Receivable installments | `receivable_installments` | Incremental | Installments of each receivable title. |
| Receivable settlements | `receivable_settlements` | Incremental | Settlements (payments received) of each receivable title. |
| Accounts payable | `accounts_payable` | Full table | Payable titles issued since the Start Date, with amount, open balance and status. |
| Payable installments | `payable_installments` | Incremental | Installments of each payable title. |
| Payable settlements | `payable_settlements` | Incremental | Settlements (payments made) of each payable title. |
| Customer advances | `customer_advances` | Full table | Customer advances issued since the Start Date. |
| Payment conditions | `payment_conditions` | Full table | Payment conditions. |
| Payment methods | `payment_methods` | Full table | Payment methods. |
| Financial operations | `financial_operations` | Full table | Financial operations (chart of financial categories). |
| Document species | `document_species` | Full table | Document types (espécies) of financial titles. |
| Chart of accounts | `chart_of_accounts` | Full table | Chart of accounts. |
| Purchase invoices | `purchase_invoices` | Full table | Purchase invoices issued since the Start Date. |
| Purchase invoice products | `purchase_invoice_products` | Incremental | Product lines of each purchase invoice. |
| Purchase orders | `purchase_orders` | Full table | Purchase orders issued since the Start Date. |
| Purchase order items | `purchase_order_items` | Incremental | Items of each purchase order. |
| CRM accounts | `crm_accounts` | Full table | CRM accounts (leads, prospects and customers). |
| CRM opportunities | `crm_opportunities` | Full table | CRM opportunities. |
| CRM tasks | `crm_tasks` | Full table | CRM tasks. |

## Fields by stream

### Registrations

> [accordion] Customers
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `nome_fantasia` | String | Trade name (display). |
> | `apelido` | String | Nickname or short name. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `uf_sigla` | String | State abbreviation (UF). |
> | `telefone` | String | Phone number. |
> | `email` | String | Email address. |
> | `data_cadastro` | Datetime | Date and time the record was registered in M8. |
> | `tipo_pessoa_id` | Integer | ID of the person type. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `pessoa_grupo_id` | Integer | ID of the group person. |
> | `pessoa_grupo_nome` | String | Name of the group person. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `ramo_atividade_id` | Integer | ID of the activity line. |
> | `ramo_atividade_nome` | String | Name of the activity line. |
> | `indicador_venda_id` | Integer | ID of the sale indicator. |
> | `indicador_venda_nome` | String | Name of the sale indicator. |
> | `regiao_id` | Integer | ID of the region. |
> | `regiao_nome` | String | Name of the region. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `observacoes_internas` | String | Internal notes. |
> | `observacao_interna` | String | Internal notes. |
> | `eh_empresa` | Boolean | Is company. |
> | `percentual_desconto_financeiro` | Number | Financial discount percentage. |
> | `data_validade_desconto_financeiro` | Datetime | Financial discount expiry date. |
> | `ativo` | Boolean | Whether the record is active. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Suppliers
>
> Suppliers (fornecedores).
>
> Table: `suppliers` · Primary key: `id` · Sync: Full table · M8 area: Configurações > Fornecedores
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `nome_fantasia` | String | Trade name (display). |
> | `apelido` | String | Nickname or short name. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `uf_sigla` | String | State abbreviation (UF). |
> | `telefone` | String | Phone number. |
> | `tipo_pessoa_id` | Integer | ID of the person type. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `pessoa_grupo_id` | Integer | ID of the group person. |
> | `pessoa_grupo_nome` | String | Name of the group person. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `ramo_atividade_id` | Integer | ID of the activity line. |
> | `ramo_atividade_nome` | String | Name of the activity line. |
> | `observacao_interna` | String | Internal notes. |
> | `ativo` | Boolean | Whether the record is active. |

> [accordion] Employees
>
> Employees (funcionários).
>
> Table: `employees` · Primary key: `id` · Sync: Full table · M8 area: Configurações > Funcionários
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `nome_fantasia` | String | Trade name (display). |
> | `tipo_pessoa` | String | Person type. |
> | `apelido` | String | Nickname or short name. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `uf_sigla` | String | State abbreviation (UF). |
> | `telefone` | String | Phone number. |
> | `email` | String | Email address. |
> | `inscricao_estadual` | String | State registration. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `ativo` | Boolean | Whether the record is active. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Sellers
>
> Sellers (vendedores) and their supervisors.
>
> Table: `sellers` · Primary key: `id` · Sync: Full table · M8 area: Configurações > Vendedores
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `nome_fantasia` | String | Trade name (display). |
> | `apelido` | String | Nickname or short name. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `uf_sigla` | String | State abbreviation (UF). |
> | `telefone` | String | Phone number. |
> | `tipo_pessoa_id` | Integer | ID of the person type. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `pessoa_grupo_id` | Integer | ID of the group person. |
> | `pessoa_grupo_nome` | String | Name of the group person. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `ramo_atividade_id` | Integer | ID of the activity line. |
> | `ramo_atividade_nome` | String | Name of the activity line. |
> | `supervisor_id` | Integer | ID of the supervisor. |
> | `supervisor_nome` | String | Name of the supervisor. |
> | `observacao_interna` | String | Internal notes. |
> | `ativo` | Boolean | Whether the record is active. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Carriers
>
> Carriers (transportadores).
>
> Table: `carriers` · Primary key: `id` · Sync: Full table · M8 area: Configurações > Transportadores
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `nome_fantasia` | String | Trade name (display). |
> | `apelido` | String | Nickname or short name. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `uf_sigla` | String | State abbreviation (UF). |
> | `telefone` | String | Phone number. |
> | `tipo_pessoa_id` | Integer | ID of the person type. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `pessoa_grupo_id` | Integer | ID of the group person. |
> | `pessoa_grupo_nome` | String | Name of the group person. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `ramo_atividade_id` | Integer | ID of the activity line. |
> | `ramo_atividade_nome` | String | Name of the activity line. |
> | `observacao_interna` | String | Internal notes. |
> | `ativo` | Boolean | Whether the record is active. |

> [accordion] Users
>
> M8 users.
>
> Table: `users` · Primary key: `id` · Sync: Full table · M8 area: Configurações > Usuários
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `ativo` | Boolean | Whether the record is active. |
> | `nome` | String | Name of the record. |
> | `login` | String | Login of the user. |
> | `pessoa_id` | Integer | ID of the person. |
> | `pessoa_nome` | String | Name of the person. |
> | `escala_horas_id` | Integer | ID of the hours scale. |
> | `escala_horas_nome` | String | Name of the hours scale. |
> | `tempo_adicional` | Integer | Additional time. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_margem_minima` | Number | Minimum margin value. |
> | `administrador` | Boolean | Whether the user is an administrator. |
> | `mobile` | Boolean | Mobile. |
> | `widget_whats` | Boolean | WhatsApp widget. |
> | `habilitar_compra_m8_store` | Boolean | Enable store M8 purchase. |
> | `dispositivo_envio_id` | Integer | ID of the sending device. |
> | `dispositivo_envio_nome` | String | Name of the sending device. |
> | `email` | String | Email address. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

### Products, services and stock

> [accordion] Products
>
> Products with prices, costs, stock group, family, brand, NCM and dimensions.
>
> Table: `products` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Produtos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `preco_venda` | Number | Sale price. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `familia_id` | Integer | ID of the family. |
> | `familia_nome` | String | Name of the family. |
> | `codigo_market_place` | String | Place market code. |
> | `ativo_ecommerce` | String | E-commerce active. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `origem` | String | Origin. |
> | `apelido` | String | Nickname or short name. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `codigo_barras` | String | Barcode code. |
> | `fornecedor_id` | Integer | ID of the supplier. |
> | `fornecedor_nome` | String | Name of the supplier. |
> | `fabricante_id` | Integer | ID of the manufacturer. |
> | `fabricante_nome` | String | Name of the manufacturer. |
> | `referencia_fabricante` | String | Manufacturer reference. |
> | `codigo_similaridade` | String | Similarity code. |
> | `localizacao` | String | Location. |
> | `codigo_importacao` | String | Import code. |
> | `codigo_especificador_cest` | String | CEST specifier code. |
> | `codigo_especificador_cest_nome` | String | Name of the CEST specifier code. |
> | `grupo_estoque_id` | Integer | ID of the stock group. |
> | `grupo_estoque_nome` | String | Name of the stock group. |
> | `categoria_id` | Integer | ID of the category. |
> | `categoria_nome` | String | Name of the category. |
> | `unidade_destino_nome` | String | Name of the destination unit. |
> | `linha_id` | Integer | ID of the line. |
> | `tipo_categoria_id` | Integer | ID of the category type. |
> | `tipo_categoria_nome` | String | Name of the category type. |
> | `gramatura` | Integer | Grammage. |
> | `numero_folhas` | Integer | Sheets number. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `ncm_nome` | String | Name of the NCM. |
> | `codigo_tipo_sped` | String | SPED type code. |
> | `tipo_sped_nome` | String | Name of the SPED type. |
> | `marca_id` | Integer | ID of the brand. |
> | `marca_nome` | String | Name of the brand. |
> | `montadora_id` | Integer | ID of the automaker. |
> | `montadora_nome` | String | Name of the automaker. |
> | `grade_desconto_id` | Integer | ID of the discount grid. |
> | `grade_desconto_nome` | String | Name of the discount grid. |
> | `cor_cadastro_id` | Integer | ID of the registration color. |
> | `cor` | String | Color. |
> | `potencia_extra` | Number | Extra power. |
> | `modelo_resumido` | String | Summary model. |
> | `cor_cadastro_nome` | String | Name of the registration color. |
> | `codigo_fornecedor_vinculado` | String | Linked supplier code. |
> | `local_estoque_id` | Integer | ID of the stock location. |
> | `local_estoque_nome` | String | Name of the stock location. |
> | `multiplo_venda` | Number | Sale multiple. |
> | `valor_reposicao` | Number | Replacement value. |
> | `peso_bruto` | Number | Gross weight. |
> | `peso_liquido` | Number | Net weight. |
> | `produto_altura` | Number | Height product. |
> | `produto_largura` | Number | Width product. |
> | `produto_comprimento` | Number | Length product. |
> | `produto_metro_cubico` | Number | Cubic meter product. |
> | `potencia` | Number | Power. |
> | `data_custo_fornecedor` | Datetime | Supplier cost date. |
> | `custo_fornecedor` | Number | Supplier cost. |
> | `preco_venda_minimo` | Number | Minimum sale price. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Services
>
> Services offered (labor and other services).
>
> Table: `services` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Serviços
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `apelido` | String | Nickname or short name. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `familia_nome` | String | Name of the family. |
> | `familia_id` | Integer | ID of the family. |
> | `preco_venda` | Number | Sale price. |
> | `preco_venda_minimo` | Number | Minimum sale price. |
> | `estabelecimento_faturamento_id` | Integer | ID of the billing establishment. |
> | `estabelecimento_faturamento_nome` | String | Name of the billing establishment. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `codigo_especificador_cest` | String | CEST specifier code. |
> | `codigo_especificador_cest_nome` | String | Name of the CEST specifier code. |
> | `grupo_estoque_id` | Integer | ID of the stock group. |
> | `grupo_estoque_nome` | String | Name of the stock group. |
> | `codigo_genero` | String | Genre code. |
> | `codigo_tipo_sped` | String | SPED type code. |
> | `marca_id` | Integer | ID of the brand. |
> | `marca_nome` | String | Name of the brand. |
> | `lista_servico_id` | Integer | ID of the service list. |
> | `lista_servico_nome` | String | Name of the service list. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `tecnico_recebe_comissao` | String | Commission receives technician. |
> | `controla_comissao_supervisor` | String | Controls supervisor commission. |
> | `bloqueia_lancamento_projeto` | Boolean | Blocks project posting. |
> | `tributacao_nfse` | String | NFS-e taxation. |
> | `cnae` | String | CNAE. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `lucro_estimado` | Number | Estimated profit. |
> | `lucro_estimado_minimo` | Number | Minimum estimated profit. |
> | `lucro_estimado_alocado` | Number | Allocated estimated profit. |
> | `percentual_desconto_maximo` | Number | Maximum discount percentage. |
> | `percentual_custo_financeiro` | Number | Financial cost percentage. |
> | `observacao_nota_fiscal` | String | Fiscal invoice notes. |
> | `informacoes_complementares` | String | Complementary information. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `exibe_os` | String | Shows service order. |

> [accordion] Equipment
>
> Equipment registered in stock (Estoque, Equipamentos).
>
> Table: `equipment` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Equipamentos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `apelido` | String | Nickname or short name. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `marca_id` | Integer | ID of the brand. |
> | `marca_nome` | String | Name of the brand. |
> | `montadora_id` | Integer | ID of the automaker. |
> | `montadora_nome` | String | Name of the automaker. |
> | `familia_id` | Integer | ID of the family. |
> | `familia_nome` | String | Name of the family. |
> | `grupo_estoque_id` | Integer | ID of the stock group. |
> | `grupo_estoque_nome` | String | Name of the stock group. |
> | `numero_serie` | String | Series number. |
> | `localizacao` | String | Location. |
> | `referencia_fabricante` | String | Manufacturer reference. |
> | `codigo_similaridade` | String | Similarity code. |
> | `preco_venda` | Number | Sale price. |
> | `peso_bruto` | Number | Gross weight. |
> | `peso_liquido` | Number | Net weight. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Product price stock
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `produto_nome` | String | Name of the product. |
> | `produto_apelido` | String | Nickname product. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `tabela_preco_id` | Integer | ID of the price table. |
> | `tabela_preco_nome` | String | Name of the price table. |
> | `grupo_estoque_id` | Integer | ID of the stock group. |
> | `grupo_estoque_nome` | String | Name of the stock group. |
> | `potencia` | Number | Power. |
> | `modelo_resumido` | String | Summary model. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `categoria_id` | Integer | ID of the category. |
> | `categoria_nome` | String | Name of the category. |
> | `marca_id` | Integer | ID of the brand. |
> | `marca_nome` | String | Name of the brand. |
> | `ativo_ecommerce` | String | E-commerce active. |
> | `valor` | Number | Amount. |
> | `saldo_estoque` | Number | Stock balance. |
> | `saldo_estoque_disponivel_atual` | Number | Current available stock balance. |
> | `peso_bruto` | Number | Gross weight. |
> | `peso_liquido` | Number | Net weight. |

> [accordion] Product groups
>
> Stock groups.
>
> Table: `product_groups` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Grupos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `familia_id` | Integer | ID of the family. |
> | `familia_nome` | String | Name of the family. |
> | `lucro_estimado` | Number | Estimated profit. |
> | `lucro_estimado_minimo` | Number | Minimum estimated profit. |
> | `percentual_desconto_maximo` | Number | Maximum discount percentage. |
> | `participa_inventario` | Boolean | Participates inventory. |
> | `atualiza_cmv` | Boolean | Updates COGS. |
> | `obriga_atualizar_cmv` | Boolean | Requires update COGS. |
> | `mobile` | Boolean | Mobile. |
> | `observacao` | String | Free-text notes. |

> [accordion] Product families
>
> Product families.
>
> Table: `product_families` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Famílias
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `codigo_inteligente` | String | Smart code. |
> | `observacao` | String | Free-text notes. |

> [accordion] Brands
>
> Brands.
>
> Table: `brands` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Marcas
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `exibe_os` | Boolean | Shows service order. |
> | `exibe_pedido` | Boolean | Shows order. |
> | `propria` | Boolean | Own. |
> | `observacoes` | String | Free-text notes. |

> [accordion] Product categories
>
> Product categories.
>
> Table: `product_categories` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Categorias
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `categoria_pai_id` | Integer | ID of the parent category. |
> | `categoria_pai_nome` | String | Name of the parent category. |
> | `observacoes` | String | Free-text notes. |

> [accordion] Units
>
> Units of measure.
>
> Table: `units` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Unidades
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `abreviatura` | String | Abbreviation. |
> | `fator_conversao` | Number | Conversion factor. |
> | `observacao` | String | Free-text notes. |

> [accordion] Stock locations
>
> Stock locations.
>
> Table: `stock_locations` · Primary key: `id` · Sync: Full table · M8 area: Estoque > Locais de estoque
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `tipo_destino` | String | Destination type. |
> | `tipo_estocagem` | String | Storage type. |
> | `finalidade_estoque` | String | Stock purpose. |
> | `tipo_estoque_sped` | String | SPED stock type. |
> | `classificacao` | String | Classification. |
> | `nome` | String | Name of the record. |
> | `produto_estoque_destino_pai_id` | Integer | ID of the parent destination stock product. |
> | `produto_estoque_destino_pai_nome` | String | Name of the parent destination stock product. |
> | `proprietario_possuidor_id` | Integer | ID of the holder owner. |
> | `proprietario_possuidor_nome` | String | Name of the holder owner. |
> | `classe_diametral_id` | Integer | ID of the diametric class. |
> | `classe_diametral_nome` | String | Name of the diametric class. |
> | `fazenda_id` | Integer | ID of the farm. |
> | `fazenda_nome` | String | Name of the farm. |
> | `classificacao_madeira` | String | Wood classification. |
> | `data_fabricacao` | Datetime | Manufacturing date. |
> | `data_validade` | Datetime | Expiry date. |
> | `saldo` | Number | Open balance. |
> | `bloquear_venda` | Boolean | Block sale. |
> | `avariado` | Boolean | Damaged. |
> | `gerar_rastreabilidade` | Boolean | Generate traceability. |
> | `consulta_estoque_api` | Boolean | API stock query. |
> | `codigo_armazem` | String | Warehouse code. |
> | `enviar_marketplace` | Boolean | Send marketplace. |
> | `estabelecimento_marketplace_id` | Integer | ID of the marketplace establishment. |
> | `estabelecimento_marketplace_razao_social` | String | Name legal marketplace establishment. |
> | `codigo_lote_marketplace` | String | Marketplace batch code. |
> | `codigo_importacao` | String | Import code. |
> | `observacoes` | String | Free-text notes. |
> | `observacoes_item` | String | Item notes. |
> | `ativo` | Boolean | Whether the record is active. |

### Service orders

> [accordion] 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `cliente_id` | Integer | ID of the customer. |
> | `data_abertura` | Datetime | Opening date. |
> | `data_entrega_prevista` | Datetime | Expected delivery date. |
> | `data_entrega` | Datetime | Delivery date. |
> | `emissao` | Datetime | Issue date of the document. |
> | `data_lancamento` | Datetime | Posting date. |
> | `data_faturamento` | Datetime | Billing date. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `data_garantia` | Datetime | Warranty date. |
> | `tipo_id` | Integer | ID of the type. |
> | `tipo_nome` | String | Name of the type. |
> | `contato` | String | Contact. |
> | `funcionario_id` | Integer | ID of the employee. |
> | `funcionario_nome` | String | Name of the employee. |
> | `revenda_contrato_id` | Integer | ID of the contract resale. |
> | `revenda_contrato_nome` | String | Name of the contract resale. |
> | `endereco_entrega_id` | Integer | ID of the delivery address. |
> | `endereco_entrega_nome` | String | Name of the delivery address. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `cliente_nome` | String | Name of the customer. |
> | `cliente_razao_social` | String | Name legal customer. |
> | `cliente_cpf_cnpj` | String | CNPJ CPF customer. |
> | `responsavel_tecnico_id` | Integer | ID of the technician responsible. |
> | `responsavel_tecnico_nome` | String | Name of the technician responsible. |
> | `numero_sequencia` | Integer | Sequence number. |
> | `situacao_id` | Integer | ID of the situation. |
> | `situacao_nome` | String | Name of the situation. |
> | `status_lancamento_nome` | String | Name of the posting status. |
> | `status_lancamento_id` | Integer | ID of the posting status. |
> | `status` | String | Status of the record. |
> | `status_aprovacao` | String | Approval status. |
> | `tipo_atendimento_id` | Integer | ID of the service type. |
> | `tipo_atendimento_nome` | String | Name of the service type. |
> | `modalidade_atendimento_id` | Integer | ID of the service modality. |
> | `modalidade_atendimento_nome` | String | Name of the service modality. |
> | `defeitos_apontados` | String | Reported defects. |
> | `modelo_veiculo` | String | Vehicle model. |
> | `placa_veiculo` | String | Vehicle license plate. |
> | `serie` | String | Series. |
> | `numero_serie` | String | Series number. |
> | `equipamento` | String | Equipment. |
> | `produto_equipamento_id` | Integer | ID of the equipment product. |
> | `modelo_equipamento` | String | Equipment model. |
> | `documento_equipamento` | String | Equipment document. |
> | `tipo_documento_fiscal` | Integer | Fiscal document type. |
> | `documento_fiscal_id` | Integer | ID of the fiscal document. |
> | `documento_compra_id` | Integer | ID of the purchase document. |
> | `documento_compra_doc` | Integer | Document purchase document. |
> | `imposto` | String | Tax. |
> | `origem_dados` | String | Data origin. |
> | `projeto_id` | Integer | ID of the project. |
> | `projeto_nome` | String | Name of the project. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `total_geral` | Number | Grand total of the document. |
> | `ativo` | Boolean | Whether the record is active. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |
> | `observacao` | String | Free-text notes. |
> | `apontamentos` | String (JSON) | Time entries. |
> | `checklist_respostas` | String (JSON) | Answers checklist. |
> | `anexos` | String (JSON) | Attachments. |
> | `equipamento_produto` | String (JSON) | Product equipment. |
> | `manutencao` | String (JSON) | Maintenance. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Service order products
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `ordem_servico_id` | Integer | ID of the service order. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `tipo_contrato` | Integer | Contract type. |
> | `referencia_fabricante` | String | Manufacturer reference. |
> | `multiplo_venda` | Number | Sale multiple. |
> | `codigo_similaridade` | String | Similarity code. |
> | `descricao_detalhada_nfe` | String | NF-e detailed description. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `valor_total` | Number | Total amount of the line. |
> | `situacao_item_id` | Integer | ID of the item situation. |
> | `situacao_item_nome` | String | Name of the item situation. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `peso_liquido` | Number | Net weight. |
> | `volume_nome` | String | Name of the volume. |
> | `observacao_interna` | String | Internal notes. |
> | `observacao` | String | Free-text notes. |
> | `saldo` | Number | Open balance. |
> | `faturado` | Number | Invoiced. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `tributacao_operacao_fiscal_id` | Integer | ID of the fiscal operation taxation. |
> | `cst` | String | CST tax situation code. |
> | `quantidade_conversao` | Number | Conversion quantity. |
> | `valor_unitario_conversao` | Number | Conversion unit value. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_desconto_rateio` | Number | Apportionment discount value. |
> | `fator_conversao` | Number | Conversion factor. |
> | `valor_total_conversao` | Number | Total conversion value. |
> | `unidade_conversao_id` | Integer | ID of the conversion unit. |
> | `unidade_conversao_nome` | String | Name of the conversion unit. |
> | `base_calculo_icms_diferencial` | Number | Differential ICMS calculation base. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `percentual_reducao_icms` | Number | ICMS reduction percentage. |
> | `aliquota_mva` | Number | MVA rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `aliquota_funrural` | Number | FUNRURAL rate. |
> | `aliquota_icms_diferencial` | Number | Differential ICMS rate. |
> | `valor_icms` | Number | ICMS value. |
> | `valor_icms_st` | Number | ST ICMS value. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `valor_ipi` | Number | IPI value. |
> | `valor_icms_diferencial` | Number | Differential ICMS value. |
> | `aprovado` | String | Approved. |
> | `codigo_pedido` | String | Order code. |
> | `numero_item_pedido` | Integer | Order item number. |
> | `prazo_entrega` | Datetime | Delivery term. |
> | `percentual_comissao_tabela_preco` | Number | Price table commission percentage. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `ordem_servico_data_atualizacao` | Datetime | Last update of the service order, used as the incremental replication key. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Service order services
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `ordem_servico_id` | Integer | ID of the service order. |
> | `servico_id` | Integer | ID of the service. |
> | `servico_nome` | String | Name of the service. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Total amount of the line. |
> | `observacao_interna` | String | Internal notes. |
> | `observacao` | String | Free-text notes. |
> | `descricao_detalhada_nfe` | String | NF-e detailed description. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `situacao_item_id` | Integer | ID of the item situation. |
> | `responsavel_tecnico_id` | Integer | ID of the technician responsible. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `ordem_servico_data_atualizacao` | Datetime | Last update of the service order, used as the incremental replication key. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Service order types
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `outros_documentos_operacao_id` | Integer | ID of the operation documents other. |
> | `outros_documentos_operacao_nome` | String | Name of the operation documents other. |
> | `status_lancamento_id` | Integer | ID of the posting status. |
> | `status_lancamento_nome` | String | Name of the posting status. |
> | `sla_id` | Integer | ID of the SLA. |
> | `sla_nome` | String | Name of the SLA. |
> | `checklist_id` | Integer | ID of the checklist. |
> | `checklist_nome` | String | Name of the checklist. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `despesa_id` | Integer | ID of the expense. |
> | `despesa_nome` | String | Name of the expense. |
> | `tipo_pedido_cadastro_id` | Integer | ID of the registration order type. |
> | `tipo_pedido_cadastro_nome` | String | Name of the registration order type. |
> | `indicador_presenca_comprador` | String | Buyer presence indicator. |
> | `indicador_intermediador` | String | Intermediary indicator. |
> | `cpf_cnpj_intermediador` | String | Intermediary CNPJ CPF. |
> | `nome_intermediador` | String | Intermediary name. |
> | `metodo_faturamento` | String | Billing method. |
> | `metodo_fechamento` | String | Closing method. |
> | `tipo_valor_unitario` | String | Unit value type. |
> | `habilita_manutencao` | String | Enables maintenance. |
> | `habilita_itens` | String | Enables items. |
> | `habilita_servicos` | String | Enables services. |
> | `habilita_apontamento_horas` | String | Enables hours time entry. |
> | `habilita_parcelas` | String | Enables installments. |
> | `habilita_equipamentos` | String | Enables equipment. |
> | `habilita_item_consumidos` | String | Enables consumed item. |
> | `habilita_anexo` | String | Enables attachment. |
> | `habilita_troca_permuta` | String | Enables barter change. |
> | `habilita_edicao_status` | String | Enables status edit. |
> | `habilita_transporte` | String | Enables transport. |
> | `habilita_aprovacao` | String | Enables approval. |
> | `habilita_cotacao_compra` | String | Enables purchase quotation. |
> | `itens_aprovados` | String | Approved items. |
> | `servicos_aprovados` | String | Approved services. |
> | `validar_contrato` | String | Validate contract. |
> | `situacao_obrigatoria` | String | Required situation. |
> | `km_atual_obrigatorio` | String | Required current km. |
> | `responsavel_tecnico_obrigatorio` | String | Required technician responsible. |
> | `permitir_simples_fatura` | String | Allow invoice simple. |
> | `permitir_faturar_nf` | String | Allow invoice to invoice. |
> | `permitir_liberar_pdv` | String | Allow release POS. |
> | `notificar_encerramento_os` | String | Notify service order closing. |
> | `bloquear_fatura_apontamento_hora` | String | Block hour time entry invoice. |
> | `alterar_cliente` | String | Change customer. |
> | `obrigatorio_informar_projeto` | String | Project inform required. |
> | `buscar_equipamento_por_cliente` | Boolean | Fetch customer per equipment. |
> | `informar_custo` | Boolean | Inform cost. |
> | `considerar_custo_total` | Boolean | Consider total cost. |
> | `validar_desconto_digitacao_item` | Boolean | Validate item typing discount. |
> | `validar_valor_minimo` | String | Validate minimum value. |
> | `usar_operacao_fiscal_tipo_documento` | Boolean | Use document type fiscal operation. |
> | `validar_total` | Boolean | Validate total. |
> | `solicitar_motivo_cancelamento` | Boolean | Request cancellation reason. |
> | `solicitar_motivo_retroceder` | Boolean | Request go back reason. |
> | `separar_servico_lc_116` | Boolean | Separate 116 LC service. |
> | `endereco_entrega_obrigatorio` | Boolean | Required delivery address. |
> | `atualizar_valor_preco` | Boolean | Update price value. |
> | `segundos_ociosidade` | Integer | Idleness seconds. |
> | `usar_comanda` | Boolean | Use order slip. |
> | `ativo` | Boolean | Whether the record is active. |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `data_cadastro` | Datetime | Date and time the record was registered in M8. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |

> [accordion] Service order statuses
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |

> [accordion] Billing service orders
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_sequencia` | Integer | Sequence number. |
> | `tipo_id` | Integer | ID of the type. |
> | `tipo_nome` | String | Name of the type. |
> | `veiculo_manutencao_id` | Integer | ID of the maintenance vehicle. |
> | `empresa_nome` | String | Name of the company. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `cliente_razao_social` | String | Name legal customer. |
> | `emissao` | Datetime | Issue date of the document. |
> | `data_entrega` | Datetime | Delivery date. |
> | `situacao_id` | Integer | ID of the situation. |
> | `situacao_nome` | String | Name of the situation. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `municipio_prestacao_id` | Integer | ID of the provision city. |
> | `municipio_prestacao_nome` | String | Name of the provision city. |
> | `funcionario_id` | Integer | ID of the employee. |
> | `funcionario_nome` | String | Name of the employee. |
> | `responsavel_tecnico_id` | Integer | ID of the technician responsible. |
> | `frete_id` | Integer | ID of the freight. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `observacao` | String | Free-text notes. |
> | `total_geral` | Number | Grand total of the document. |
> | `status` | String | Status of the record. |
> | `status_texto` | String | Text status. |
> | `status_lancamento_nome` | String | Name of the posting status. |
> | `placa_veiculo` | String | Vehicle license plate. |
> | `modelo_veiculo` | String | Vehicle model. |
> | `serie` | String | Series. |
> | `equipamento` | String | Equipment. |
> | `documento_equipamento` | String | Equipment document. |
> | `usuario_atualizacao` | String | Update user. |
> | `documento_fiscal_id` | Integer | ID of the fiscal document. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

### Sales

> [accordion] Sales invoices
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `pessoa_id` | Integer | ID of the person. |
> | `pessoa_cnpj` | String | CNPJ person. |
> | `pessoa_nome` | String | Name of the person. |
> | `pessoa_razao_social` | String | Name legal person. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `empresa_fantasia` | String | Trade name company. |
> | `emissao` | Datetime | Issue date of the document. |
> | `serie_documento_id` | Integer | ID of the document series. |
> | `serie_documento_nome` | String | Name of the document series. |
> | `status` | String | Status of the record. |
> | `documento` | Integer | Document number. |
> | `chave_nfe` | String | NF-e access key. |
> | `documento_nfe` | String | NF-e document. |
> | `descricao_status_nfe` | String | NF-e status description. |
> | `documento_nfp` | Integer | NFP document. |
> | `status_nfe` | String | NF-e status. |
> | `tipo_documento` | String | Document type. |
> | `outros_documentos_operacao_id` | Integer | ID of the operation documents other. |
> | `total_geral` | Number | Grand total of the document. |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `outros_documentos_operacao_nome` | String | Name of the operation documents other. |
> | `montagem_carga_nome` | String | Name of the load assembly. |
> | `observacao` | String | Free-text notes. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `grupo_economico_id` | Integer | ID of the economic group. |
> | `grupo_economico_nome` | String | Name of the economic group. |
> | `projeto_execucao_numero_proposta` | String | Proposal number execution project. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `usuario_cadastrou_id` | Integer | ID of the registered user. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Sales invoice products
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `origem_produto` | String | Product origin. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `tabela_contabil_item_id` | Integer | ID of the item accounting table. |
> | `cfop_nome` | String | Name of the CFOP. |
> | `cst` | String | CST tax situation code. |
> | `codigo_beneficio_fiscal` | String | Fiscal benefit code. |
> | `codigo_beneficio_fiscal_rbc` | String | RBC fiscal benefit code. |
> | `codigo_beneficio_fiscal_presumido` | String | Presumed fiscal benefit code. |
> | `ipi_cst` | String | CST IPI. |
> | `cofins_cst` | String | CST COFINS. |
> | `pis_cst` | String | CST PIS. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `data_validade` | Datetime | Expiry date. |
> | `data_fabricacao` | Datetime | Manufacturing date. |
> | `considerar_ressuprimento_operacao_fiscal` | Boolean | Consider fiscal operation resupply. |
> | `considerar_ressuprimento_string` | String | Consider text resupply. |
> | `considerar_ressuprimento` | Boolean | Consider resupply. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `percentual_reducao_icms` | Number | ICMS reduction percentage. |
> | `percentual_reducao_icms_st` | Number | ST ICMS reduction percentage. |
> | `base_calculo_icms` | Number | ICMS calculation base. |
> | `base_calculo_icms_st` | Number | ST ICMS calculation base. |
> | `base_calculo_ipi` | Number | IPI calculation base. |
> | `base_calculo_cofins` | Number | COFINS calculation base. |
> | `base_calculo_pis` | Number | PIS calculation base. |
> | `base_calculo_funrural` | Number | FUNRURAL calculation base. |
> | `base_calculo_ii` | Number | Import tax (II) calculation base. |
> | `base_calculo_icms_diferencial` | Number | Differential ICMS calculation base. |
> | `aliquota_mva` | Number | MVA rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `aliquota_ii` | Number | Import tax (II) rate. |
> | `aliquota_funrural` | Number | FUNRURAL rate. |
> | `aliquota_icms_diferencial` | Number | Differential ICMS rate. |
> | `aliquota_icms_diferencial_destino` | Number | Destination differential ICMS rate. |
> | `aliquota_icms_diferencial_remetente` | Number | Sender differential ICMS rate. |
> | `valor_fundo_combate_pobreza` | Number | Poverty combat fund value. |
> | `valor_fundo_combate_pobreza_st` | Number | ST poverty combat fund value. |
> | `base_calculo_fundo_combate_pobreza` | Number | Poverty combat fund calculation base. |
> | `base_calculo_fundo_combate_pobreza_st` | Number | ST poverty combat fund calculation base. |
> | `aliquota_fundo_combate_pobreza` | Number | Poverty combat fund rate. |
> | `valor_icms` | Number | ICMS value. |
> | `valor_isentas_icms` | Number | ICMS exempt value. |
> | `valor_outras_icms` | Number | ICMS other value. |
> | `valor_icms_st` | Number | ST ICMS value. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `valor_ipi` | Number | IPI value. |
> | `valor_ii` | Number | Import tax (II) value. |
> | `valor_funrural` | Number | FUNRURAL value. |
> | `valor_icms_diferencial` | Number | Differential ICMS value. |
> | `valor_icms_desoneracao` | Number | Exemption ICMS value. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Total amount of the line. |
> | `valor_custo_medio` | Number | Average cost value. |
> | `observacao` | String | Free-text notes. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `apelido` | String | Nickname or short name. |
> | `codigo_interno` | String | Internal code. |
> | `tributacao_operacao_fiscal_id` | Integer | ID of the fiscal operation taxation. |
> | `base_calculo_icms_desoneracao` | Number | Exemption ICMS calculation base. |
> | `aliquota_icms_desoneracao` | Number | Exemption ICMS rate. |
> | `base_calculo_icms_ttd` | Number | TTD ICMS calculation base. |
> | `aliquota_icms_ttd` | Number | TTD ICMS rate. |
> | `valor_icms_ttd` | Number | TTD ICMS value. |
> | `codigo_barras` | String | Barcode code. |
> | `receita_bruta_presumida` | String | Presumed gross revenue. |
> | `percentual_csll_presumido` | String | Presumed CSLL percentage. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `documento_fiscal_id` | Integer | ID of the sales invoices document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Sales invoice services
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `cfop_nome` | String | Name of the CFOP. |
> | `cst` | String | CST tax situation code. |
> | `aliquota_iss` | Number | ISS rate. |
> | `aliquota_inss` | Number | INSS rate. |
> | `aliquota_csll` | Number | CSLL rate. |
> | `aliquota_irrf` | Number | IRRF rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `valor_iss` | Number | ISS value. |
> | `valor_inss` | Number | INSS value. |
> | `valor_csll` | Number | CSLL value. |
> | `valor_irrf` | Number | IRRF value. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `base_calculo_iss` | Number | ISS calculation base. |
> | `base_calculo_inss` | Number | INSS calculation base. |
> | `base_calculo_csll` | Number | CSLL calculation base. |
> | `base_calculo_irrf` | Number | IRRF calculation base. |
> | `base_calculo_pis` | Number | PIS calculation base. |
> | `base_calculo_cofins` | Number | COFINS calculation base. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Total amount of the line. |
> | `observacao` | String | Free-text notes. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `apelido` | String | Nickname or short name. |
> | `descricao_detalhada` | String | Detailed description. |
> | `receita_bruta_presumida` | String | Presumed gross revenue. |
> | `percentual_csll_presumido` | String | Presumed CSLL percentage. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `documento_fiscal_id` | Integer | ID of the sales invoices document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Sales orders
>
> Sales orders (pedidos) issued since the Start Date.
>
> Table: `sales_orders` · Primary key: `id` · Sync: Full table · M8 area: Faturamento > Pedidos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `status` | String | Status of the record. |
> | `status_nome` | String | Name of the status. |
> | `status_aprovacao` | String | Approval status. |
> | `status_aprovacao_nome` | String | Name of the approval status. |
> | `status_lancamento_id` | Integer | ID of the posting status. |
> | `status_lancamento_nome` | String | Name of the posting status. |
> | `data_emissao` | Datetime | Issue date of the document. |
> | `tipo_id` | Integer | ID of the type. |
> | `tipo_nome` | String | Name of the type. |
> | `contato` | String | Contact. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `cliente_endereco` | String | Address customer. |
> | `data_faturamento` | Datetime | Billing date. |
> | `data_lancamento` | Datetime | Posting date. |
> | `data_entrega` | Datetime | Delivery date. |
> | `codigo_pedido` | String | Order code. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `destinatario_id` | Integer | ID of the recipient. |
> | `destinatario_nome` | String | Name of the recipient. |
> | `indicador_venda_id` | Integer | ID of the sale indicator. |
> | `indicador_venda_nome` | String | Name of the sale indicator. |
> | `imovel_rural_id` | Integer | ID of the rural property. |
> | `imovel_rural_nome` | String | Name of the rural property. |
> | `veiculo_placa` | String | License plate vehicle. |
> | `veiculo` | String | Vehicle. |
> | `transportador_id` | Integer | ID of the carrier. |
> | `transportador_nome` | String | Name of the carrier. |
> | `documento_fiscal_id` | Integer | ID of the fiscal document. |
> | `documento_fiscal_doc` | Integer | Document fiscal document. |
> | `codigo_market_place` | String | Place market code. |
> | `desconto_marketplace` | Number | Marketplace discount. |
> | `valor_desconto_marketplace` | Number | Marketplace discount value. |
> | `comissao_bruta_marketplace` | Number | Marketplace gross commission. |
> | `comissao_liquida_marketplace` | Number | Marketplace net commission. |
> | `acrescimo_marketplace` | Number | Marketplace surcharge. |
> | `valor_acrescimo_marketplace` | Number | Marketplace surcharge value. |
> | `frete_marketplace` | Number | Marketplace freight. |
> | `valor_frete_marketplace` | Number | Marketplace freight value. |
> | `situacao_id` | Integer | ID of the situation. |
> | `situacao_nome` | String | Name of the situation. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `total_geral` | Number | Grand total of the document. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_frete` | Number | Freight value. |
> | `observacao` | String | Free-text notes. |
> | `observacao_interna` | String | Internal notes. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Sales order products
>
> Product lines of each sales order.
>
> Table: `sales_order_products` · Primary key: `pedido_id`, `id` · Sync: Incremental · M8 area: Faturamento > Pedidos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `pedido_id` | Integer | ID of the order. |
> | `data_entrega` | Datetime | Delivery date. |
> | `data_entrega_prevista` | Datetime | Expected delivery date. |
> | `data_fabricacao` | Datetime | Manufacturing date. |
> | `data_validade` | Datetime | Expiry date. |
> | `tabela_preco_item_id` | Integer | ID of the item price table. |
> | `tabela_preco_pedido_id` | Integer | ID of the order price table. |
> | `numero_item` | Integer | Line number within the document. |
> | `produto_coluna_id` | Integer | ID of the column product. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `codigo_similaridade` | String | Similarity code. |
> | `codigo_referencia_fabricante` | String | Manufacturer reference code. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `tributacao_operacao_fiscal_id` | Integer | ID of the fiscal operation taxation. |
> | `tributacao_operacao_fiscal_grupo_id` | Integer | ID of the group fiscal operation taxation. |
> | `classificacao_id` | Integer | ID of the classification. |
> | `classificacao_nome` | String | Name of the classification. |
> | `contrato_fornecedor_id` | Integer | ID of the supplier contract. |
> | `contrato_fornecedor_nome` | String | Name of the supplier contract. |
> | `grupo_classe_diametral_id` | Integer | ID of the diametric class group. |
> | `grupo_classe_diametral_nome` | String | Name of the diametric class group. |
> | `classe_diametral_id` | Integer | ID of the diametric class. |
> | `classe_diametral_nome` | String | Name of the diametric class. |
> | `quantidade` | Number | Quantity. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Total amount of the line. |
> | `tipo_garantia_id` | Integer | ID of the warranty type. |
> | `tipo_garantia_nome` | String | Name of the warranty type. |
> | `sortimento` | Number | Assortment. |
> | `peso_liquido` | Number | Net weight. |
> | `volume_nome` | String | Name of the volume. |
> | `observacao` | String | Free-text notes. |
> | `saldo` | Number | Open balance. |
> | `faturado` | Number | Invoiced. |
> | `quantidade_conversao` | Number | Conversion quantity. |
> | `valor_unitario_conversao` | Number | Conversion unit value. |
> | `base_calculo_icms_diferencial` | Number | Differential ICMS calculation base. |
> | `aliquota_icms_diferencial` | Number | Differential ICMS rate. |
> | `valor_icms_diferencial` | Number | Differential ICMS value. |
> | `contrato_id` | Integer | ID of the contract. |
> | `projeto_id` | Integer | ID of the project. |
> | `projeto_item_id` | Integer | ID of the item project. |
> | `codigo_produto_cliente` | String | Customer product code. |
> | `codigo_barras` | String | Barcode code. |
> | `produto_apelido` | String | Nickname product. |
> | `apelido` | String | Nickname or short name. |
> | `grupo_estoque` | String | Stock group. |
> | `localizacao` | String | Location. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `descricao_detalhada` | String | Detailed description. |
> | `cfop` | String | CFOP fiscal operation code. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `cst` | String | CST tax situation code. |
> | `valor_revenda` | Number | Resale value. |
> | `base_comissao_revenda` | Number | Resale commission base. |
> | `valor_comissao_representante` | Number | Representative commission value. |
> | `margem_revenda` | Number | Resale margin. |
> | `fornecedor_cotado_id` | Integer | ID of the quoted supplier. |
> | `fornecedor_cotado_nome` | String | Name of the quoted supplier. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `aliquota_fundo_combate_pobreza` | Number | Poverty combat fund rate. |
> | `valor_fundo_combate_pobreza` | Number | Poverty combat fund value. |
> | `base_calculo_fundo_combate_pobreza` | Number | Poverty combat fund calculation base. |
> | `valor_fundo_combate_pobreza_st` | Number | ST poverty combat fund value. |
> | `base_calculo_fundo_combate_pobreza_st` | Number | ST poverty combat fund calculation base. |
> | `valor_comissao_calculado` | Number | Calculated commission value. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_cotado_total` | Number | Total quoted value. |
> | `valor_total_conversao` | Number | Total conversion value. |
> | `unidade_conversao_id` | Integer | ID of the conversion unit. |
> | `unidade_conversao_nome` | String | Name of the conversion unit. |
> | `cliente_id` | Integer | ID of the customer. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `percentual_reducao_icms` | Number | ICMS reduction percentage. |
> | `aliquota_mva` | Number | MVA rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `aliquota_funrural` | Number | FUNRURAL rate. |
> | `valor_icms` | Number | ICMS value. |
> | `valor_icms_st` | Number | ST ICMS value. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `valor_ipi` | Number | IPI value. |
> | `aliquota_icms_ttd` | Number | TTD ICMS rate. |
> | `base_calculo_icms_ttd` | Number | TTD ICMS calculation base. |
> | `valor_icms_ttd` | Number | TTD ICMS value. |
> | `valor_subsidio_marketing` | Number | Marketing subsidy value. |
> | `codigo_pedido` | String | Order code. |
> | `numero_item_pedido` | Integer | Order item number. |
> | `quantidade_prevista` | Number | Expected quantity. |
> | `quantidade_volumes` | Integer | Volumes quantity. |
> | `valor_margem_contribuicao` | Number | Contribution margin value. |
> | `valor_custo_medio_atual` | Number | Current average cost value. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Sales order services
>
> Service lines of each sales order.
>
> Table: `sales_order_services` · Primary key: `pedido_id`, `id` · Sync: Incremental · M8 area: Faturamento > Pedidos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `pedido_id` | Integer | ID of the order. |
> | `data_entrega` | Datetime | Delivery date. |
> | `numero_item` | Integer | Line number within the document. |
> | `produto_coluna_id` | Integer | ID of the column product. |
> | `servico_id` | Integer | ID of the service. |
> | `servico_nome` | String | Name of the service. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `apelido` | String | Nickname or short name. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Total amount of the line. |
> | `aliquota_iss` | Number | ISS rate. |
> | `valor_iss` | Number | ISS value. |
> | `base_calculo_iss` | Number | ISS calculation base. |
> | `peso_liquido` | Number | Net weight. |
> | `volume_nome` | String | Name of the volume. |
> | `observacao` | String | Free-text notes. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `cst` | String | CST tax situation code. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_revenda` | Number | Resale value. |
> | `base_comissao_revenda` | Number | Resale commission base. |
> | `valor_comissao_representante` | Number | Representative commission value. |
> | `margem_revenda` | Number | Resale margin. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Sales order installments
>
> Installments of each sales order.
>
> Table: `sales_order_installments` · Primary key: `pedido_id`, `id` · Sync: Incremental · M8 area: Faturamento > Pedidos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `data_vencimento` | Datetime | Due date date. |
> | `valor` | Number | Amount. |
> | `observacao` | String | Free-text notes. |
> | `autenticacao` | String | Authentication. |
> | `autorizacao_cartao` | String | Card authorization. |
> | `nsu` | String | NSU. |
> | `pedido_id` | Integer | ID of the sales orders document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Quotes
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `indicador_presenca_comprador` | String | Buyer presence indicator. |
> | `status` | String | Status of the record. |
> | `tipo_id` | Integer | ID of the type. |
> | `tipo_nome` | String | Name of the type. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `tabela_preco_id` | Integer | ID of the price table. |
> | `tabela_preco_nome` | String | Name of the price table. |
> | `contato_pessoa_id` | Integer | ID of the person contact. |
> | `contato_digitado` | String | Typed contact. |
> | `contrato_id` | Integer | ID of the contract. |
> | `contrato_nome` | String | Name of the contract. |
> | `funcionario_id` | Integer | ID of the employee. |
> | `funcionario_nome` | String | Name of the employee. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `boleto_convenio_id` | Integer | ID of the agreement bank slip. |
> | `municipio_prestacao_id` | Integer | ID of the provision city. |
> | `orcamento_ped_compra` | String | Purchase order quote. |
> | `orcamento_ped_compra_item` | String | Item purchase order quote. |
> | `emissao` | Datetime | Issue date of the document. |
> | `data_entrega` | Datetime | Delivery date. |
> | `data_lancamento` | Datetime | Posting date. |
> | `data_validade` | Datetime | Expiry date. |
> | `data_faturamento` | Datetime | Billing date. |
> | `frete_id` | Integer | ID of the freight. |
> | `frete_nome` | String | Name of the freight. |
> | `valor_frete` | Number | Freight value. |
> | `portador_id` | Integer | ID of the collection agent. |
> | `portador_nome` | String | Name of the collection agent. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_acrescimo` | Number | Surcharge value. |
> | `grupo_economico_id` | Integer | ID of the economic group. |
> | `grupo_economico_nome` | String | Name of the economic group. |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `casas_decimais_quantidade` | Integer | Quantity decimal places. |
> | `casas_decimais_unitario` | Integer | Unit decimal places. |
> | `total_orcamento` | Number | Quote total. |
> | `total_geral` | Number | Grand total of the document. |
> | `total_faturado` | Number | Invoiced total. |
> | `total_faturar` | Number | To invoice total. |
> | `placa_veiculo` | String | Vehicle license plate. |
> | `modelo_veiculo` | String | Vehicle model. |
> | `serie` | String | Series. |
> | `total_orcamento_sem_desconto` | Number | Discount without quote total. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `pedido_rapido_id` | Integer | ID of the quick order. |
> | `documento_fiscal_id` | Integer | ID of the fiscal document. |
> | `tipo_documento_fiscal` | Integer | Fiscal document type. |
> | `documento_fiscal_doc` | String | Document fiscal document. |
> | `classificacao_obrigatoria` | Boolean | Required classification. |
> | `contrato_obrigatorio` | Boolean | Required contract. |
> | `utiliza_grade_comissao` | Boolean | Uses commission grid. |
> | `alterar_cliente` | Boolean | Change customer. |
> | `atualizou_valor_preco` | Boolean | Updated price value. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `boleto_convenio_nome` | String | Name of the agreement bank slip. |
> | `municipio_prestacao_nome` | String | Name of the provision city. |
> | `contato` | String | Contact. |
> | `observacao` | String | Free-text notes. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Quote products
>
> Product lines of each quote.
>
> Table: `quote_products` · Primary key: `orcamento_id`, `id` · Sync: Incremental · M8 area: Faturamento > Orçamentos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `promocao` | Integer | Promotion. |
> | `item_aprovado` | Boolean | Approved item. |
> | `origem_produto` | String | Product origin. |
> | `tabela_preco_item_id` | Integer | ID of the item price table. |
> | `tem_preco_venda_conversao` | String | Has conversion sale price. |
> | `multiplo_venda` | Number | Sale multiple. |
> | `percentual_acrescimo_classificacao` | Number | Classification surcharge percentage. |
> | `valor_unitario_calcular_margem` | Number | Margin calculate unit value. |
> | `campo_dependencia_produto` | String | Product dependency field. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_coluna_id` | Integer | ID of the column product. |
> | `codigo_similaridade` | String | Similarity code. |
> | `produto_nome` | String | Name of the product. |
> | `descricao_livre` | String | Free description. |
> | `referencia_fabricante` | String | Manufacturer reference. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `classificacao_id` | Integer | ID of the classification. |
> | `classificacao_nome` | String | Name of the classification. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `tributacao_operacao_fiscal_id` | Integer | ID of the fiscal operation taxation. |
> | `cst` | String | CST tax situation code. |
> | `base_calculo_icms` | Number | ICMS calculation base. |
> | `valor_icms` | Number | ICMS value. |
> | `base_calculo_icms_st` | Number | ST ICMS calculation base. |
> | `valor_icms_st` | Number | ST ICMS value. |
> | `base_calculo_fundo_combate_pobreza` | Number | Poverty combat fund calculation base. |
> | `valor_fundo_combate_pobreza` | Number | Poverty combat fund value. |
> | `base_calculo_fundo_combate_pobreza_st` | Number | ST poverty combat fund calculation base. |
> | `valor_fundo_combate_pobreza_st` | Number | ST poverty combat fund value. |
> | `base_calculo_ipi` | Number | IPI calculation base. |
> | `valor_ipi` | Number | IPI value. |
> | `base_calculo_icms_diferencial` | Number | Differential ICMS calculation base. |
> | `valor_icms_diferencial` | Number | Differential ICMS value. |
> | `aliquota_icms_ttd` | Number | TTD ICMS rate. |
> | `base_calculo_icms_ttd` | Number | TTD ICMS calculation base. |
> | `valor_icms_ttd` | Number | TTD ICMS value. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `valor_comissao_calculado` | Number | Calculated commission value. |
> | `calculo_regra_valor_unitario` | String | Unit value rule calculation. |
> | `despesas_fixas_markup_item` | Number | Item markup fixed expenses. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_desconto_rateio` | Number | Apportionment discount value. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `valor_total` | Number | Total amount of the line. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `valor_margem_contribuicao` | Number | Contribution margin value. |
> | `valor_custo_medio_atual` | Number | Current average cost value. |
> | `valor_unitario_ultimo_pedido` | String | Order last unit value. |
> | `data_ultimo_pedido` | String | Last order date. |
> | `valor_unitario_conversao` | Number | Conversion unit value. |
> | `quantidade_conversao` | Number | Conversion quantity. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `valor_desconto` | Number | Discount value. |
> | `fator_conversao` | Number | Conversion factor. |
> | `observacao` | String | Free-text notes. |
> | `motivo_desaprovacao` | String | Disapproval reason. |
> | `valor_total_conversao` | Number | Total conversion value. |
> | `unidade_conversao_id` | Integer | ID of the conversion unit. |
> | `unidade_conversao_nome` | String | Name of the conversion unit. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `data_fabricacao` | Datetime | Manufacturing date. |
> | `data_validade` | Datetime | Expiry date. |
> | `cliente_id` | Integer | ID of the customer. |
> | `contrato_id` | Integer | ID of the contract. |
> | `contrato_nome` | String | Name of the contract. |
> | `grupo_classe_diametral_id` | Integer | ID of the diametric class group. |
> | `grupo_classe_diametral_nome` | String | Name of the diametric class group. |
> | `classe_diametral_id` | Integer | ID of the diametric class. |
> | `classe_diametral_nome` | String | Name of the diametric class. |
> | `sortimento` | Number | Assortment. |
> | `peso_liquido` | Number | Net weight. |
> | `volume_nome` | String | Name of the volume. |
> | `saldo` | Number | Open balance. |
> | `faturado` | Number | Invoiced. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `percentual_reducao_icms` | Number | ICMS reduction percentage. |
> | `aliquota_mva` | Number | MVA rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `aliquota_funrural` | Number | FUNRURAL rate. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `aprovado` | String | Approved. |
> | `data_aprovacao_cliente` | Datetime | Customer approval date. |
> | `codigo_pedido` | String | Order code. |
> | `numero_item_pedido` | Integer | Order item number. |
> | `prazo_entrega` | Datetime | Delivery term. |
> | `percentual_comissao_tabela_preco` | Number | Price table commission percentage. |
> | `aliquota_icms_diferimento` | Number | Deferral ICMS rate. |
> | `percentual_comissao_promocao` | Number | Promotion commission percentage. |
> | `orcamento_id` | Integer | ID of the quotes document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Quote services
>
> Service lines of each quote.
>
> Table: `quote_services` · Primary key: `orcamento_id`, `id` · Sync: Incremental · M8 area: Faturamento > Orçamentos
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `aprovado` | String | Approved. |
> | `servico_id` | Integer | ID of the service. |
> | `servico_nome` | String | Name of the service. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_desconto_rateio` | Number | Apportionment discount value. |
> | `valor_unitario_desconto` | Number | Discount unit value. |
> | `quantidade` | Number | Quantity. |
> | `valor_total` | Number | Total amount of the line. |
> | `saldo` | Number | Open balance. |
> | `faturado` | Number | Invoiced. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `codigo_pedido` | String | Order code. |
> | `numero_item_pedido` | Integer | Order item number. |
> | `observacao` | String | Free-text notes. |
> | `orcamento_id` | Integer | ID of the quotes document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Price tables
>
> Price tables.
>
> Table: `price_tables` · Primary key: `id` · Sync: Full table · M8 area: Faturamento > Tabelas de preço
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `percentual_acrescimo` | Number | Surcharge percentage. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `calcular_peso_liquido` | Boolean | Calculate net weight. |
> | `mobile` | Boolean | Mobile. |
> | `codigo_importacao` | String | Import code. |
> | `observacao` | String | Free-text notes. |

> [accordion] Order types
>
> Order types and their settings.
>
> Table: `order_types` · Primary key: `id` · Sync: Full table · M8 area: Faturamento > Tipos de pedido
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `outros_documentos_operacao_id` | Integer | ID of the operation documents other. |
> | `outros_documentos_operacao_triangular_id` | Integer | ID of the triangular operation documents other. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `status_lancamento_id` | Integer | ID of the posting status. |
> | `status_cancelamento_id` | Integer | ID of the cancellation status. |
> | `status_controle_entrega_id` | Integer | ID of the delivery control status. |
> | `serie_documento_id` | Integer | ID of the document series. |
> | `cliente_padrao_id` | Integer | ID of the default customer. |
> | `cliente_padrao_nome` | String | Name of the default customer. |
> | `metodo_faturamento` | String | Billing method. |
> | `controle_avancar_status` | String | Status advance control. |
> | `alterar_cliente` | String | Change customer. |
> | `habilita_troca_permuta` | String | Enables barter change. |
> | `habilita_item_custo` | String | Enables cost item. |
> | `habilita_status` | String | Enables status. |
> | `habilita_itens` | String | Enables items. |
> | `habilita_servicos` | String | Enables services. |
> | `habilita_insumos_producao` | String | Enables production inputs. |
> | `gerar_ordem_producao_automatico` | Boolean | Generate automatic production order. |
> | `tipo_ordem_producao_id` | Integer | ID of the production order type. |
> | `tipo_ordem_producao_nome` | String | Name of the production order type. |
> | `informar_tabela_preco` | String | Inform price table. |
> | `utiliza_grade_comissao_preco` | Boolean | Uses price commission grid. |
> | `reservar_estoque` | String | Reserve stock. |
> | `validar_estoque_produto_acabado` | String | Validate finished product stock. |
> | `informar_motivo_cancelamento` | String | Inform cancellation reason. |
> | `informar_motivo_retroceder` | String | Inform go back reason. |
> | `informar_motivo_restricao` | String | Inform restriction reason. |
> | `exibir_avalista` | String | Show guarantor. |
> | `tipo_valor_unitario` | String | Unit value type. |
> | `validar_estoque` | String | Validate stock. |
> | `indicador_presenca_comprador` | String | Buyer presence indicator. |
> | `indicador_intermediador` | String | Intermediary indicator. |
> | `validar_saldo_contrato` | String | Validate contract balance. |
> | `cpf_cnpj_intermediador` | String | Intermediary CNPJ CPF. |
> | `nome_intermediador` | String | Intermediary name. |
> | `data_separar_pedido` | String | Separate order date. |
> | `permitir_simples_fatura` | String | Allow invoice simple. |
> | `permitir_faturar_nf` | String | Allow invoice to invoice. |
> | `permitir_liberar_pdv` | String | Allow release POS. |
> | `permitir_faturar_nfce` | String | Allow NFC-e to invoice. |
> | `controle_entrega` | Boolean | Delivery control. |
> | `classificacao_obrigatoria` | Boolean | Required classification. |
> | `reprocessar_valor_unitario` | Boolean | Reprocess unit value. |
> | `exibir_observacoes_internas` | Boolean | Show internal notes. |
> | `rota_obrigatoria` | Boolean | Required route. |
> | `exibir_preco_venda` | Boolean | Show sale price. |
> | `contato_cliente_obrigatorio` | Boolean | Required customer contact. |
> | `contato_digitado_obrigatorio` | Boolean | Required typed contact. |
> | `endereco_entrega_obrigatorio` | Boolean | Required delivery address. |
> | `validar_data_entrega` | Boolean | Validate delivery date. |
> | `calculo_comissao` | Boolean | Commission calculation. |
> | `utiliza_grade_comissao` | Boolean | Uses commission grid. |
> | `permitir_separar_parcial` | Boolean | Allow separate partial. |
> | `validar_adiantamento` | String | Validate advance. |
> | `validar_contrato` | Boolean | Validate contract. |
> | `validar_contrato_nome` | String | Name of the validate contract. |
> | `exibir_contrato_fornecedor` | Boolean | Show supplier contract. |
> | `usar_operacao_fiscal_tipo_documento` | Boolean | Use document type fiscal operation. |
> | `condicao_pagamento_tipo_documento` | String | Document type payment condition. |
> | `validar_valor_minimo` | String | Validate minimum value. |
> | `frete_obrigatorio` | Boolean | Required freight. |
> | `validar_uf_entrega` | Boolean | Validate delivery state (UF). |
> | `atualizar_valores` | Boolean | Update values. |
> | `informar_representante` | Boolean | Inform representative. |
> | `comissao_representante` | Boolean | Representative commission. |
> | `integrar_wms` | Boolean | Integrate WMS. |
> | `exibir_ultimo_custo_item` | Boolean | Show last item cost. |
> | `validar_total` | Boolean | Validate total. |
> | `permite_alterar_classificacao` | Boolean | Allows change classification. |
> | `obrigatorio_envio_espelho` | Boolean | Mirror sending required. |
> | `obrigatorio_numero_ttd` | Boolean | TTD number required. |
> | `texto_ttd` | String | TTD text. |
> | `validar_desconto_item` | Boolean | Validate item discount. |
> | `bloquear_desconto` | Boolean | Block discount. |
> | `desconto_unitario` | Boolean | Unit discount. |
> | `atualizar_status_venda_futura` | Boolean | Update future sale status. |
> | `gerar_os_assits_equipamento` | Boolean | Generate equipment assistance service order. |
> | `mobile` | Boolean | Mobile. |
> | `usar_comanda` | Boolean | Use order slip. |
> | `pedido_express` | Boolean | Express order. |
> | `comparativo_venda` | Boolean | Sale comparison. |
> | `dias_verificar_aviso_venda` | Integer | Check sale notice days. |
> | `considerar_dre_projeto` | Boolean | Consider project income statement. |
> | `sugerir_valor_promocao` | Boolean | Suggest promotion value. |
> | `cor` | String | Color. |
> | `observacoes` | String | Free-text notes. |
> | `bloquear_faturamento` | String | Block billing. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `outros_documentos_operacao_triangular_nome` | String | Name of the triangular operation documents other. |
> | `outros_documentos_operacao_nome` | String | Name of the operation documents other. |
> | `status_lancamento_nome` | String | Name of the posting status. |
> | `status_cancelamento_nome` | String | Name of the cancellation status. |
> | `status_controle_entrega_nome` | String | Name of the delivery control status. |
> | `serie_documento_nome` | String | Name of the document series. |

> [accordion] Billing statuses
>
> Billing statuses.
>
> Table: `billing_statuses` · Primary key: `id` · Sync: Full table · M8 area: Faturamento > Status
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `status_finalizacao` | String | Completion status. |
> | `destino_status` | String | Status destination. |
> | `exibir_notificacao` | String | Show notification. |
> | `integrar_wms` | String | Integrate WMS. |
> | `permite_impressao` | String | Allows printing. |
> | `bloqueio` | String | Block. |
> | `validar_limite_credito` | Boolean | Validate credit limit. |
> | `validar_limite_credito_string` | String | Validate text credit limit. |
> | `validar_safe_check` | Boolean | Validate check safe. |
> | `validar_safe_check_string` | String | Validate text check safe. |
> | `validar_estoque` | Boolean | Validate stock. |
> | `validar_estoque_string` | String | Validate text stock. |
> | `bloquear_desconto_nao_autorizado` | Boolean | Block authorized not discount. |
> | `bloquear_desconto_nao_autorizado_string` | String | Block text authorized not discount. |
> | `reiniciar_fluxo` | Boolean | Restart flow. |
> | `reiniciar_fluxo_string` | String | Restart text flow. |
> | `observacoes` | String | Free-text notes. |
> | `destino_status_texto` | String | Text status destination. |

### Finance

> [accordion] Accounts receivable
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `lancamento_tipo_nome` | String | Name of the type posting. |
> | `pessoa_venda_id` | Integer | ID of the sale person. |
> | `pessoa_venda_nome` | String | Name of the sale person. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `data_entrada` | Datetime | Entry date. |
> | `data_emissao` | Datetime | Issue date of the document. |
> | `data_competencia` | Datetime | Accrual date. |
> | `codigo_importacao` | String | Import code. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `moeda_id` | Integer | ID of the currency. |
> | `moeda_nome` | String | Name of the currency. |
> | `especie_id` | Integer | ID of the document type. |
> | `especie_nome` | String | Name of the document type. |
> | `conta_contabil_credito_id` | Integer | ID of the credit accounting account. |
> | `conta_contabil_credito_nome` | String | Name of the credit accounting account. |
> | `operacao_financeira_id` | Integer | ID of the financial operation. |
> | `operacao_financeira_nome` | String | Name of the financial operation. |
> | `historico_id` | Integer | ID of the history. |
> | `historico_nome` | String | Name of the history. |
> | `conta_contabil_despesa_id` | Integer | ID of the expense accounting account. |
> | `conta_contabil_despesa_nome` | String | Name of the expense accounting account. |
> | `historico_despesa_id` | Integer | ID of the expense history. |
> | `historico_despesa_nome` | String | Name of the expense history. |
> | `centro_custo_id` | Integer | ID of the cost center. |
> | `centro_custo_nome` | String | Name of the cost center. |
> | `projeto_execucao_tarefa_item_id` | Integer | ID of the item task execution project. |
> | `projeto_execucao_tarefa_item_nome` | String | Name of the item task execution project. |
> | `saldo` | Number | Open balance. |
> | `status_aprovacao` | String | Approval status. |
> | `status` | String | Status of the record. |
> | `renegociacao_id` | Integer | ID of the renegotiation. |
> | `imovel_rural_id` | Integer | ID of the rural property. |
> | `imovel_rural_nome` | String | Name of the rural property. |
> | `lancamento_tipo_id` | Integer | ID of the type posting. |
> | `tipo_titulo` | String | Title type. |
> | `documento` | String | Document number. |
> | `conta_bancaria_id` | Integer | ID of the bank account. |
> | `conta_bancaria_nome` | String | Name of the bank account. |
> | `unidade_negocio_id` | Integer | ID of the business unit. |
> | `unidade_negocio_nome` | String | Name of the business unit. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `serie` | String | Series. |
> | `chave_nfe` | String | NF-e access key. |
> | `tipo_remessa` | String | Remittance type. |
> | `situacao_titulo` | String | Title situation. |
> | `valor` | Number | Amount. |
> | `cotacao_moeda` | Number | Currency quotation. |
> | `tipo_documento` | String | Document type. |
> | `complemento` | String | Complement. |
> | `observacao` | String | Free-text notes. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Receivable installments
>
> Installments of each receivable title.
>
> Table: `receivable_installments` · Primary key: `titulo_id`, `id` · Sync: Incremental · M8 area: Financeiro > Contas a receber
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `condicao_texto` | String | Text condition. |
> | `data_condicao` | Datetime | Condition date. |
> | `vencimento` | Datetime | Due date. |
> | `previsao_pagamento` | Datetime | Payment forecast. |
> | `valor` | Number | Amount. |
> | `valor_moeda` | Number | Currency value. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `convenio_nome` | String | Name of the agreement. |
> | `saldo` | Number | Open balance. |
> | `cotacao_moeda` | Number | Currency quotation. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `portador_id` | Integer | ID of the collection agent. |
> | `portador_nome` | String | Name of the collection agent. |
> | `complemento` | String | Complement. |
> | `codigo_importacao` | String | Import code. |
> | `observacao` | String | Free-text notes. |
> | `observacao_cobranca` | String | Collection notes. |
> | `observacao_interna` | String | Internal notes. |
> | `titulo_id` | Integer | ID of the accounts receivable document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Receivable settlements
>
> Settlements (payments received) of each receivable title.
>
> Table: `receivable_settlements` · Primary key: `titulo_id`, `id` · Sync: Incremental · M8 area: Financeiro > Contas a receber
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `titulo_parcela_id` | Integer | ID of the installment title. |
> | `data` | Datetime | Date. |
> | `data_ocorrencia` | Datetime | Occurrence date. |
> | `valor_juros` | Number | Interest value. |
> | `valor_multa` | Number | Fine value. |
> | `valor_desconto` | Number | Discount value. |
> | `valor` | Number | Amount. |
> | `cheque_id` | Integer | ID of the check. |
> | `conta_contabil_id` | Integer | ID of the accounting account. |
> | `conta_contabil_nome` | String | Name of the accounting account. |
> | `historico_id` | Integer | ID of the history. |
> | `historico_nome` | String | Name of the history. |
> | `tabela_contabil_id` | Integer | ID of the accounting table. |
> | `meio_pagamento_id` | Integer | ID of the payment method. |
> | `meio_pagamento_nome` | String | Name of the payment method. |
> | `valor_recebido` | Number | Received value. |
> | `variacao_cambial` | Number | Exchange variation. |
> | `dias_atraso` | Integer | Delay days. |
> | `convenio_nome` | String | Name of the agreement. |
> | `complemento` | String | Complement. |
> | `observacao_interna` | String | Internal notes. |
> | `titulo_id` | Integer | ID of the accounts receivable document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Accounts payable
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_nome` | String | Name of the company. |
> | `lancamento_tipo_nome` | String | Name of the type posting. |
> | `pessoa_compra_id` | Integer | ID of the purchase person. |
> | `pessoa_compra_nome` | String | Name of the purchase person. |
> | `fornecedor_id` | Integer | ID of the supplier. |
> | `fornecedor_nome` | String | Name of the supplier. |
> | `data_entrada` | Datetime | Entry date. |
> | `data_emissao` | Datetime | Issue date of the document. |
> | `data_competencia` | Datetime | Accrual date. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `moeda_id` | Integer | ID of the currency. |
> | `moeda_nome` | String | Name of the currency. |
> | `especie_id` | Integer | ID of the document type. |
> | `especie_nome` | String | Name of the document type. |
> | `conta_contabil_credito_id` | Integer | ID of the credit accounting account. |
> | `conta_contabil_credito_nome` | String | Name of the credit accounting account. |
> | `operacao_financeira_id` | Integer | ID of the financial operation. |
> | `operacao_financeira_nome` | String | Name of the financial operation. |
> | `historico_id` | Integer | ID of the history. |
> | `historico_nome` | String | Name of the history. |
> | `conta_contabil_despesa_id` | Integer | ID of the expense accounting account. |
> | `conta_contabil_despesa_nome` | String | Name of the expense accounting account. |
> | `historico_despesa_id` | Integer | ID of the expense history. |
> | `historico_despesa_nome` | String | Name of the expense history. |
> | `centro_custo_id` | Integer | ID of the cost center. |
> | `centro_custo_nome` | String | Name of the cost center. |
> | `projeto_execucao_tarefa_item_id` | Integer | ID of the item task execution project. |
> | `projeto_execucao_tarefa_item_nome` | String | Name of the item task execution project. |
> | `saldo` | Number | Open balance. |
> | `status_aprovacao` | String | Approval status. |
> | `status` | String | Status of the record. |
> | `renegociacao_id` | Integer | ID of the renegotiation. |
> | `imovel_rural_id` | Integer | ID of the rural property. |
> | `imovel_rural_nome` | String | Name of the rural property. |
> | `lancamento_tipo_id` | Integer | ID of the type posting. |
> | `tipo_titulo` | String | Title type. |
> | `documento` | String | Document number. |
> | `conta_bancaria_id` | Integer | ID of the bank account. |
> | `conta_bancaria_nome` | String | Name of the bank account. |
> | `unidade_negocio_id` | Integer | ID of the business unit. |
> | `unidade_negocio_nome` | String | Name of the business unit. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `serie` | String | Series. |
> | `chave_nfe` | String | NF-e access key. |
> | `tipo_remessa` | String | Remittance type. |
> | `situacao_titulo` | String | Title situation. |
> | `valor` | Number | Amount. |
> | `cotacao_moeda` | Number | Currency quotation. |
> | `tipo_documento` | String | Document type. |
> | `complemento` | String | Complement. |
> | `observacao` | String | Free-text notes. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Payable installments
>
> Installments of each payable title.
>
> Table: `payable_installments` · Primary key: `titulo_id`, `id` · Sync: Incremental · M8 area: Financeiro > Contas a pagar
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `titulo_id` | Integer | ID of the title. |
> | `status_aprovacao` | String | Approval status. |
> | `numero_item` | Integer | Line number within the document. |
> | `usou_adiantamento_texto` | String | Used text advance. |
> | `vencimento` | Datetime | Due date. |
> | `previsao_pagamento` | Datetime | Payment forecast. |
> | `recebimento_boleto` | Datetime | Bank slip receipt. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `meio_pagamento_id` | Integer | ID of the payment method. |
> | `meio_pagamento_nome` | String | Name of the payment method. |
> | `portador_id` | Integer | ID of the collection agent. |
> | `portador_nome` | String | Name of the collection agent. |
> | `valor` | Number | Amount. |
> | `valor_pis_nf_grid` | Number | Grid invoice PIS value. |
> | `valor_cofins_nf_grid` | Number | Grid invoice COFINS value. |
> | `valor_icms_nf_grid` | Number | Grid invoice ICMS value. |
> | `saldo` | Number | Open balance. |
> | `usuario_aprovacao_nome` | String | Name of the approval user. |
> | `data_aprovacao` | Datetime | Approval date. |
> | `bordero_id` | Integer | ID of the bordereau. |
> | `conta_bordero_id` | Integer | ID of the bordereau account. |
> | `codigo_barra` | String | Bar code. |
> | `complemento` | String | Complement. |
> | `observacao` | String | Free-text notes. |
> | `pessoa_nome` | String | Name of the person. |
> | `pagador_digitado` | String | Typed payer. |
> | `pagador_cpf_cnpj` | String | CNPJ CPF payer. |
> | `pagador_nome` | String | Name of the payer. |
> | `sacador_digitado` | String | Typed drawer. |
> | `sacador_cpf_cnpj` | String | CNPJ CPF drawer. |
> | `sacador_nome` | String | Name of the drawer. |
> | `favorecido_digitado` | String | Typed beneficiary. |
> | `favorecido_cpf_cnpj` | String | CNPJ CPF beneficiary. |
> | `favorecido_nome` | String | Name of the beneficiary. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Payable settlements
>
> Settlements (payments made) of each payable title.
>
> Table: `payable_settlements` · Primary key: `titulo_id`, `id` · Sync: Incremental · M8 area: Financeiro > Contas a pagar
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `titulo_parcela_id` | Integer | ID of the installment title. |
> | `data` | Datetime | Date. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |
> | `valor_juros` | Number | Interest value. |
> | `valor_multa` | Number | Fine value. |
> | `valor_desconto` | Number | Discount value. |
> | `valor` | Number | Amount. |
> | `cheque_id` | Integer | ID of the check. |
> | `conta_contabil_id` | Integer | ID of the accounting account. |
> | `conta_contabil_nome` | String | Name of the accounting account. |
> | `historico_id` | Integer | ID of the history. |
> | `tabela_contabil_id` | Integer | ID of the accounting table. |
> | `meio_pagamento_id` | Integer | ID of the payment method. |
> | `meio_pagamento_nome` | String | Name of the payment method. |
> | `complemento` | String | Complement. |
> | `documento` | String | Document number. |
> | `usuario_alteracao_id` | Integer | ID of the change user. |
> | `usuario_alteracao_nome` | String | Name of the change user. |
> | `titulo_id` | Integer | ID of the accounts payable document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Customer advances
>
> Customer advances issued since the Start Date.
>
> Table: `customer_advances` · Primary key: `id` · Sync: Full table · M8 area: Financeiro > Adiantamentos de clientes
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `data_validade` | Datetime | Expiry date. |
> | `data_lancamento` | Datetime | Posting date. |
> | `data_emissao` | Datetime | Issue date of the document. |
> | `status` | String | Status of the record. |
> | `status_nome` | String | Name of the status. |
> | `status_aprovacao` | String | Approval status. |
> | `status_aprovacao_nome` | String | Name of the approval status. |
> | `tipo_adiantamento_id` | Integer | ID of the advance type. |
> | `tipo_adiantamento_nome` | String | Name of the advance type. |
> | `ativo` | Boolean | Whether the record is active. |
> | `empresa_id` | Integer | ID of the company. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `cliente_cnpj_cpf` | String | CPF CNPJ customer. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `percentual_comissao` | Number | Commission percentage. |
> | `documento` | String | Document number. |
> | `valor` | Number | Amount. |
> | `grupo_economico_id` | Integer | ID of the economic group. |
> | `grupo_economico_nome` | String | Name of the economic group. |
> | `meio_pagamento_id` | Integer | ID of the payment method. |
> | `meio_pagamento_nome` | String | Name of the payment method. |
> | `conta_origem_id` | Integer | ID of the origin account. |
> | `conta_origem_nome` | String | Name of the origin account. |
> | `conta_destino_id` | Integer | ID of the destination account. |
> | `conta_destino_nome` | String | Name of the destination account. |
> | `historico_contabil_id` | Integer | ID of the accounting history. |
> | `historico_contabil_nome` | String | Name of the accounting history. |
> | `complemento` | String | Complement. |
> | `especie_id` | Integer | ID of the document type. |
> | `especie_nome` | String | Name of the document type. |
> | `operacao_financeira_id` | Integer | ID of the financial operation. |
> | `operacao_financeira_nome` | String | Name of the financial operation. |
> | `moeda_id` | Integer | ID of the currency. |
> | `moeda_nome` | String | Name of the currency. |
> | `pedido_id` | Integer | ID of the order. |
> | `pedido_nome` | String | Name of the order. |
> | `pessoa_cartao_id` | Integer | ID of the card person. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `data_transacao` | Datetime | Transaction date. |
> | `numero_parcelas` | Integer | Installments number. |
> | `autenticacao` | String | Authentication. |
> | `autorizacao_cartao` | String | Card authorization. |
> | `nsu` | String | NSU. |
> | `nsu_host` | String | Host NSU. |
> | `cotacao_moeda` | Number | Currency quotation. |
> | `contabilizou` | Boolean | Posted. |
> | `observacao` | String | Free-text notes. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Payment conditions
>
> Payment conditions.
>
> Table: `payment_conditions` · Primary key: `id` · Sync: Full table · M8 area: Financeiro > Condições de pagamento
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `tipo_pagamento` | String | Payment type. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `nome` | String | Name of the record. |
> | `abreviatura` | String | Abbreviation. |
> | `meio_pagamento_id` | Integer | ID of the payment method. |
> | `meio_pagamento_nome` | String | Name of the payment method. |
> | `bandeira_cartao_id` | Integer | ID of the card card brand. |
> | `bandeira_cartao_nome` | String | Name of the card card brand. |
> | `reserva_estoque` | Boolean | Stock reservation. |
> | `boleto_convenio_id` | Integer | ID of the agreement bank slip. |
> | `boleto_convenio_nome` | String | Name of the agreement bank slip. |
> | `quantidade_parcelas` | Integer | Installments quantity. |
> | `quantidade_parcelas_tef` | Integer | TEF installments quantity. |
> | `intervalo_parcelas` | Integer | Installments interval. |
> | `intervalo` | String | Interval. |
> | `percentual_custo_financeiro` | Number | Financial cost percentage. |
> | `custo_margem` | Number | Margin cost. |
> | `percentual_tabela_preco` | Number | Price table percentage. |
> | `percentual_acrescimo` | Number | Surcharge percentage. |
> | `percentual_desconto` | Number | Discount percentage. |
> | `codigo_marketplace` | String | Marketplace code. |
> | `descricao_marketplace` | String | Marketplace description. |
> | `mobile` | Boolean | Mobile. |
> | `data_atualizacao` | Datetime | Date and time the record was last updated in M8 (M8 local time). |

> [accordion] Payment methods
>
> Payment methods.
>
> Table: `payment_methods` · Primary key: `id` · Sync: Full table · M8 area: Financeiro > Meios de pagamento
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `codigo_pagamento` | String | Payment code. |
> | `tipo_meio_pagamento` | String | Payment method type. |
> | `gerar_recibo` | String | Generate receipt. |
> | `gerar_boleto` | String | Generate bank slip. |
> | `consultar_safe_check` | String | Query check safe. |
> | `incluir_novo_cliente` | String | Include new customer. |
> | `exibir_pdv` | Boolean | Show POS. |
> | `ignorar_taxa_cartao` | Boolean | Ignore card fee. |
> | `notificacao_financeira` | Boolean | Financial notification. |
> | `boleto_convenio_id` | Integer | ID of the agreement bank slip. |
> | `boleto_convenio_nome` | String | Name of the agreement bank slip. |
> | `pessoa_transacao_id` | Integer | ID of the transaction person. |
> | `pessoa_transacao_nome` | String | Name of the transaction person. |
> | `instituicao_pagamento_id` | Integer | ID of the payment institution. |
> | `instituicao_pagamento_nome` | String | Name of the payment institution. |
> | `gerar_saida_caixa_cartao` | Boolean | Generate card cash outbound. |
> | `mobile` | Boolean | Mobile. |

> [accordion] Financial operations
>
> Financial operations (chart of financial categories).
>
> Table: `financial_operations` · Primary key: `id` · Sync: Full table · M8 area: Financeiro > Operações financeiras
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `classificacao` | String | Classification. |
> | `tabela_contabil_id` | Integer | ID of the accounting table. |
> | `tabela_contabil_nome` | String | Name of the accounting table. |
> | `tipo_operacao` | String | Operation type. |
> | `destino_operacao` | String | Operation destination. |
> | `tipo_remessa` | String | Remittance type. |
> | `informar_conta_contabil` | Boolean | Inform accounting account. |
> | `ignorar_informacao_contabil` | Boolean | Ignore accounting information. |
> | `ocultar_fluxo_caixa` | Boolean | Hide cash flow. |
> | `informar_conta_debito` | Boolean | Inform debit account. |
> | `informar_centro_custo` | Boolean | Inform cost center. |
> | `informar_auto_centro_custo` | Boolean | Inform cost center auto. |
> | `informar_auto_conta_contabil` | Boolean | Inform accounting account auto. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `codigo_importacao` | String | Import code. |
> | `ativo` | Boolean | Whether the record is active. |

> [accordion] Document species
>
> Document types (espécies) of financial titles.
>
> Table: `document_species` · Primary key: `id` · Sync: Full table · M8 area: Financeiro > Espécies
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `nome` | String | Name of the record. |
> | `abreviatura` | String | Abbreviation. |
> | `codigo_importacao` | String | Import code. |
> | `ativo` | Boolean | Whether the record is active. |

> [accordion] Chart of accounts
>
> Chart of accounts.
>
> Table: `chart_of_accounts` · Primary key: `id` · Sync: Full table · M8 area: Contábil > Plano de contas
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `codigo` | Integer | Code. |
> | `ativo` | Boolean | Whether the record is active. |
> | `tipo_conta` | String | Account type. |
> | `eh_conta_caixa` | String | Is cash account. |
> | `natureza` | String | Nature. |
> | `gerar_edi` | String | Generate EDI. |
> | `absorcao_custo` | String | Cost absorption. |
> | `nome` | String | Name of the record. |
> | `classificacao` | String | Classification. |
> | `conta_bancaria_id` | Integer | ID of the bank account. |
> | `conta_bancaria_nome` | String | Name of the bank account. |
> | `estabelecimento_id` | Integer | ID of the establishment. |
> | `estabelecimento_nome` | String | Name of the establishment. |
> | `instituicao_pagamento_id` | Integer | ID of the payment institution. |
> | `instituicao_pagamento_nome` | String | Name of the payment institution. |
> | `exibir_dashboard_financeiro` | Boolean | Show financial dashboard. |
> | `exibir_fluxo_caixa` | Boolean | Show cash flow. |
> | `conta_adiantamento` | Boolean | Advance account. |
> | `codigo_importacao_ems` | Integer | EMS import code. |
> | `codigo_importacao` | String | Import code. |
> | `tipo_imposto_contabilizacao` | String | Accounting posting tax type. |
> | `valor_limite` | Number | Limit value. |
> | `tipo_sped` | String | SPED type. |
> | `nao_exibir_conta_adto_dre` | Boolean | Not show income statement advance account. |

### Purchases

> [accordion] Purchase invoices
>
> Purchase invoices issued since the Start Date.
>
> Table: `purchase_invoices` · Primary key: `id` · Sync: Full table · M8 area: Compras > Notas fiscais de compra
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `emissao` | Datetime | Issue date of the document. |
> | `lancamento` | Datetime | Posting. |
> | `data_entrada` | Datetime | Entry date. |
> | `pessoa_id` | Integer | ID of the person. |
> | `fornecedor_cnpj` | String | CNPJ supplier. |
> | `pessoa_nome` | String | Name of the person. |
> | `fornecedor_razao_social` | String | Name legal supplier. |
> | `fornecedor_fantasia` | String | Trade name supplier. |
> | `empresa_id` | Integer | ID of the company. |
> | `empresa_fantasia` | String | Trade name company. |
> | `empresa_nome` | String | Name of the company. |
> | `empresa_grupo_nome` | String | Name of the group company. |
> | `transportador_id` | Integer | ID of the carrier. |
> | `transportador_nome` | String | Name of the carrier. |
> | `participante_id` | Integer | ID of the participant. |
> | `participante_nome` | String | Name of the participant. |
> | `tipo_compra_id` | Integer | ID of the purchase type. |
> | `tipo_compra_descricao` | String | Description purchase type. |
> | `imovel_rural_id` | Integer | ID of the rural property. |
> | `imovel_rural_nome` | String | Name of the rural property. |
> | `unidade_negocio_id` | Integer | ID of the business unit. |
> | `unidade_negocio_nome` | String | Name of the business unit. |
> | `frete_id` | Integer | ID of the freight. |
> | `frete_nome` | String | Name of the freight. |
> | `valor_frete` | Number | Freight value. |
> | `valor_frete_a_pagar` | Number | Payable to freight value. |
> | `documento` | Integer | Document number. |
> | `observacao` | String | Free-text notes. |
> | `outro_documento_id` | Integer | ID of the document other. |
> | `status` | String | Status of the record. |
> | `status_markup` | String | Markup status. |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `usuario_cadastrou_id` | Integer | ID of the registered user. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `total_geral` | Number | Grand total of the document. |
> | `chave_nfe` | String | NF-e access key. |
> | `codigo_indentificacao_interno_grupo_nf` | String | Invoice group internal identification code. |
> | `nome_produto_grupo_nf` | String | Invoice group product name. |
> | `referencia_fabricante_grupo_nf` | String | Invoice group manufacturer reference. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Purchase invoice products
>
> 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
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `numero_item` | Integer | Line number within the document. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `unidade` | String | Unit. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `operacao_fiscal_nome` | String | Name of the fiscal operation. |
> | `tabela_contabil_item_id` | Integer | ID of the item accounting table. |
> | `cfop_nome` | String | Name of the CFOP. |
> | `cst` | String | CST tax situation code. |
> | `status_markup` | String | Markup status. |
> | `ordem_compra_id` | Integer | ID of the purchase order. |
> | `id_origem_dados` | Integer | Data origin ID. |
> | `origem_dados` | String | Data origin. |
> | `conta_contabil_id` | Integer | ID of the accounting account. |
> | `conta_contabil_nome` | String | Name of the accounting account. |
> | `centro_custo_id` | Integer | ID of the cost center. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_tarefa_item_id` | Integer | ID of the item task execution project. |
> | `centro_custo_nome` | String | Name of the cost center. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `projeto_execucao_tarefa_item_nome` | String | Name of the item task execution project. |
> | `destino_estoque_id` | Integer | ID of the stock destination. |
> | `destino_estoque_nome` | String | Name of the stock destination. |
> | `destino_estoque_terceiro_id` | Integer | ID of the third party stock destination. |
> | `destino_estoque_terceiro_nome` | String | Name of the third party stock destination. |
> | `data_fabricacao` | Datetime | Manufacturing date. |
> | `data_validade` | Datetime | Expiry date. |
> | `fator_conversao` | Number | Conversion factor. |
> | `quantidade_conversao` | Number | Conversion quantity. |
> | `valor_unitario_conversao` | Number | Conversion unit value. |
> | `unidade_fator_conversao_id` | Integer | ID of the conversion factor unit. |
> | `unidade_fator_conversao_nome` | String | Name of the conversion factor unit. |
> | `vendedor_nome` | String | Name of the seller. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `custo_operacao` | Number | Operation cost. |
> | `valor_frete_rateio` | Number | Apportionment freight value. |
> | `valor_frete_a_pagar_rateio` | Number | Apportionment payable to freight value. |
> | `outras_despesas` | Number | Expenses other. |
> | `custo_dolar` | Number | Dollar cost. |
> | `valor_desconto` | Number | Discount value. |
> | `valor_desconto_rateio` | Number | Apportionment discount value. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `percentual_reducao_icms` | Number | ICMS reduction percentage. |
> | `percentual_reducao_icms_st` | Number | ST ICMS reduction percentage. |
> | `aliquota_mva` | Number | MVA rate. |
> | `aliquota_pis` | Number | PIS rate. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `valor_icms` | Number | ICMS value. |
> | `valor_icms_st` | Number | ST ICMS value. |
> | `valor_pis` | Number | PIS value. |
> | `valor_cofins` | Number | COFINS value. |
> | `valor_ipi` | Number | IPI value. |
> | `valor_isentas_icms` | Number | ICMS exempt value. |
> | `valor_outras_icms` | Number | ICMS other value. |
> | `valor_isentas_ipi` | Number | IPI exempt value. |
> | `valor_outras_ipi` | Number | IPI other value. |
> | `aliquota_fundo_combate_pobreza` | Number | Poverty combat fund rate. |
> | `base_calculo_fundo_combate_pobreza` | Number | Poverty combat fund calculation base. |
> | `valor_fundo_combate_pobreza` | Number | Poverty combat fund value. |
> | `aliquota_fundo_combate_pobreza_st` | Number | ST poverty combat fund rate. |
> | `base_calculo_fundo_combate_pobreza_st` | Number | ST poverty combat fund calculation base. |
> | `valor_fundo_combate_pobreza_st` | Number | ST poverty combat fund value. |
> | `debito_direto` | String | Direct debit. |
> | `pis_cst` | String | CST PIS. |
> | `cofins_cst` | String | CST COFINS. |
> | `ipi_cst` | String | CST IPI. |
> | `base_calculo_icms_st_retido` | Number | Withheld ST ICMS calculation base. |
> | `valor_icms_st_retido` | Number | Withheld ST ICMS value. |
> | `valor_icms_st_pago` | Number | Paid ST ICMS value. |
> | `base_calculo_icms_st_pago` | Number | Paid ST ICMS calculation base. |
> | `tabela_contabil_id` | Integer | ID of the accounting table. |
> | `tabela_contabil_nome` | String | Name of the accounting table. |
> | `valor_total` | Number | Total amount of the line. |
> | `observacao` | String | Free-text notes. |
> | `codigo_beneficio_fiscal` | String | Fiscal benefit code. |
> | `codigo_beneficio_fiscal_rbc` | String | RBC fiscal benefit code. |
> | `codigo_beneficio_fiscal_presumido` | String | Presumed fiscal benefit code. |
> | `aliquota_icms_ttd` | Number | TTD ICMS rate. |
> | `aliquota_iss` | Number | ISS rate. |
> | `aliquota_inss` | Number | INSS rate. |
> | `aliquota_irrf` | Number | IRRF rate. |
> | `aliquota_funrural` | Number | FUNRURAL rate. |
> | `aliquota_icms_diferencial` | Number | Differential ICMS rate. |
> | `aliquota_icms_diferencial_remetente` | Number | Sender differential ICMS rate. |
> | `aliquota_icms_diferencial_destino` | Number | Destination differential ICMS rate. |
> | `aliquota_fundo_combate_pobreza_st_retido` | Number | Withheld ST poverty combat fund rate. |
> | `aliquota_ii` | Number | Import tax (II) rate. |
> | `aliquota_csll` | Number | CSLL rate. |
> | `valor_custo_medio` | Number | Average cost value. |
> | `valor_custo_medio_gerencial` | Number | Managerial average cost value. |
> | `valor_icms_ttd` | Number | TTD ICMS value. |
> | `valor_iss` | Number | ISS value. |
> | `valor_inss` | Number | INSS value. |
> | `valor_irrf` | Number | IRRF value. |
> | `valor_csll` | Number | CSLL value. |
> | `valor_ipi_devolucao` | Number | Return IPI value. |
> | `valor_funrural` | Number | FUNRURAL value. |
> | `valor_ii` | Number | Import tax (II) value. |
> | `valor_icms_diferencial` | Number | Differential ICMS value. |
> | `base_calculo_icms` | Number | ICMS calculation base. |
> | `base_calculo_icms_st` | Number | ST ICMS calculation base. |
> | `base_calculo_icms_ttd` | Number | TTD ICMS calculation base. |
> | `base_calculo_pis` | Number | PIS calculation base. |
> | `base_calculo_cofins` | Number | COFINS calculation base. |
> | `base_calculo_ipi` | Number | IPI calculation base. |
> | `base_calculo_funrural` | Number | FUNRURAL calculation base. |
> | `base_calculo_ii` | Number | Import tax (II) calculation base. |
> | `base_calculo_icms_diferencial` | Number | Differential ICMS calculation base. |
> | `base_calculo_inss` | Number | INSS calculation base. |
> | `base_calculo_iss` | Number | ISS calculation base. |
> | `base_calculo_irrf` | Number | IRRF calculation base. |
> | `base_calculo_csll` | Number | CSLL calculation base. |
> | `habilitar_base_iss` | Boolean | Enable ISS base. |
> | `habilitar_base_inss` | Boolean | Enable INSS base. |
> | `base_calculo_icms_desoneracao` | Number | Exemption ICMS calculation base. |
> | `aliquota_icms_desoneracao` | Number | Exemption ICMS rate. |
> | `outras_retencoes` | Number | Withholdings other. |
> | `valor_unitario_original` | Number | Original unit value. |
> | `documento_fiscal_id` | Integer | ID of the purchase invoices document the line belongs to. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

> [accordion] Purchase orders
>
> Purchase orders issued since the Start Date.
>
> Table: `purchase_orders` · Primary key: `id` · Sync: Full table · M8 area: Compras > Ordens de compra
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `data_emissao` | Datetime | Issue date of the document. |
> | `data_prazo_entrega` | Datetime | Delivery term date. |
> | `fornecedor_id` | Integer | ID of the supplier. |
> | `fornecedor_nome` | String | Name of the supplier. |
> | `frete_id` | Integer | ID of the freight. |
> | `frete_nome` | String | Name of the freight. |
> | `condicao_pagamento_id` | Integer | ID of the payment condition. |
> | `condicao_pagamento_nome` | String | Name of the payment condition. |
> | `cliente_id` | Integer | ID of the customer. |
> | `cliente_nome` | String | Name of the customer. |
> | `funcionario_id` | Integer | ID of the employee. |
> | `funcionario_nome` | String | Name of the employee. |
> | `unidade_negocio_id` | Integer | ID of the business unit. |
> | `unidade_negocio_nome` | String | Name of the business unit. |
> | `contato_digitado` | String | Typed contact. |
> | `solicitante_id` | Integer | ID of the requester. |
> | `solicitante_nome` | String | Name of the requester. |
> | `transportador_id` | Integer | ID of the carrier. |
> | `transportador_nome` | String | Name of the carrier. |
> | `contrato_id` | Integer | ID of the contract. |
> | `contrato_fornecedor_id` | Integer | ID of the supplier contract. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `ativo` | Boolean | Whether the record is active. |
> | `status` | String | Status of the record. |
> | `status_nome` | String | Name of the status. |
> | `status_aprovacao` | String | Approval status. |
> | `status_aprovacao_nome` | String | Name of the approval status. |
> | `contrato_nome` | String | Name of the contract. |
> | `total_geral` | Number | Grand total of the document. |
> | `observacao` | String | Free-text notes. |
> | `emissao` | Datetime | Issue date of the document. |
> | `prazo_entrega` | Datetime | Delivery term. |
> | `status_aprovacao_texto` | String | Text approval status. |
> | `status_texto` | String | Text status. |
> | `fingerprint` | String | Short hash of the document as read in this run; its current lines are the ones whose `documento_fingerprint` equals it. |

> [accordion] Purchase order items
>
> Items of each purchase order.
>
> Table: `purchase_order_items` · Primary key: `ordem_compra_id`, `id` · Sync: Incremental · M8 area: Compras > Ordens de compra
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `ordem_compra_id` | Integer | ID of the purchase order. |
> | `numero_item` | Integer | Line number within the document. |
> | `produto_id` | Integer | ID of the product. |
> | `produto_nome` | String | Name of the product. |
> | `referencia_fabricante` | String | Manufacturer reference. |
> | `codigo_produto_fornecedor` | String | Supplier product code. |
> | `descricao_livre` | String | Free description. |
> | `produto_apelido` | String | Nickname product. |
> | `codigo_identificacao_interno` | String | Internal identification code. |
> | `unidade_id` | Integer | ID of the unit. |
> | `unidade_nome` | String | Name of the unit. |
> | `moeda_id` | Integer | ID of the currency. |
> | `moeda_nome` | String | Name of the currency. |
> | `quantidade` | Number | Quantity. |
> | `quantidade_comprada` | Number | Purchased quantity. |
> | `quantidade_fornecedor` | Number | Supplier quantity. |
> | `saldo` | Number | Open balance. |
> | `cst` | String | CST tax situation code. |
> | `ncm` | String | NCM code (Mercosur product classification). |
> | `valor_unitario` | Number | Unit price. |
> | `valor_desconto` | Number | Discount value. |
> | `aliquota_icms` | Number | ICMS rate. |
> | `valor_icms` | Number | ICMS value. |
> | `aliquota_icms_st` | Number | ST ICMS rate. |
> | `aliquota_mva` | Number | MVA rate. |
> | `valor_icmsst` | Number | ICMS ST value. |
> | `aliquota_ipi` | Number | IPI rate. |
> | `valor_ipi` | Number | IPI value. |
> | `aliquota_pis` | Number | PIS rate. |
> | `valor_pis` | Number | PIS value. |
> | `aliquota_cofins` | Number | COFINS rate. |
> | `valor_cofins` | Number | COFINS value. |
> | `valor_desconto_rateado` | Number | Apportioned discount value. |
> | `valor_total` | Number | Total amount of the line. |
> | `valor_total_impostos` | Number | Total taxes value. |
> | `tipo_sped` | String | SPED type. |
> | `operacao_fiscal_id` | Integer | ID of the fiscal operation. |
> | `operacao_fiscal_nome` | String | Name of the fiscal operation. |
> | `conta_contabil_id` | Integer | ID of the accounting account. |
> | `conta_contabil_nome` | String | Name of the accounting account. |
> | `centro_custo_id` | Integer | ID of the cost center. |
> | `centro_custo_nome` | String | Name of the cost center. |
> | `status_item_id` | Integer | ID of the item status. |
> | `status_item_nome` | String | Name of the item status. |
> | `projeto_execucao_id` | Integer | ID of the execution project. |
> | `projeto_execucao_nome` | String | Name of the execution project. |
> | `projeto_execucao_tarefa_item_id` | Integer | ID of the item task execution project. |
> | `projeto_execucao_tarefa_item_nome` | String | Name of the item task execution project. |
> | `data_prazo_entrega` | Datetime | Delivery term date. |
> | `data_prazo_reprogramado` | Datetime | Rescheduled term date. |
> | `sortimento` | Number | Assortment. |
> | `item_transferido` | Boolean | Transferred item. |
> | `observacao` | String | Free-text notes. |
> | `prazo_reprogramado` | Datetime | Rescheduled term. |
> | `prazo_entrega` | Datetime | Delivery term. |
> | `documento_fingerprint` | String | Fingerprint of the document header this line was read with. |
> | `linhas_lidas_em` | Datetime | When Nekt read this line (UTC); a line removed in M8 keeps an older value than the document's other lines. |

### CRM

> [accordion] CRM accounts
>
> CRM accounts (leads, prospects and customers).
>
> Table: `crm_accounts` · Primary key: `id` · Sync: Full table · M8 area: CRM > Contas
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `tipo_conta` | String | Account type. |
> | `razao_social` | String | Legal name. |
> | `fantasia` | String | Trade name. |
> | `cpf_cnpj` | String | CPF or CNPJ (Brazilian tax ID). |
> | `telefone` | String | Phone number. |
> | `telefone_adicional` | String | Additional phone. |
> | `municipio_id` | Integer | ID of the city. |
> | `municipio_nome` | String | Name of the city. |
> | `concorrente_id` | Integer | ID of the competitor. |
> | `concorrente_nome` | String | Name of the competitor. |
> | `representante_id` | Integer | ID of the representative. |
> | `representante_nome` | String | Name of the representative. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `origem_id` | Integer | ID of the origin. |
> | `origem_nome` | String | Name of the origin. |
> | `ramo_atividade_id` | Integer | ID of the activity line. |
> | `ramo_atividade_nome` | String | Name of the activity line. |
> | `ativo` | Boolean | Whether the record is active. |
> | `status` | String | Status of the record. |
> | `bloqueado` | String | Whether the record is blocked (Sim/Nao). |
> | `esta_excluido` | Boolean | Whether the record was deleted in M8 (soft delete). |
> | `excluido_pelo_usuario_id` | Integer | ID of the user by deleted. |
> | `atualizado_pelo_usuario_id` | Integer | ID of the user by updated. |

> [accordion] CRM opportunities
>
> CRM opportunities.
>
> Table: `crm_opportunities` · Primary key: `id` · Sync: Full table · M8 area: CRM > Oportunidades
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `oportunidade_status_nome` | String | Name of the status opportunity. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `responsavel` | Integer | Responsible. |
> | `responsavel_nome` | String | Name of the responsible. |
> | `orcamento` | Integer | Quote. |
> | `numero_orcamento` | String | Quote number. |
> | `status_oportunidade` | String | Opportunity status. |
> | `data_abertura` | Datetime | Opening date. |
> | `data_ultima_acao` | Datetime | Last action date. |
> | `hora_abertura` | Datetime | Opening hour. |
> | `descricao` | String | Description of the record. |
> | `conta_fantasia` | String | Trade name account. |
> | `conta_id` | Integer | ID of the account. |
> | `conta_nome` | String | Name of the account. |
> | `vendedor_id` | Integer | ID of the seller. |
> | `vendedor_nome` | String | Name of the seller. |
> | `tipo_oportunidade_id` | Integer | ID of the opportunity type. |
> | `tipo_oportunidade_nome` | String | Name of the opportunity type. |
> | `origem_id` | Integer | ID of the origin. |
> | `origem_nome` | String | Name of the origin. |
> | `modalidade_negocio_id` | Integer | ID of the business modality. |
> | `modalidade_negocio_nome` | String | Name of the business modality. |
> | `contato_pessoa_id` | Integer | ID of the person contact. |
> | `contato_pessoa_nome` | String | Name of the person contact. |
> | `oportunidade_status_id` | Integer | ID of the status opportunity. |
> | `etapa_negociacao` | String | Negotiation stage. |
> | `finalizar_agendamento` | Boolean | Finish scheduling. |
> | `probabilidade` | Number | Probability. |
> | `numero_proposta` | String | Proposal number. |
> | `numero_pedido` | String | Order number. |
> | `data_acompanhamento` | Datetime | Follow-up date. |
> | `previsao_fechamento` | Datetime | Closing forecast. |
> | `efetivacao_fechamento` | Datetime | Closing completion. |
> | `previsao_entrega` | Datetime | Delivery forecast. |
> | `efetivacao_entrega` | Datetime | Delivery completion. |
> | `valor_previsto` | Number | Expected value. |
> | `valor_fechado` | Number | Closed value. |
> | `motivo_perda_id` | Integer | ID of the loss reason. |
> | `motivo_perda_nome` | String | Name of the loss reason. |
> | `motivo_fechamento_id` | Integer | ID of the closing reason. |
> | `motivo_fechamento_nome` | String | Name of the closing reason. |
> | `dados_negociacao` | String | Negotiation data. |
> | `observacoes` | String | Free-text notes. |

> [accordion] CRM tasks
>
> CRM tasks.
>
> Table: `crm_tasks` · Primary key: `id` · Sync: Full table · M8 area: CRM > Tarefas
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the record in M8. |
> | `titulo` | String | Title. |
> | `descricao` | String | Description of the record. |
> | `data` | Datetime | Date. |
> | `cor` | String | Color. |
> | `prioridade` | String | Priority. |
> | `status` | String | Status of the record. |
> | `empresa_grupo_id` | Integer | ID of the group company. |
> | `tipo_tarefa_id` | Integer | ID of the task type. |
> | `tipo_atividade_id` | Integer | ID of the activity type. |
> | `tarefa_status_id` | Integer | ID of the status task. |
> | `tarefa_categoria_id` | Integer | ID of the category task. |
> | `detalhamento` | String | Details. |
> | `tarefa_complexidade_id` | Integer | ID of the complexity task. |
> | `pessoa_id` | Integer | ID of the person. |
> | `equipamento_id` | Integer | ID of the equipment. |
> | `projeto_id` | Integer | ID of the project. |
> | `projeto_execucao_orcamento_id` | Integer | ID of the quote execution project. |
> | `projeto_orcamento_id` | Integer | ID of the quote project. |
> | `horas_estimadas_orcamento` | Integer | Quote estimated hours. |
> | `centro_custo_id` | Integer | ID of the cost center. |
> | `ticket` | String | Ticket. |
> | `documentacao` | String | Documentation. |
> | `data_hora` | Datetime | Hour date. |
> | `inicio_estimado_data` | Datetime | Date estimated start. |
> | `inicio_estimado_hora` | Datetime | Hour estimated start. |
> | `termino_estimado_data` | Datetime | Date estimated end. |
> | `termino_estimado_hora` | Datetime | Hour estimated end. |
> | `esforco_estimado_horas` | Number | Hours estimated effort. |
> | `esforco_estimado_minutos` | Integer | Minutes estimated effort. |
> | `esforco_estimado` | String | Estimated effort. |
> | `data_final` | Datetime | Final date. |
> | `data_final_hora` | Datetime | Hour final date. |
> | `story_points` | Number | Points story. |
> | `ordem_visualizacao` | Integer | View order. |
> | `aviso_antecedencia` | String | Advance notice notice. |
> | `aviso_antecedencia_customizado` | Datetime | Custom advance notice notice. |
> | `aviso_antecedencia_customizado_hora` | Datetime | Hour custom advance notice notice. |
> | `ultima_notificacao` | Datetime | Last notification. |
> | `responsavel_id` | Integer | ID of the responsible. |
> | `responsavel_validacao_id` | Integer | ID of the validation responsible. |
> | `responsavel_analise_id` | Integer | ID of the analysis responsible. |
> | `usuarios_id` | String (JSON) | ID of the users. |
> | `vinculo` | String | Link. |
> | `ordem_servico_id` | Integer | ID of the service order. |
> | `informar_pessoa_pelo_tipo` | String | Inform type by person. |
> | `informar_projeto_pelo_tipo` | String | Inform type by project. |
> | `informar_orcamento_pelo_tipo` | String | Inform type by quote. |
> | `origem_dados_id` | Integer | ID of the data origin. |
> | `origem` | String | Origin. |

## 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:

```sql theme={null}
SELECT l.*
FROM receivable_installments l
JOIN accounts_receivable d ON d.id = l.titulo_id AND d.fingerprint = l.documento_fingerprint
WHERE l.linhas_lidas_em = (
  SELECT MAX(x.linhas_lidas_em) FROM receivable_installments x WHERE x.titulo_id = l.titulo_id
)
```

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.

| Tables | M8 area |
| :- | :- |
| Customers, suppliers, employees, sellers, carriers, users | Configurações |
| Products, services, equipment, price and stock balance, groups, families, brands, categories, units, stock locations | Estoque |
| Sales invoices, sales orders, quotes, billing service orders, price tables, order types, service order types, billing statuses (and their lines) | Faturamento |
| Receivables, payables, customer advances (and their installments and settlements), payment conditions, payment methods, financial operations, document types | Financeiro |
| Chart of accounts | Contábil |
| Purchase invoices and orders (and their lines) | Compras |
| CRM accounts, opportunities and tasks | CRM |
| Service orders, their products and services, service order situations | Assistência técnica |

## Troubleshooting

| Error or symptom | What it means | What to do |
| :- | :- | :- |
| "M8 refused the login of this source" | The tenant, username, password or establishment ID is wrong, or the user is blocked. The message includes M8's own reason. | Sign in to M8 with the same values to confirm them, fix the source configuration and run again. |
| "M8 says the user has no permission to read these tables" | The M8 user has no access to that area. | Give the user access to the area named in the message, or deselect those tables. |
| "M8 answered 'not found' for these tables" | The module may not be enabled for your company in M8. | If you use the module, contact Nekt support; otherwise deselect those tables. |
| The first run of a line table takes a long time | The first run reads the lines of every document issued since the Start Date, one document at a time. | Wait for the first run to finish: later runs read only new, changed and recent documents. Deselect the line tables you don't need. |
| "M8 returned no documents for these tables although the previous run read some" | A document list that had documents came back empty, so the document table and its line tables were not emptied. | Check in M8 that the documents still exist. If they were really deleted, run a Full sync of the source to accept the empty tables. |
| A document shows lines that were deleted in M8 | Line tables are incremental and keep removed lines with an older `linhas_lidas_em`. | Filter the current lines as shown in [How data is synced](#how-data-is-synced). |
| A document older than the Start Date is missing | Documents are read from their issue date on. | Move the Start Date back. |

## Skills for agents

<Snippet file="agent-skills-intro.mdx" />

> [card] [Download M8 Sistemas skills file](https://docs.nekt.com/sources/m8-sistemas.md)
>
> M8 Sistemas connector documentation as plain markdown, for use in AI agent contexts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.