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

# Eccosys as a data source

> Bring your Eccosys ERP orders, items, products, stock, NF-e invoices, accounts receivable and payable, customers and suppliers to Nekt.

Eccosys is a Brazilian ERP for e-commerce that centralizes orders from the online store and marketplaces, products, stock, invoicing (NF-e) and finance. This connector reads your account through the Eccosys API and brings your sales orders with their items and current status, products, stock levels and movements, invoices with their items, accounts receivable and payable, cash entries, customers, suppliers and the main reference lists.

> [!NOTE]
>
> The connector only reads data. It never creates, changes or deletes anything in Eccosys.

## Configuring Eccosys 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 Eccosys option from the list of connectors.

Click **Next** and you'll be prompted to add your access.

### 1. Add account access

The connector uses your Eccosys **environment name** and an **API token**:

**1. Find your environment name**

It is the part before `.eccosys.com.br` in the address you use to open Eccosys. For `https://minhaloja.eccosys.com.br`, the environment is `minhaloja`.

**2. Get an API token**

Eccosys gives API keys according to your plan, and more can be added from its add-ons store. Use a key only for Nekt: the request limit of your plan is counted per key and shared by every tool that uses it. Eccosys explains how to get the credentials in the authentication section of its [API documentation](https://documenter.getpostman.com/view/3495554/7LuaJmE).

The following configurations are available:

* **Environment**: The name of your Eccosys environment (you can also paste the full address).
* **API Token**: The Eccosys API key.
* **Start Date**: Earliest date read on the first sync and on full syncs: orders by order date, invoices by emission date, accounts by due and settlement date, stock movements and cash entries by date. Products, customers, suppliers, stock levels and the reference lists are always read in full.
* **Lookback Days** (advanced, default 30): Days before the previous sync that every sync reads again, so orders, invoices and accounts that changed (status, payment, cancellation) are updated. Eccosys does not tell which records changed, so this is how changes reach your tables.
* **Items Lookback Days** (advanced, default 3): Order and invoice item lines take one request per order or invoice, so a regular sync reads them only for orders and invoices of these last days. The first sync and full syncs read all of them.
* **Requests per Minute** (advanced, default 55): How many requests per minute the connector makes. Your plan allows 60 (Essencial/Básico), 80 (Profissional/Avançado), 120 (Performance/Master) or 200 (Enterprise/PRO) per key. The default 55 leaves some room on the smallest plan; keep room if other tools use the same key.

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.

> [!WARNING]
>
> Keep **Order items** and **Invoice items** as Incremental. Set to Full table, they make every sync read all orders or invoices since the start date again, one request per order or invoice. Setting **Orders** or **Invoices** to Full table does not have this cost: their item lines still follow their own last sync (plus the open orders and invoices of the last **Lookback Days**).

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. For Eccosys we recommend a monthly full sync: it updates orders, invoices and accounts that changed after **Lookback Days** (for example, an old installment that was cancelled, or an account entered late with an old due date that is still open), stock movements and cash entries posted with an older date, and the items of closed orders edited later.

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.

> [!NOTE]
>
> The first sync reads the whole history since the start date and the item lines of every order and invoice, one request each. On the Essencial/Básico plan (60 requests per minute), 10,000 orders take about three hours for their items alone. Choose a recent start date for the first sync, or raise **Requests per Minute** if your plan allows more. Regular syncs read only the last days.

> [!NOTE]
>
> If the token cannot read some data in Eccosys (access denied), the tables that need it are skipped with a message and the other tables keep syncing. A refused token or a wrong environment name stops the sync with a message saying what to check. If only the item lines are refused, the orders and invoices still sync and the next sync reads the lines it missed.

## Fields by stream

> [!NOTE]
>
> Nested data (addresses, installments, attributes, shipping methods, financial documents) arrives as JSON text in one column. Every table also has an `extra_fields` column with any field Eccosys sends that has no column of its own. Dates without a time are kept as dates; dates with a time are converted from Brasília time to UTC. `sync_window_end` is a technical column used by incremental syncs, not an Eccosys field.

### Sales

> [accordion] Orders
>
> Sales orders with customer, totals, shipping, logistics and status. Read by order date; every sync reads the last **Lookback Days** again to update status and payment changes, plus every order created in Eccosys since the previous sync whatever its order date (imported or backdated orders). Delivery address, installments and event history come as JSON when Eccosys sends them.
>
> Table: `orders` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the order. |
> | `numero_pedido` | String | Order number shown in Eccosys (not unique on its own: two orders can share it). |
> | `id_contato` | Integer | Identifier of the customer (see the customers table). |
> | `data` | Date | Order date (the date the orders are filtered by). |
> | `dt_criacao_venda` | Datetime | When the order was created in Eccosys (UTC). |
> | `situacao` | Integer | Order status code: -1 awaiting payment, 0 open, 1 fulfilled, 2 cancelled, 3 ready for picking, 4 payment under review. |
> | `situacao_secundaria` | Integer | Secondary status code of the order in Eccosys. |
> | `situacao_descricao` | String | Description of the order status. |
> | `status_alterado` | String | Flag Eccosys sets when the order status changed (S/N). |
> | `desconto` | String | Total discount of the order, as Eccosys writes it (an amount or a percentage). |
> | `condicao` | String | Payment terms. |
> | `observacoes` | String | Notes on the order. |
> | `observacao_interna` | String | Internal notes on the order. |
> | `total_produtos` | Number | Total of the products. |
> | `total_venda` | Number | Total of the sale. |
> | `frete` | Number | Shipping charged. |
> | `valor_ipi` | Number | IPI tax amount. |
> | `valor_st` | Number | ICMS tax substitution (ST) amount. |
> | `id_origem` | Integer | Identifier of the quote the order came from. |
> | `id_pedido_origem` | Integer | Identifier of the original order (partial sales). |
> | `tipo_pagamento` | String | Payment type. |
> | `data_prevista` | Date | Expected delivery date. |
> | `data_faturamento` | Date | Invoicing date. |
> | `data_pagamento` | Date | Payment date. |
> | `data_entrega` | Datetime | Delivery date (UTC). |
> | `data_envio_logistica` | Datetime | When the order was sent to logistics (UTC). |
> | `data_recebimento_logistica` | Datetime | When logistics confirmed receiving the order (UTC). |
> | `data_liberacao_separacao` | Datetime | When the order was released for picking (UTC). |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `id_categoria` | Integer | Identifier of the order category. |
> | `primeira_compra` | String | Whether this is the customer's first purchase. |
> | `numero_da_ordem_de_compra` | String | Order identifier in the online store or marketplace. |
> | `id_nota_fiscal_ref` | Integer | Identifier of the related invoice (NF-e). |
> | `numero_nota_fiscal` | String | Number of the invoice (NF-e) of the order. |
> | `transportador` | String | Carrier name. |
> | `frete_por_conta` | String | Who pays the shipping (R sender, D recipient, T third party, S none). |
> | `forma_frete` | Integer | Identifier of the shipping method. |
> | `opc_endereco_diferente` | String | Whether the delivery address differs from the customer's (S/N). |
> | `payment_order_id` | String | Identifier of the order at the payment gateway. |
> | `codigo_rastreamento` | String | Correios tracking code. |
> | `data_codigo_rastreamento` | Datetime | When the tracking code was generated (UTC). |
> | `rastreamento_concluido` | String | Whether tracking is complete (S/N). |
> | `picking_realizado` | String | Whether picking was done (S/N). |
> | `qtd_volumes` | Integer | Number of packages. |
> | `peso_liquido` | Number | Net weight. |
> | `peso_bruto` | Number | Gross weight. |
> | `peso_transportadora` | Number | Gross weight plus packaging, as sent to the carrier. |
> | `especie_volume` | String | Kind of package. |
> | `aviso_recebimento` | String | Whether a delivery receipt (AR) was requested (S/N). |
> | `mao_propria` | String | Whether own-hands delivery (MP) was requested (S/N). |
> | `possui_valor_declarado` | String | Whether the shipment has a declared value (S/N). |
> | `valor_declarado` | Number | Declared value of the shipment. |
> | `sync_logistica` | Integer | Whether the order was sent to logistics. |
> | `confirmacao_logistica` | String | Whether logistics confirmed the order (S/N). |
> | `tipo_objeto` | String | Kind of shipped object. |
> | `dimensao_diametro` | Number | Package diameter. |
> | `dimensao_altura` | Number | Package height. |
> | `dimensao_largura` | Number | Package width. |
> | `dimensao_comprimento` | Number | Package length. |
> | `id_loja_virtual` | Integer | Identifier of the online store (multi-store accounts). |
> | `service_platform_origin` | String | Service and platform the order came from. |
> | `pedido_de_servico` | Integer | Whether this is a service order (1) or not (0). |
> | `id_marketplace_integrado` | String | Identifier of the sales channel. |
> | `id_marketplace_pedido_master` | String | Free field holding the order identifier in the marketplace. |
> | `canal_de_venda` | String | Sales channel. |
> | `id_deposito` | Integer | Identifier of the warehouse of the sale. |
> | `pedido_coletado` | String | Whether the order was collected by the carrier. |
> | `outro_endereco` | String | Delivery address when it differs from the customer's (JSON object). |
> | `parcelas` | String | Payment installments of the order (JSON array). |
> | `ocorrencias` | String | History of the order's events (JSON array). |
> | `categoria` | String | Category of the order (JSON object). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Order items
>
> Item lines of the orders. Eccosys needs one request per order, so a regular sync reads the lines of the orders dated in the **Items Lookback Days** before the last sync that read lines and of every order still open (awaiting payment, open, ready for picking, payment under review) dated within **Lookback Days**; the first sync and a full sync read them for every order. Lines removed from an order stay in the table with an older `sync_window_end`: the current lines of an order are those with the greatest `sync_window_end` among the lines with its `id_venda`. An order left with no lines at all keeps its old lines; compare their sum with `total_produtos` in `orders` when that matters.
>
> Table: `order_items` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the item line. |
> | `id_venda` | Integer | Identifier of the order the line belongs to. |
> | `id_produto` | Integer | Identifier of the product (see the products table). |
> | `codigo` | String | Product code (SKU). |
> | `descricao` | String | Product description on the line. |
> | `gtin` | String | GTIN/EAN of the product. |
> | `unidade` | String | Unit of measure. |
> | `quantidade` | Number | Quantity. |
> | `valor` | Number | Unit price. |
> | `preco_lista` | Number | List price. |
> | `desconto_item` | Number | Discount on the line. |
> | `valor_desconto` | Number | Discount amount of the line. |
> | `desconto_adm` | Number | Administrative discount. |
> | `valor_com_impostos` | Number | Unit price including taxes. |
> | `valor_frete` | Number | Shipping apportioned to the line. |
> | `valor_total_ipi` | Number | Total IPI tax of the line. |
> | `valor_total_icmsst` | Number | Total ICMS tax substitution (ST) of the line. |
> | `base_comissao` | Number | Commission base. |
> | `alq_comissao` | Number | Commission rate (%). |
> | `vlr_comissao` | Number | Commission amount. |
> | `item_bonificacao` | String | Whether the line is a bonus (free) item (S/N). |
> | `id_lista_preco` | Integer | Identifier of the price list. |
> | `observacao` | String | Notes on the line. |
> | `codigo_cupom` | String | Fiscal coupon code. |
> | `unidade_cupom` | String | Fiscal coupon unit. |
> | `ippt_cupom` | String | Fiscal coupon IPPT. |
> | `item_cancelado_cupom` | String | Whether the line was cancelled on the fiscal coupon. |
> | `num_item_cupom` | String | Line number on the fiscal coupon. |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Order statuses
>
> The current status of every order of the account, whatever its age, read in one request on every sync. Join it with `orders` on `id` for the latest status of orders older than the lookback.
>
> Table: `order_statuses` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the order. |
> | `numero_pedido` | String | Order number shown in Eccosys. |
> | `situacao` | Integer | Current order status code: -1 awaiting payment, 0 open, 1 fulfilled, 2 cancelled, 3 ready for picking, 4 payment under review. |
> | `situacao_secundaria` | Integer | Current secondary status code of the order. |
> | `data` | Date | Order date. |
> | `numero_da_ordem_de_compra` | String | Order identifier in the online store or marketplace. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

### Products and stock

> [accordion] Products
>
> Products and SKUs with prices, costs, dimensions, tax codes and attributes. The first sync and a full sync read every product; regular syncs read the products changed since the previous sync.
>
> Table: `products` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the product. |
> | `codigo` | String | Product code (SKU). |
> | `nome` | String | Product name. |
> | `id_produto_master` | Integer | Identifier of the parent product (0 for a parent or a simple product). |
> | `id_unidade_negocio` | Integer | Identifier of the business unit of the product. |
> | `situacao` | String | Status: A active, I inactive, E deleted. |
> | `situacao_venda` | String | Sales status: A active, I inactive. |
> | `situacao_compra` | String | Purchase status: A active, I inactive. |
> | `tipo` | String | Type: P product, S service. |
> | `unidade` | String | Unit of measure (UN, PC, CX...). |
> | `un_por_caixa` | String | Items per package. |
> | `gtin` | String | GTIN/EAN of the product. |
> | `gtin_embalagem` | String | GTIN/EAN of the package. |
> | `cf` | String | NCM (Mercosur tax classification) of the product. |
> | `cest` | String | CEST code (tax substitution). |
> | `origem` | String | Origin of the product for ICMS. |
> | `preco` | Number | Sale price. |
> | `preco_de` | Number | Previous price (list price shown as 'from'). |
> | `preco_custo` | Number | Cost price. |
> | `preco_custo_uss` | Number | Cost price in US dollars. |
> | `custo_medio_bruto_unitario` | Number | Average gross unit cost. |
> | `valor_ipi_fixo` | Number | Fixed IPI amount (products with specific taxation). |
> | `ultimo_icms_st` | Number | Last ICMS ST paid. |
> | `valor_fidelidade` | Number | Loyalty value (%). |
> | `estoque_minimo` | Number | Minimum stock. |
> | `estoque_maximo` | Number | Maximum stock. |
> | `calc_autom_estoque` | String | Whether minimum and maximum stock are computed automatically (S/N). |
> | `dias_cobertura_min` | Integer | Minimum coverage days. |
> | `dias_cobertura_max` | Integer | Maximum coverage days. |
> | `cobertura_ideal` | Integer | Ideal coverage days. |
> | `lote_minimo` | Integer | Units per master box (minimum purchase lot). |
> | `peso` | Number | Weight. |
> | `peso_liq` | Number | Net weight (kg). |
> | `peso_bruto` | Number | Gross weight (kg). |
> | `peso_real` | Number | Actual weight. |
> | `comprimento` | Number | Length. |
> | `altura` | Number | Height. |
> | `largura` | Number | Width. |
> | `comprimento_real` | Number | Actual length. |
> | `altura_real` | Number | Actual height. |
> | `largura_real` | Number | Actual width. |
> | `medidas` | String | Measurements. |
> | `codigo_no_fabricante` | String | Manufacturer's product code. |
> | `id_fornecedor` | Integer | Identifier of the supplier. |
> | `localizacao` | String | Location in the warehouse. |
> | `tipo_producao` | String | Production: P own, T third party. |
> | `id_linha_produto` | Integer | Identifier of the product line. |
> | `id_cat_prod` | Integer | Identifier of the product category. |
> | `id_sub_cat_prod` | Integer | Identifier of the product subcategory. |
> | `id_tag_departamento_arvore` | Integer | Department of the product (accounts without multi-category). |
> | `id_tag_categoria_arvore` | Integer | Category of the product (accounts without multi-category). |
> | `id_tag_subcategoria_arvore` | Integer | Subcategory of the product (accounts without multi-category). |
> | `id_tag_marca_arvore` | Integer | Identifier of the brand (see the brands table). |
> | `descricao_complementar` | String | Complementary description. |
> | `descricao_ecommerce` | String | Product description in the online store. |
> | `obs` | String | General notes. |
> | `opc_ecommerce` | String | Whether the product is sold in the online store (S/N). |
> | `opc_estoque_ecommerce` | String | Whether the product is queued for stock updates to the online store (S/N). |
> | `titulo_pagina` | String | Page title in the online store. |
> | `url_ecommerce` | String | URL slug in the online store. |
> | `keyword` | String | Keywords, comma separated. |
> | `metatag_description` | String | Description for search engines. |
> | `adwords_rmk_code` | String | AdWords remarketing code. |
> | `cpgn_code` | String | Campaign code. |
> | `lomadee` | String | Lomadee code. |
> | `foto1` | String | Photo 1. |
> | `foto2` | String | Photo 2. |
> | `foto3` | String | Photo 3. |
> | `foto4` | String | Photo 4. |
> | `produto_alterado` | String | Eccosys flag for changed products, used by store integrations (S/N). |
> | `id_loja_virtual` | Integer | Identifier of the online store (multi-store accounts). |
> | `tempo_producao` | Integer | Production time in days. |
> | `dt_criacao` | Datetime | When the product was created (UTC). |
> | `sped_tipo_item` | String | Item type for SPED (PIS/COFINS). |
> | `tipo_frete` | Integer | Shipping type. |
> | `classe_enquad_ipi` | String | IPI classification class (drinks and cigarettes only). |
> | `cod_lista_servicos` | String | Service list code (services only). |
> | `ipi_codigo_enquadramento` | String | IPI legal classification code. |
> | `codigo_anp` | String | ANP code. |
> | `virtual` | Integer | Sold as cross-docking (1) or not (0). |
> | `drop_shipping` | Integer | Delivered by the supplier, dropshipping (1) or not (0). |
> | `codigo_anvisa` | String | Anvisa code. |
> | `codigo_motivo_isencao_anvisa` | String | Reason for the Anvisa exemption. |
> | `unidade_tributavel` | String | Taxable unit. |
> | `fator_qtde_tributavel` | Number | Taxable quantity factor. |
> | `codigo_gnre` | String | GNRE code. |
> | `atributos` | String | Attributes of the product: id, description and value (JSON array). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Stock levels
>
> Physical and available stock of every product, all warehouses together, as of the sync.
>
> Table: `stock_levels` · Primary key: `id_produto` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id_produto` | Integer | Identifier of the product (see the products table). |
> | `codigo` | String | Product code (SKU). |
> | `nome` | String | Product name. |
> | `estoque_real` | Number | Physical stock (quantity on hand). |
> | `estoque_disponivel` | Number | Available stock (on hand minus reserved). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Stock levels by warehouse
>
> Physical and available stock of every product in each warehouse, as of the sync.
>
> Table: `stock_levels_by_warehouse` · Primary key: `id_deposito`, `id_produto` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id_deposito` | Integer | Identifier of the warehouse the quantities are of (see the warehouses table). |
> | `id_produto` | Integer | Identifier of the product (see the products table). |
> | `codigo` | String | Product code (SKU). |
> | `nome` | String | Product name. |
> | `estoque_real` | Number | Physical stock (quantity on hand). |
> | `estoque_disponivel` | Number | Available stock (on hand minus reserved). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Stock movements
>
> Every stock entry (in, out, balance) with quantity, price and cost: the stock ledger, read by entry date; every sync reads the last **Lookback Days** again.
>
> Table: `stock_movements` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the stock entry. |
> | `id_produto` | Integer | Identifier of the product. |
> | `id_deposito` | Integer | Identifier of the warehouse. |
> | `data` | Datetime | When the entry was posted (UTC); the date the ledger is filtered by. |
> | `quantidade` | Number | Quantity of the entry (negative for outgoing). |
> | `preco` | Number | Product price on the entry. |
> | `custo_lancamento` | Number | Cost price of the entry. |
> | `custo_medio_bruto_unitario` | Number | Average gross unit cost of the product. |
> | `es` | String | Kind of entry: E in, S out, B balance. |
> | `tipo_entrada` | String | Entry type. |
> | `operacao` | String | Operation. |
> | `obs` | String | Notes. |
> | `id_origem` | Integer | Identifier of the document the entry came from (order, invoice...). |
> | `id_lote` | Integer | Identifier of the product lot. |
> | `id_contato` | Integer | Identifier of the contact. |
> | `consignacao` | String | Whether the entry is consignment (S/N). |
> | `id_conferencia` | Integer | Identifier of the stock check. |
> | `usuario` | String | User who posted the entry. |
> | `origem` | String | Origin of the entry (sale or invoice). |
> | `localizacoes` | String | Warehouse locations of the entry (JSON array). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

### Invoices (NF-e)

> [accordion] Invoices
>
> Outgoing and incoming product invoices (NF-e) of the main company and of every business unit, with recipient, totals and taxes. Read by emission date; every sync reads the last **Lookback Days** again to update status changes such as authorization and cancellation, plus the incoming invoices entered since the previous sync whatever their emission date.
>
> Table: `invoices` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the invoice. |
> | `numero` | String | Invoice number. |
> | `serie` | String | Invoice series. |
> | `chave_acesso` | String | NF-e access key (44 digits). |
> | `tipo` | String | Invoice type: S outgoing, E incoming. |
> | `nota_tipo` | String | Kind of invoice. |
> | `finalidade` | Integer | Purpose of the NF-e: 1 normal, 2 complementary, 3 adjustment, 4 return. |
> | `situacao` | Integer | Status: 1 pending, 2 issued, 3 cancelled, 4 sent (awaiting receipt), 5 rejected, 6 authorised, 7 DANFE issued, 8 registered, 9 sent (awaiting protocol), 10 denied. |
> | `id_empresa` | Integer | Identifier of the company. |
> | `id_unidade_negocio` | Integer | Identifier of the business unit (0 = the main company). |
> | `id_contato` | Integer | Identifier of the customer or supplier. |
> | `id_tipo_nota` | Integer | Identifier of the fiscal operation. |
> | `id_origem` | Integer | Identifier of the document the invoice came from (the order). |
> | `contato` | String | Name of the customer or supplier. |
> | `cnpj` | String | CNPJ or CPF of the customer or supplier. |
> | `identificador_estrangeiro` | String | Identifier of a foreign recipient. |
> | `ie` | String | State registration (IE) of the recipient. |
> | `identificador_ie` | String | ICMS taxpayer indicator of the recipient. |
> | `tipo_pessoa` | String | Kind of person: F individual, J company, E foreign. |
> | `email` | String | Email of the recipient. |
> | `fone` | String | Phone of the recipient. |
> | `endereco` | String | Address of the recipient. |
> | `endereco_nro` | String | Address number. |
> | `complemento` | String | Address complement. |
> | `bairro` | String | District. |
> | `cep` | String | Postal code (CEP). |
> | `id_municipio` | Integer | IBGE code of the city. |
> | `municipio` | String | City. |
> | `uf` | String | State (UF). |
> | `id_pais` | Integer | Identifier of the country. |
> | `nome_pais` | String | Country. |
> | `cfop` | String | CFOP of the invoice. |
> | `natureza` | String | Nature of the operation. |
> | `cfop_servicos` | String | CFOP of the services. |
> | `natureza_servicos` | String | Nature of the operation of the services. |
> | `data_emissao` | Date | Emission date (the date invoices are filtered by). |
> | `dt_emissao_danfe` | Datetime | When the DANFE was issued (UTC). |
> | `data_saida_entrada` | Date | Exit or entry date of the goods. |
> | `hora_saida_entrada` | String | Exit or entry time of the goods. |
> | `data_hora_envio` | Datetime | When the NF-e was sent to SEFAZ (UTC). |
> | `numero_protocolo` | String | SEFAZ authorisation protocol number. |
> | `tipo_ambiente` | Integer | SEFAZ environment: 1 production, 2 homologation. |
> | `valor_produtos` | Number | Total of the products. |
> | `valor_nota` | Number | Invoice total. |
> | `total_faturado` | Number | Total invoiced. |
> | `valor_servicos` | Number | Total of the services. |
> | `frete` | Number | Shipping. |
> | `seguro` | Number | Insurance. |
> | `outras_despesas` | Number | Other expenses. |
> | `desconto` | String | Discount, as Eccosys writes it. |
> | `tipo_desconto` | String | Kind of discount. |
> | `valor_desconto` | Number | Discount amount. |
> | `base_icms` | Number | ICMS base. |
> | `valor_icms` | Number | ICMS amount. |
> | `base_icms_subst` | Number | ICMS tax substitution (ST) base. |
> | `valor_icms_subst` | Number | ICMS tax substitution (ST) amount. |
> | `valor_ipi` | Number | IPI amount. |
> | `valor_ii` | Number | Import tax (II) amount. |
> | `base_iss` | Number | ISS base. |
> | `base_calculo_iss` | Number | ISS calculation base. |
> | `percentual_iss` | Number | ISS rate (%). |
> | `valor_iss` | Number | ISS amount. |
> | `valor_issqn` | Number | ISSQN amount. |
> | `valor_funrural` | Number | Funrural amount. |
> | `simples` | String | Whether the issuer is under Simples Nacional (S/N). |
> | `alq_simples` | Number | Simples Nacional rate (%). |
> | `valor_simples` | Number | Simples Nacional credit amount. |
> | `valor_ret_pis` | Number | Withheld PIS. |
> | `valor_ret_cofins` | Number | Withheld COFINS. |
> | `valor_ret_csll` | Number | Withheld CSLL. |
> | `valor_ret_base_ir` | Number | Withheld income tax base. |
> | `valor_ret_ir` | Number | Withheld income tax. |
> | `valor_aproximado_impostos_total` | Number | Approximate total taxes (consumer transparency law). |
> | `valor_total_icms_partilha_destino` | Number | ICMS sharing, destination state (DIFAL). |
> | `valor_total_icms_partilha_origem` | Number | ICMS sharing, origin state (DIFAL). |
> | `percentual_icms_partilha_destino` | Number | ICMS sharing rate of the destination state (%). |
> | `valor_total_icmsfcp_destino` | Number | Poverty fund (FCP) of the destination state. |
> | `valor_total_fcp` | Number | Poverty fund (FCP) total. |
> | `total_ipi_devolvido` | Number | Returned IPI total. |
> | `crt` | Integer | Tax regime code (CRT) of the issuer. |
> | `id_categoria` | Integer | Identifier of the category. |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `pedidos` | String | Orders of the invoice. |
> | `representante` | String | Sales representative. |
> | `portador` | String | Bearer (bank). |
> | `condicao` | String | Payment terms. |
> | `tipo_pagamento` | String | Payment type. |
> | `obs_sistema` | String | Notes written by Eccosys. |
> | `observacoes` | String | Notes. |
> | `transportador` | String | Carrier. |
> | `cnpj_transportador` | String | CNPJ of the carrier. |
> | `frete_por_conta` | String | Who pays the shipping (R sender, D recipient, T third party, S none). |
> | `forma_frete` | Integer | Identifier of the shipping method. |
> | `codigo_rastreamento` | String | Tracking code. |
> | `data_codigo_rastreamento` | Datetime | When the tracking code was generated (UTC). |
> | `qtd_volumes` | Integer | Number of packages. |
> | `especie` | String | Kind of packages. |
> | `marca` | String | Brand of the packages. |
> | `peso_bruto` | Number | Gross weight. |
> | `peso_liquido` | Number | Net weight. |
> | `peso_transportadora` | Number | Weight sent to the carrier. |
> | `valor_declarado` | Number | Declared value. |
> | `id_deposito` | Integer | Identifier of the warehouse. |
> | `id_ordem_coleta` | Integer | Identifier of the collection order. |
> | `picking_realizado` | String | Whether picking was done (S/N). |
> | `confirmacao_logistica` | String | Whether logistics confirmed (S/N). |
> | `integrado_logistica` | String | Whether the invoice was sent to logistics. |
> | `id_magento` | String | Identifier in Magento. |
> | `outro_endereco` | String | Delivery address when it differs from the recipient's (JSON object). |
> | `link_url` | String | Link to the invoice. |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Invoice items
>
> Item lines of the invoices, with taxes. One request per invoice, so a regular sync reads the lines of the invoices issued in the **Items Lookback Days** before the last sync that read lines and of every invoice not final yet (pending, awaiting receipt or protocol, rejected) issued within **Lookback Days**; the current lines of an invoice are those with the greatest `sync_window_end` among the lines with its `id_nota_fiscal`; the first sync and a full sync read them for every invoice.
>
> Table: `invoice_items` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the invoice line. |
> | `id_nota_fiscal` | Integer | Identifier of the invoice the line belongs to. |
> | `id_produto` | Integer | Identifier of the product. |
> | `codigo` | String | Product code (SKU). |
> | `descricao` | String | Product description. |
> | `descricao_complementar` | String | Complementary description. |
> | `gtin` | String | GTIN/EAN of the product. |
> | `gtin_embalagem` | String | GTIN/EAN of the package. |
> | `cf` | String | NCM of the product. |
> | `cest` | String | CEST code. |
> | `codigo_anp` | String | ANP code. |
> | `cfop` | String | CFOP of the line. |
> | `id_operacao_fiscal` | Integer | Identifier of the fiscal operation. |
> | `origem` | String | Origin of the product for ICMS. |
> | `tipo` | String | Type: P product, S service. |
> | `un` | String | Unit of measure. |
> | `quantidade` | Number | Quantity. |
> | `valor_unitario` | Number | Unit price. |
> | `valor_total` | Number | Line total. |
> | `preco_lista` | Number | List price. |
> | `valor_desconto` | Number | Discount. |
> | `valor_frete` | Number | Shipping apportioned to the line. |
> | `valor_seguro` | Number | Insurance apportioned to the line. |
> | `outras_despesas` | Number | Other expenses. |
> | `icms` | Number | ICMS rate (%). |
> | `base_icms` | Number | ICMS base. |
> | `valor_icms` | Number | ICMS amount. |
> | `tributacao_icms` | String | ICMS tax situation code. |
> | `ipi` | Number | IPI rate (%). |
> | `base_ipi` | Number | IPI base. |
> | `valor_ipi` | Number | IPI amount (unit). |
> | `valor_ipi_total` | Number | IPI amount of the line. |
> | `valor_ipi_fixo` | Number | Fixed IPI amount. |
> | `tributacao_ipi` | String | IPI tax situation code. |
> | `consumidor_final` | String | Whether the recipient is the end consumer (S/N). |
> | `faturada` | String | Whether the line is invoiced (S/N). |
> | `soma_impostos_total_nota` | String | Whether the taxes add to the invoice total (S/N). |
> | `valor_aproximado_impostos` | Number | Approximate taxes (consumer transparency law). |
> | `imposto_retido` | String | Whether taxes are withheld (S/N). |
> | `ret_base_ir` | Number | Withheld income tax base. |
> | `ret_valor_ir` | Number | Withheld income tax. |
> | `ret_aliquota_ir` | Number | Withheld income tax rate (%). |
> | `ret_valor_csll` | Number | Withheld CSLL. |
> | `ret_aliquota_csll` | Number | Withheld CSLL rate (%). |
> | `alq_funrural` | Number | Funrural rate (%). |
> | `valor_funrural` | Number | Funrural amount. |
> | `base_comissao` | Number | Commission base. |
> | `alq_comissao` | Number | Commission rate (%). |
> | `vlr_comissao` | Number | Commission amount. |
> | `peso_liq` | Number | Net weight. |
> | `peso_bruto` | Number | Gross weight. |
> | `equivalente_tipo` | String | Equivalent unit kind. |
> | `equivalente_un` | String | Equivalent unit. |
> | `equivalente_quantidade` | Number | Equivalent quantity. |
> | `codigo_no_fabricante` | String | Manufacturer's product code. |
> | `pv_custo_unitario` | Number | Pricing: unit cost. |
> | `pv_markup` | Number | Pricing: markup. |
> | `pv_preco_venda` | Number | Pricing: sale price. |
> | `pv_frete` | Number | Pricing: shipping. |
> | `sped_tipo_item` | String | Item type for SPED. |
> | `numero_lote` | String | Lot number. |
> | `data_fabricacao` | Date | Manufacturing date of the lot. |
> | `data_validade` | Date | Expiry date of the lot. |
> | `numero_pedido_compra` | String | Purchase order number. |
> | `percentual_devolvido` | Number | Returned percentage. |
> | `obs` | String | Notes. |
> | `impostos` | String | Taxes of the line, when Eccosys details them (JSON). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

### Finance

> [accordion] Accounts receivable
>
> Installments to receive with due date, settlement date, open balance and status. Every sync reads the installments due from **Lookback Days** before the previous sync up to five years ahead, plus those settled since then, so open installments always show their current status.
>
> Table: `accounts_receivable` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the account (instalment). |
> | `receberpagar` | String | R receivable, P payable. |
> | `situacao` | String | Status: aberto (open), pago (paid), parcial (partially paid), cancelada (cancelled). |
> | `vencimento` | Date | Due date. |
> | `liquidacao` | Date | Settlement (payment) date. |
> | `saldo` | Number | Open balance of the account. |
> | `valor_na_moeda` | Number | Amount in the account's currency. |
> | `id_moeda` | Integer | Identifier of the currency (0 = real). |
> | `id_documento` | Integer | Identifier of the financial document the account belongs to. |
> | `id_categoria` | Integer | Identifier of the income or expense category (see financial\_categories). |
> | `id_origem` | Integer | Identifier of the document the account came from (order, invoice...). |
> | `id_portador` | Integer | Identifier of the bearer (bank account). |
> | `portador` | String | Bearer (bank). |
> | `nro_banco` | String | Bank number. |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `nro_documento` | String | Document number. |
> | `nro_duplicata` | String | Trade bill (duplicata) number. |
> | `serie` | String | Series. |
> | `sequencia` | Integer | Instalment sequence. |
> | `id_remessa` | Integer | Identifier of the bank remittance. |
> | `id_conta_recorrente` | Integer | Identifier of the recurring account. |
> | `cod_barras` | String | Bank slip bar code. |
> | `nro_banco_remessa_pagamento` | String | Payment remittance: bank number. |
> | `tipo_remessa_pagamento` | String | Payment remittance: type. |
> | `agencia_remessa_pagamento` | String | Payment remittance: branch. |
> | `agencia_dv_remessa_pagamento` | String | Payment remittance: branch check digit. |
> | `conta_remessa_pagamento` | String | Payment remittance: account. |
> | `conta_dv_remessa_pagamento` | String | Payment remittance: account check digit. |
> | `especie_remessa_pagamento` | String | Payment remittance: kind. |
> | `carteira_remessa_pagamento` | String | Payment remittance: portfolio. |
> | `dv_barras_remessa_pagamento` | String | Payment remittance: bar code check digit. |
> | `campo_livre_remessa_pagamento` | String | Payment remittance: free field. |
> | `documento` | String | The financial document of the account with its contact, when Eccosys sends it (JSON object). |
> | `documento_data` | Date | Date of the financial document (from documento, when Eccosys sends it). |
> | `documento_valor` | Number | Amount of the financial document (from documento, when Eccosys sends it). |
> | `documento_id_contato` | Integer | Identifier of the customer or supplier of the document (from documento). |
> | `documento_tipo_doc` | String | Kind of the financial document (from documento). |
> | `documento_observacoes` | String | Notes of the financial document (from documento). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Accounts payable
>
> Installments to pay, read the same way as accounts receivable.
>
> Table: `accounts_payable` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the account (instalment). |
> | `receberpagar` | String | R receivable, P payable. |
> | `situacao` | String | Status: aberto (open), pago (paid), parcial (partially paid), cancelada (cancelled). |
> | `vencimento` | Date | Due date. |
> | `liquidacao` | Date | Settlement (payment) date. |
> | `saldo` | Number | Open balance of the account. |
> | `valor_na_moeda` | Number | Amount in the account's currency. |
> | `id_moeda` | Integer | Identifier of the currency (0 = real). |
> | `id_documento` | Integer | Identifier of the financial document the account belongs to. |
> | `id_categoria` | Integer | Identifier of the income or expense category (see financial\_categories). |
> | `id_origem` | Integer | Identifier of the document the account came from (order, invoice...). |
> | `id_portador` | Integer | Identifier of the bearer (bank account). |
> | `portador` | String | Bearer (bank). |
> | `nro_banco` | String | Bank number. |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `nro_documento` | String | Document number. |
> | `nro_duplicata` | String | Trade bill (duplicata) number. |
> | `serie` | String | Series. |
> | `sequencia` | Integer | Instalment sequence. |
> | `id_remessa` | Integer | Identifier of the bank remittance. |
> | `id_conta_recorrente` | Integer | Identifier of the recurring account. |
> | `cod_barras` | String | Bank slip bar code. |
> | `nro_banco_remessa_pagamento` | String | Payment remittance: bank number. |
> | `tipo_remessa_pagamento` | String | Payment remittance: type. |
> | `agencia_remessa_pagamento` | String | Payment remittance: branch. |
> | `agencia_dv_remessa_pagamento` | String | Payment remittance: branch check digit. |
> | `conta_remessa_pagamento` | String | Payment remittance: account. |
> | `conta_dv_remessa_pagamento` | String | Payment remittance: account check digit. |
> | `especie_remessa_pagamento` | String | Payment remittance: kind. |
> | `carteira_remessa_pagamento` | String | Payment remittance: portfolio. |
> | `dv_barras_remessa_pagamento` | String | Payment remittance: bar code check digit. |
> | `campo_livre_remessa_pagamento` | String | Payment remittance: free field. |
> | `documento` | String | The financial document of the account with its contact, when Eccosys sends it (JSON object). |
> | `documento_data` | Date | Date of the financial document (from documento, when Eccosys sends it). |
> | `documento_valor` | Number | Amount of the financial document (from documento, when Eccosys sends it). |
> | `documento_id_contato` | Integer | Identifier of the customer or supplier of the document (from documento). |
> | `documento_tipo_doc` | String | Kind of the financial document (from documento). |
> | `documento_observacoes` | String | Notes of the financial document (from documento). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Cash entries
>
> Cash and bank entries (credits and debits) with their financial document.
>
> Table: `cash_entries` · Primary key: `id` · Sync: Incremental (`sync_window_end`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the entry. |
> | `deb_cred` | String | C credit, D debit. |
> | `saldo` | String | Whether the entry is a balance entry (S/N). |
> | `situacao` | String | Status of the entry. |
> | `id_categoria` | Integer | Identifier of the income or expense category. |
> | `id_conta_contabil` | Integer | Identifier of the bearer (bank account). |
> | `id_documento` | Integer | Identifier of the financial document. |
> | `id_origem` | Integer | Identifier of the document the entry came from. |
> | `id_contato` | Integer | Identifier of the contact. |
> | `transferencia` | String | Transfer marker. |
> | `passivo_ativo` | String | A asset, P liability. |
> | `documento` | String | The financial document of the entry with its contact (JSON object). |
> | `documento_data` | Date | Date of the financial document (from documento, when Eccosys sends it). |
> | `documento_valor` | Number | Amount of the financial document (from documento, when Eccosys sends it). |
> | `documento_id_contato` | Integer | Identifier of the customer or supplier of the document (from documento). |
> | `documento_tipo_doc` | String | Kind of the financial document (from documento). |
> | `documento_observacoes` | String | Notes of the financial document (from documento). |
> | `sync_window_end` | Date | Last day (Brasilia date) of the date window of the Eccosys query this record was read in; the incremental replication key. Not an Eccosys field: Eccosys does not return when a record last changed. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Financial categories
>
> Income and expense categories.
>
> Table: `financial_categories` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the category. |
> | `descricao` | String | Category description. |
> | `codigo` | String | Category code. |
> | `tipo` | String | Kind of category (fixo, variavel, outro). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

### Customers, suppliers and lists

> [accordion] Customers
>
> Customers with documents, contact details and addresses, read in full on every sync.
>
> Table: `customers` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the contact. |
> | `codigo` | String | Contact code. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `nome` | String | Name or company name. |
> | `fantasia` | String | Trade name. |
> | `tipo` | String | Kind of person: F individual, J company, E foreign. |
> | `cnpj` | String | CNPJ or CPF. |
> | `ie` | String | State registration (IE). |
> | `identificador_ie` | String | ICMS taxpayer indicator. |
> | `rg` | String | RG (identity document). |
> | `identificador_estrangeiro` | String | Identifier of a foreign contact. |
> | `inscricao_suframa` | String | Suframa registration. |
> | `situacao` | String | Status of the contact (A active). |
> | `email` | String | Email. |
> | `email_nfe` | String | Email the NF-e is sent to. |
> | `fone` | String | Phone. |
> | `fax` | String | Fax. |
> | `celular` | String | Mobile phone. |
> | `site` | String | Website. |
> | `endereco` | String | Address. |
> | `endereco_nro` | String | Address number. |
> | `complemento` | String | Address complement. |
> | `bairro` | String | District. |
> | `cep` | String | Postal code (CEP). |
> | `cidade` | String | City. |
> | `uf` | String | State (UF). |
> | `id_municipio` | Integer | IBGE code of the city. |
> | `id_pais` | Integer | Identifier of the country. |
> | `nome_pais` | String | Country. |
> | `obs` | String | Notes. |
> | `contatos` | String | Contact people. |
> | `data_nascimento` | Date | Birth date. |
> | `sexo` | String | Sex. |
> | `estado_civil` | Integer | Marital status code. |
> | `profissao` | String | Profession. |
> | `local_trabalho` | String | Workplace. |
> | `naturalidade` | String | Place of birth. |
> | `nome_pai` | String | Father's name. |
> | `nome_mae` | String | Mother's name. |
> | `cpf_pai` | String | Father's CPF. |
> | `cpf_mae` | String | Mother's CPF. |
> | `id_convenio` | Integer | Identifier of the agreement. |
> | `sigla_convenio` | String | Agreement acronym. |
> | `cor_convenio` | String | Agreement colour. |
> | `ids_atividades` | String | Identifiers of the activities. |
> | `id_usuario` | Integer | Identifier of the user. |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `codigo_no_fornecedor` | String | Reference code. |
> | `tipo_negocio` | String | Business type. |
> | `data_ultima_compra` | Date | Date of the last purchase. |
> | `id_segmento_cliente` | Integer | Identifier of the customer segment. |
> | `limite_credito` | Number | Credit limit available for new orders. |
> | `dados_bancarios_po` | String | Bank details for international purchase orders. |
> | `id_estagio` | Integer | Identifier of the stage. |
> | `descricao_detalhada` | String | Detailed description. |
> | `ecommerce_status` | String | Online store status (S/N). |
> | `ecommerce_client_id` | String | Identifier in the online store. |
> | `prazo_pagamento` | String | Default payment term for purchase orders. |
> | `classificacao_contato` | Integer | Contact classification. |
> | `area_atuacao` | Integer | Area of activity. |
> | `emitir_boleto` | String | Whether bank slips can be issued for this contact (S/N). |
> | `id_faixa_faturamento` | Integer | Identifier of the revenue range. |
> | `registro_ma` | String | MA registration. |
> | `dt_criacao` | Datetime | When the contact was created (UTC). |
> | `data_alteracao` | Datetime | When the contact last changed (UTC), when Eccosys sends it. |
> | `potencial_venda` | String | Sales potential. |
> | `key_account` | String | Key account marker. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Suppliers
>
> Suppliers, read in full on every sync.
>
> Table: `suppliers` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the contact. |
> | `codigo` | String | Contact code. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `nome` | String | Name or company name. |
> | `fantasia` | String | Trade name. |
> | `tipo` | String | Kind of person: F individual, J company, E foreign. |
> | `cnpj` | String | CNPJ or CPF. |
> | `ie` | String | State registration (IE). |
> | `identificador_ie` | String | ICMS taxpayer indicator. |
> | `rg` | String | RG (identity document). |
> | `identificador_estrangeiro` | String | Identifier of a foreign contact. |
> | `inscricao_suframa` | String | Suframa registration. |
> | `situacao` | String | Status of the contact (A active). |
> | `email` | String | Email. |
> | `email_nfe` | String | Email the NF-e is sent to. |
> | `fone` | String | Phone. |
> | `fax` | String | Fax. |
> | `celular` | String | Mobile phone. |
> | `site` | String | Website. |
> | `endereco` | String | Address. |
> | `endereco_nro` | String | Address number. |
> | `complemento` | String | Address complement. |
> | `bairro` | String | District. |
> | `cep` | String | Postal code (CEP). |
> | `cidade` | String | City. |
> | `uf` | String | State (UF). |
> | `id_municipio` | Integer | IBGE code of the city. |
> | `id_pais` | Integer | Identifier of the country. |
> | `nome_pais` | String | Country. |
> | `obs` | String | Notes. |
> | `contatos` | String | Contact people. |
> | `data_nascimento` | Date | Birth date. |
> | `sexo` | String | Sex. |
> | `estado_civil` | Integer | Marital status code. |
> | `profissao` | String | Profession. |
> | `local_trabalho` | String | Workplace. |
> | `naturalidade` | String | Place of birth. |
> | `nome_pai` | String | Father's name. |
> | `nome_mae` | String | Mother's name. |
> | `cpf_pai` | String | Father's CPF. |
> | `cpf_mae` | String | Mother's CPF. |
> | `id_convenio` | Integer | Identifier of the agreement. |
> | `sigla_convenio` | String | Agreement acronym. |
> | `cor_convenio` | String | Agreement colour. |
> | `ids_atividades` | String | Identifiers of the activities. |
> | `id_usuario` | Integer | Identifier of the user. |
> | `id_vendedor` | Integer | Identifier of the salesperson. |
> | `codigo_no_fornecedor` | String | Reference code. |
> | `tipo_negocio` | String | Business type. |
> | `data_ultima_compra` | Date | Date of the last purchase. |
> | `id_segmento_cliente` | Integer | Identifier of the customer segment. |
> | `limite_credito` | Number | Credit limit available for new orders. |
> | `dados_bancarios_po` | String | Bank details for international purchase orders. |
> | `id_estagio` | Integer | Identifier of the stage. |
> | `descricao_detalhada` | String | Detailed description. |
> | `ecommerce_status` | String | Online store status (S/N). |
> | `ecommerce_client_id` | String | Identifier in the online store. |
> | `prazo_pagamento` | String | Default payment term for purchase orders. |
> | `classificacao_contato` | Integer | Contact classification. |
> | `area_atuacao` | Integer | Area of activity. |
> | `emitir_boleto` | String | Whether bank slips can be issued for this contact (S/N). |
> | `id_faixa_faturamento` | Integer | Identifier of the revenue range. |
> | `registro_ma` | String | MA registration. |
> | `dt_criacao` | Datetime | When the contact was created (UTC). |
> | `data_alteracao` | Datetime | When the contact last changed (UTC), when Eccosys sends it. |
> | `potencial_venda` | String | Sales potential. |
> | `key_account` | String | Key account marker. |
> | `id_empresa` | Integer | Identifier of the company. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Warehouses
>
> Warehouses (depósitos), active and deleted.
>
> Table: `warehouses` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the warehouse. |
> | `descricao` | String | Description of the warehouse. |
> | `situacao` | String | Status: A active, E deleted. |
> | `deposito_padrao` | String | Whether this is the default warehouse (S/N). |
> | `desconsiderar_saldo` | String | Whether the warehouse balance is disregarded (S/N). |
> | `deposito_padrao_consignacao` | String | Whether this is the default consignment warehouse (S/N). |
> | `atualizar_custo` | String | Whether entries update the product cost (S/N). |
> | `calcula_custo_medio_bruto` | String | Whether the average gross unit cost is computed (S/N). |
> | `obs` | String | Notes. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Business units
>
> Business units (unidades de negócio). The main company is unit `0` and is not in this list.
>
> Table: `business_units` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the business unit. |
> | `nome` | String | Company name. |
> | `fantasia` | String | Trade name. |
> | `cnpj` | String | CNPJ. |
> | `endereco` | String | Address. |
> | `nro` | String | Address number. |
> | `complemento` | String | Address complement. |
> | `bairro` | String | District. |
> | `cep` | String | Postal code (CEP). |
> | `cidade` | String | City. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Sales channels
>
> Sales channels (online store and marketplaces) with their integration platform.
>
> Table: `sales_channels` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the sales channel. |
> | `descricao` | String | Description of the sales channel. |
> | `id_marketplace` | Integer | Identifier of the marketplace (Eccosys' marketplace table: 0 main store, 3 Mercado Livre...). |
> | `ativo` | String | Whether the channel is active (1) or not (0). |
> | `referencia` | String | Reference of the channel. |
> | `taxa` | Number | Fee of the channel. |
> | `marketplace` | String | Marketplace of the channel: id and name (JSON object). |
> | `plataforma_integrada` | String | Integration platform of the channel: name and platform (JSON object). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Brands
>
> Product brands.
>
> Table: `brands` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the brand. |
> | `nome` | String | Brand name. |
> | `id_departamento` | Integer | Identifier of the department. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `descricao` | String | Description. |
> | `titulo_pagina` | String | Page title. |
> | `keywords` | String | Keywords. |
> | `departamento` | String | Department of the brand (JSON object). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Departments
>
> Product departments, with their categories and subcategories as JSON.
>
> Table: `departments` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the department. |
> | `nome` | String | Department name. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `id_grupo_tag` | Integer | Identifier of the group the department belongs to. |
> | `descricao` | String | Description. |
> | `titulo_pagina` | String | Page title. |
> | `keywords` | String | Keywords. |
> | `categorias` | String | Categories of the department, with their subcategories (JSON array). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Product categories
>
> Product categories, with their subcategories as JSON.
>
> Table: `product_categories` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the category. |
> | `nome` | String | Category name. |
> | `id_departamento` | Integer | Identifier of the department. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `subcategorias` | String | Subcategories of the category (JSON array). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Product subcategories
>
> Product subcategories.
>
> Table: `product_subcategories` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the subcategory. |
> | `nome` | String | Subcategory name. |
> | `id_categoria` | Integer | Identifier of the category. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |

> [accordion] Carriers
>
> Carriers (transportadoras) with their shipping methods as JSON.
>
> Table: `carriers` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Eccosys identifier of the carrier. |
> | `codigo` | String | Carrier code. |
> | `id_externo` | Integer | Identifier on an external platform. |
> | `nome` | String | Company name. |
> | `fantasia` | String | Trade name. |
> | `cnpj` | String | CNPJ. |
> | `ie` | String | State registration (IE). |
> | `situacao` | String | Status (A active). |
> | `email` | String | Email. |
> | `fone` | String | Phone. |
> | `endereco` | String | Address. |
> | `endereco_nro` | String | Address number. |
> | `bairro` | String | District. |
> | `cep` | String | Postal code (CEP). |
> | `cidade` | String | City. |
> | `uf` | String | State (UF). |
> | `obs` | String | Notes. |
> | `formas_de_envio` | String | Shipping methods of the carrier (JSON array). |
> | `extra_fields` | String | Every other key Eccosys returned for this record that has no column of its own, as a JSON object. |


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