Before you start
The Web Service de Saída Padrão is a paid, separately contracted service from Linx. Before configuring the source, confirm with Linx that it is activated for your portal — during activation Linx provides the access key and the group name required below.Configuring Linx Microvix as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Linx Microvix 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:-
Access Key: the
chaveprovided by Linx when the Web Service de Saída Padrão was activated for your portal. It is a unique identifier such as7d73503f-db26-4112-ac66-94033ac4986p. - Group Name: the name of the group registered by Linx at activation. Nekt uses it to list every store (CNPJ) of your group or franchise network.
- Portal ID: only required when your access key serves more than one portal in Microvix.
- Store CNPJs: restrict the extraction to specific stores. Leave it empty to extract every store returned for your group.
-
Start Date: (Default:
2000-01-01) lower bound for the date filters that some Linx methods require. The default covers the full history on the first sync. -
Inventory Date: (Default: the day the sync runs) the date used to read the stock position in the
Product Inventorystream. -
Start Row Version: (Default:
0) the Microvix row version to start reading from on the first sync. Leave it at0to load the full history once. -
Portal-wide Extraction: (Default:
false) reads the whole portal in a single pass for the methods that support it (movements, invoices, sales and purchase orders, cash movements) instead of querying store by store. It is much faster for large chains, but it only covers the portal your access key belongs to — leave it disabled if your group spans more than one portal. -
Interval Between Requests: (Default:
0.2seconds) the pause applied between requests. Lower it only with care, given the traffic warning above. -
Use Acceptance Portal: (Default:
false) connects to the Linx acceptance (homologação) environment instead of production.
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.
Your access key is scoped to the Microvix modules your company contracted. If a selected stream belongs to a module you don’t have, Nekt logs that the table was skipped and continues with the remaining streams.
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.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.How incremental sync works
Microvix does not expose an “updated at” date that can be trusted across all routines. Instead, every record carries atimestamp column, which despite the name is not a date: it is a SQL Server row version, a counter that increases on every database operation.
Nekt uses it exactly as Linx recommends: each extraction asks for the records above the highest row version already retrieved, and stores the new highest value for the next run. This keeps extractions small and avoids re-reading history, which is what protects your integration key from being throttled.
A few streams (Store Groups, Product Inventory, Customer Contacts, Payment Plan Card Brands) carry no row version and are therefore always extracted as full tables.
Streams and Fields
Below you’ll find all available data streams from Linx Microvix and their corresponding fields:Stores and portal structure
Store Groups
Store Groups
Every store (CNPJ) that belongs to the contracted group or franchise network.Source method:
LinxGrupoLojas. Full table sync (this method returns no row version).Primary key: portal, cnpjFields:cnpj- CNPJ (Brazilian tax ID) of the storenome_empresa- Store nameid_empresas_rede- Chain code in Microvixrede- Chain name in Microvixportal- Portal code in Microvixnome_portal- Portal name in Microvixempresa- Company code within the portallojas_proprias- Whether the portal belongs to the chain’s own storesclassificacao_portal- Portal classification
Stores
Stores
Registration data of each store of the portal.Source method:
LinxLojas. Incremental sync on the timestamp row version.Primary key: portal, empresaFields:portal- Portal code in Microvixempresa- Company code in Microvixnome_emp- Trade name of the companyrazao_emp- Legal company namecnpj_emp- CNPJ (Brazilian tax ID) of the storeinscricao_emp- State tax registration numberendereco_emp- Street addressnum_emp- Street number of the addresscomplement_emp- Address complementbairro_emp- Neighbourhoodcep_emp- Postal code (CEP)cidade_emp- Cityestado_emp- State abbreviation (UF)fone_emp- Phone number of the customeremail_emp- Email addresscod_ibge_municipio- IBGE code of the municipalitydata_criacao_emp- Date the company was created in Microvixdata_criacao_portal- Date the portal was created in Microvixsistema_tributacao- Taxation regime of the companyregime_tributario- Tax regime of the companyarea_empresa- Floor area of the store in square metrestimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keysigla_empresa- Short code of the companyid_classe_fiscal- Identifier of the fiscal class attached to the companycentro_distribuicao- Whether the store is a distribution centreinscricao_municipal_emp- Municipal tax registration number of the companycnae_emp- CNAE economic activity code of the companycod_cliente_linx- Linx ERP customer/supplier code of the storetabela_preco_preferencial- Code of the company’s preferred price table in Microvixsubrede- Name of the subchainproduto_disponivel_empresa- Whether the portal differentiates products between companiesid_grupo- Identifier of the group
Sales movements
Movements
Movements
Sales and purchase movements, one row per item of each fiscal invoice or sales ticket.Source method:
LinxMovimento. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, transacao, ordemFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storetransacao- Internal Microvix codeusuario- User that performed the movementdocumento- Fiscal document numberchave_nf- Access key of the fiscal invoice (NF-e)ecf- Fiscal printer (ECF) numbernumero_serie_ecf- Serial number of the fiscal printer (ECF)modelo_nf- Fiscal invoice model codedata_documento- Date the record was generated in Microvixdata_lancamento- Date the fiscal document was postedcodigo_cliente- Customer code in Microvixserie- Series of the documentdesc_cfop- Description of the fiscal CFOPid_cfop- Code of the fiscal CFOPcod_vendedor- Salesperson code in Microvixquantidade- Quantity of the productpreco_custo- Cost price of the productvalor_liquido- Net amount of the productdesconto- Discount applied to the salecst_icms- ICMS tax situation code (CST)cst_pis- PIS tax situation code (CST)cst_cofins- COFINS tax situation code (CST)cst_ipi- IPI tax situation code (CST)valor_icms- ICMS tax amountaliquota_icms- ICMS tax ratebase_icms- ICMS tax base amountvalor_pis- PIS tax amountaliquota_pis- PIS tax ratebase_pis- PIS tax base amountvalor_cofins- COFINS tax amountaliquota_cofins- COFINS tax ratebase_cofins- COFINS tax base amountvalor_icms_st- ICMS ST tax amountaliquota_icms_st- ICMS ST tax ratebase_icms_st- ICMS ST tax base amountvalor_ipi- IPI tax amountaliquota_ipi- IPI tax ratebase_ipi- IPI tax base amountvalor_total- Total amount of the itemforma_dinheiro- Whether the sale was paid in cashtotal_dinheiro- Total amount paid in cashforma_cheque- Whether the sale was paid by chequetotal_cheque- Total amount paid by chequeforma_cartao- Whether the sale was paid by cardtotal_cartao- Total amount paid by cardforma_crediario- Whether the sale was paid with store credit (crediário)total_crediario- Total amount paid with store credit (crediário)forma_convenio- Whether the sale was paid through a corporate agreement (convênio)total_convenio- Total amount paid through a corporate agreement (convênio)frete- Freight amounttipo_transacao- Operation of the movement: E inbound, S outbound, DE inbound return, DS outbound return, N neutral, C receipt-replacing invoicecod_produto- Service order role of the movement: A for service order billing, O for service order consumption write-off, empty to consider only the operationcod_barra- Barcode of the productcancelado- Whether the document is cancelled (S) or valid (N)excluido- Whether the record was deleted (S) or is valid (N)soma_relatorio- Whether the movement uses an operation nature that is excluded from report totalsdeposito- Name of the warehouseobs- Note about the documentpreco_unitario- Unit price of the item at the time of salehora_lancamento- Time the movement was postednatureza_operacao- Description of the operation naturetabela_preco- Code of the price table usednome_tabela_preco- Name of the price tablecod_sefaz_situacao- Status code of the document at SEFAZdesc_sefaz_situacao- Description of the document status at SEFAZprotocolo_aut_nfe- Authorisation protocol of the fiscal invoice for outbound operationsdt_update- Timestamp of the last update of the record in the database, including cancellationsforma_cheque_prazo- Whether the sale was paid by post-dated chequetotal_cheque_prazo- Total amount paid by post-dated chequecod_natureza_operacao- Code of the operation naturepreco_tabela_epoca- Price of the product at the time of sale according to the default price tabledesconto_total_item- Discount amount applied to the itemconferido- Whether the transfer note was checked: S for yes, N for notransacao_pedido_venda- Transaction number of the related sales ordercodigo_modelo_nf- Code of the fiscal invoice modelacrescimo- Surcharge applied to the salemob_checkout- Whether the sale was made through the mobile checkoutaliquota_iss- ISS tax ratebase_iss- ISS tax base amountordem- Sequence of the item within the transaction in the ERPcodigo_rotina_origem- Code of the ERP routine that originated the recordtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keytroco- Change given for the cash paymenttransportador- Code of the carrier registered in Microvixicms_aliquota_desonerado- ICMS exemption tax rateicms_valor_desonerado_item- ICMS exemption amount for the itemempresa- Company code within the portaldesconto_item- Discount applied to the itemaliq_iss- ISS tax rateiss_base_item- Base amount of the itemdespesas- Expense amountseguro_total_item- Total insurance charged to the itemacrescimo_total_item- Total surcharge applied to the itemdespesas_total_item- Total expenses charged to the itemforma_pix- Whether the sale was paid by Pixtotal_pix- Total amount paid by Pixforma_deposito_bancario- Whether the sale was paid by bank deposittotal_deposito_bancario- Total amount paid by bank depositid_venda_produto_b2c- Identifier of the product sale in the B2C channelitem_promocional- Whether the item is part of a promotionacrescimo_item- Surcharge applied to the itemicms_st_antecipado_aliquota- Anticipated ICMS ST tax rateicms_st_antecipado_margem- Anticipated ICMS ST marginicms_st_antecipado_percentual_reducao- Reduction percentage of the anticipated ICMS STicms_st_antecipado_valor_item- Anticipated ICMS ST amount for the itemicms_base_desonerado_item- ICMS exemption base amount for the itemcodigo_status_nfe- Status code of the electronic invoice (NF-e)preco_produto_epoca- Price of the product before any promotional discountficha- Card (ficha) numbernumero_sequencial_pos- Sequential number of the POS terminaldt_insert- Date the record was inserted into the ERP databasecusto_medio_epoca- Average cost of the product at the time the entry was postedconhecimento- Freight bill of lading
Movement Payment Plans
Movement Payment Plans
Payment plans used to settle each movement.Source method:
LinxMovimentoPlanos. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, identificador, planoFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeidentificador- Identifier that groups the records belonging to the same fiscal documentplano- Internal payment plan code in Microvixdesc_plano- Description of the payment plantotal- Total amount settled through the payment planqtde_parcelas- Number of instalmentsindice_plano- Index of the payment plan applied to the movementcod_forma_pgto- Code of the payment methodforma_pgto- Name of the payment methodtipo_transacao- Card payment type: D for debit, C for credittaxa_financeira- Financial fee percentage charged by the card administratorsordem_cartao- Sequence of the card (1, 2, 3, …); only filled for card payment planstimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keyempresa- Company code within the portal
Movement Cards
Movement Cards
Card transactions captured on each sales movement.Source method:
LinxMovimentoCartoes. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, identificador, ordem_cartaoFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecodlojasitef- Sitef store codedata_lancamento- Date the document was postedidentificador- Identifier of the movementcupomfiscal- Fiscal receipt numbercredito_debito- Card transaction type: C for credit, D for debitid_cartao_bandeira- Identifier of the card brand registrydescricao_bandeira- Description of the card brand usedvalor- Amount charged to the cardordem_cartao- Sequence number of the card when several cards are usednsu_host- Host NSU (unique sequential number) of the transactionnsu_sitef- Sitef NSU (unique sequential number) of the transactioncod_autorizacao- Authorisation code of the transactionid_antecipacoes_financeiras- Identifier of the financial advance, when there is onetexto_comprovante- Receipt text printed for the card transactionid_maquineta_pos- Identifier of the card terminal registry (non-TEF)descricao_maquineta- Description given to the card terminalserie_maquineta- Serial number of the card terminaltimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycartao_prepago- Whether a prepaid card was usedtransacao_cancelada_smartpos- Whether the SmartPOS transaction was cancelledusuario_cancelamento_transacao_smartpos- User that cancelled the SmartPOS transactiondata_hora_cancelamento_transacao_smartpos- Date the SmartPOS transaction was cancelled
Movement Exchanges
Movement Exchanges
Exchange vouchers applied to sales movements.Source method:
LinxMovimentoTrocas. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, identificador, num_valeFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeidentificador- Identifier that groups the records belonging to the same fiscal documentnum_vale- Number of the exchange vouchervalor_vale- Amount of the exchange vouchermotivo- Description of the reason for the exchangedoc_origem- Number of the source document related to the returnserie_origem- Series of the source document related to the returndoc_venda- Number of the document related to the saleserie_venda- Series related to the saleexcluido- Whether the exchange was deletedtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keydesfazimento- Set to 1 when the exchange has a null identifier, a negative balance and doc_venda equal to 0empresa- Company code within the portalvale_cod_cliente- Code of the customer of the sale where the standalone credit voucher was used as paymentvale_codigoproduto- Product code recorded on the exchange voucherid_vale_ordem_servico_externa- Identifier of the external service order voucherdoc_venda_origem- Source sale document, shown for nationwide exchange operationsserie_venda_origem- Source sale series, shown for nationwide exchange operationscod_cliente- Code of the customer chosen when the standalone credit voucher was createddata_vencimento- Expiry date of the exchange vouchervalor_original- Original amount of the exchange voucher; negative when it offsets a balanceid_antecipacoes_financeiras- Identifier of the financial advance in the antecipacoes_financeiras table
Movement Promotions
Movement Promotions
Promotional campaigns applied to sales movements.Source method:
LinxMovimentoAcoesPromocionais. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, identificador, id_acoes_promocionaisFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeidentificador- Identifier that groups the records belonging to the same fiscal documenttransacao- Internal Microvix codeid_acoes_promocionais- Code of the promotional campaigndesconto_item- Discount amount granted by the promotional campaignquantidade- Number of promotional campaigns applied to the saletimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Products and stock
Products
Products
Product catalogue of the portal.Source method:
LinxProdutos. Incremental sync on the timestamp row version.Primary key: portal, cod_produtoFields:portal- Portal code in Microvixcod_produto- Product code in Microvixcod_barra- Barcode of the productnome- Name of the productncm- NCM tax classification code of the productcest- CEST tax classification code of the productreferencia- Reference code of the productcod_auxiliar- Auxiliary code of the productunidade- Measurement unit the product is registered withdesc_cor- Description of the product’s second grid dimension (colour) in Microvixdesc_tamanho- Description of the product’s first grid dimension (size) in Microvixdesc_setor- Description of the product sector in Microvixdesc_linha- Description of the product line in Microvixdesc_marca- Description of the product brand in Microvixdesc_colecao- Description of the product collection in Microvixdt_update- Date the product was last changedcod_fornecedor- Internal Microvix code of the supplier linked to the productdesativado- Whether the product is deactivateddesc_espessura- Description of the product thickness in Microvixid_espessura- Product thickness code in Microvixdesc_classificacao- Description of the product classification in Microvixid_classificacao- Product classification code in Microvixorigem_mercadoria- Code of the goods origin in Microvixpeso_liquido- Net weight of the product in Microvixpeso_bruto- Gross weight of the product in Microvixid_cor- Code of the product’s second grid dimension (colour) in Microvixid_tamanho- Code of the product’s first grid dimension (size) in Microvixid_setor- Product sector code in Microvixid_linha- Product line code in Microvixid_marca- Product brand code in Microvixid_colecao- Product collection code in Microvixdt_inclusao- Date the product was addedtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keyfator_conversao- Conversion factor of the unitcodigo_integracao_ws- For customers integrated through the inbound web service: the code sent on integrationcodigo_integracao_reshop- For customers integrated through the inbound web service: the code field sent on integrationid_produtos_opticos_tipo- Code of the optical product typeid_sped_tipo_item- SPED item type identifiercomponente- Whether the product is a component: S for yes, N for noaltura_para_frete- Height of the product considered for freight calculationlargura_para_frete- Width of the product considered for freight calculationcomprimento_para_frete- Product length considered for freight calculationcodigoproduto_io- Product code in Linx IOcod_comprador- Buyer codecodigo_integracao_oms- Product code used by the OMSobrigatorio_identificacao_cliente- Whether identifying the customer is mandatory on salesdescricao_basica- Basic description of the productcurva- ABC curve classification of the producttributa_fcp- Whether the product is subject to the poverty relief fund tax (FCP)observacao- Note about the product, limited to 1000 characters; only returned when the exibe_observacao parameter is set to 1codigo_adicional_reshop- Additional product code in the ERP, used by Reshopbrinde- Whether the product is a giveawayexige_controle- Whether the product requires stock control: S for yes, N for nomultiplo_venda- Sales multiple of the product — the quantity increment it can be sold in
Product Details
Product Details
Per-store product data: current stock balance, prices, costs and tax setup.Source method:
LinxProdutosDetalhes. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, cod_produtoFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecod_produto- Product code in Microvixcod_barra- Barcode of the productquantidade- Current stock balance of the productpreco_custo- Cost price of the product including ICMSpreco_venda- Sale price of the item in the default price tablecusto_medio- Average cost of the productid_config_tributaria- Code of the tax configuration attached to the productdesc_config_tributaria- Description of the tax configuration attached to the productdespesas1- Amount recorded in the expenses fieldqtde_minima- Minimum stock quantityqtde_maxima- Maximum stock quantityipi- IPI tax ratetimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycustototal- Total cost of the productempresa- Company code within the portalid_produtos_status_compra- Identifier of the status in the produtos_status_compra tablelocalizacao- Storage location of the product
Product Barcodes
Product Barcodes
Barcodes registered for each product.Source method:
LinxProdutosCodBar. Incremental sync on the timestamp row version.Primary key: portal, cod_produto, cod_barraFields:portal- Portal code in Microvixcod_produto- Product code in Microvixcod_barra- Barcode of the producttimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Product Inventory
Product Inventory
Stock position of each product on the requested date.Source method:
LinxProdutosInventario. Full table sync (this method returns no row version).Primary key: portal, cnpj_emp, cod_produto, cod_depositoFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecod_produto- Product code in Microvixcod_barra- Barcode of the productquantidade- Stock balance on the requested datecod_deposito- Warehouse code — only returned when at least one warehouse is requestedempresa- Company code within the portal
Product Warehouses
Product Warehouses
Warehouses (depósitos) registered for the stores.Source method:
LinxProdutosDepositos. Incremental sync on the timestamp row version.Primary key: portal, cod_depositoFields:portal- Portal code in Microvixcod_deposito- Warehouse codenome_deposito- Name of the warehousedisponivel- Whether the warehouse is available for salesdisponivel_transferencia- Whether the warehouse is available for transfers between branchestimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Product classification
Brands
Brands
Product brands registered in the portal.Source method:
LinxMarcas. Incremental sync on the timestamp row version.Primary key: portal, id_marcaFields:id_marca- Identifier of the branddesc_marca- Description of the brandtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationportal- Portal code in Microvix
Product Lines
Product Lines
Product lines registered in the portal.Source method:
LinxLinhas. Incremental sync on the timestamp row version.Primary key: portal, id_linhaFields:id_linha- Identifier of the product linedesc_linha- Description of the product linetimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationportal- Portal code in Microvixcoeficiente_comissao- Commission coefficient
Collections
Collections
Product collections registered in the portal.Source method:
LinxColecoes. Incremental sync on the timestamp row version.Primary key: portal, id_colecaoFields:id_colecao- Identifier of the collectiondesc_colecao- Description of the collectiontimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationportal- Portal code in Microvix
Sectors
Sectors
Product sectors registered in the portal.Source method:
LinxSetores. Incremental sync on the timestamp row version.Primary key: portal, id_setorFields:id_setor- Identifier of the sectordesc_setor- Description of the sectortimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationativo- Whether the record is active (1) or inactive (0)portal- Portal code in Microvix
Sizes
Sizes
Product sizes registered in the portal.Source method:
LinxTamanhos. Incremental sync on the timestamp row version.Primary key: portal, id_tamanhoFields:id_tamanho- Identifier of the sizedesc_tamanho- Description of the sizetimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationativo- Whether the record is active (1) or inactive (0)portal- Portal code in Microvix
Colors
Colors
Product colours registered in the portal.Source method:
LinxCores. Incremental sync on the timestamp row version.Primary key: portal, id_corFields:id_cor- Identifier of the colourdesc_cor- Description of the colourtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationativo- Whether the record is active (1) or inactive (0)portal- Portal code in Microvix
Classifications
Classifications
Product classifications registered in the portal.Source method:
LinxClassificacoes. Incremental sync on the timestamp row version.Primary key: portal, id_classificacaoFields:id_classificacao- Identifier of the classificationdesc_classificacao- Description of the classificationtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_integracao_ws- Code assigned by the web service integrationativo- Whether the record is active (1) or inactive (0)portal- Portal code in Microvix
Units
Units
Measurement units registered in the portal.Source method:
LinxUnidades. Incremental sync on the timestamp row version.Primary key: portal, unidadeFields:unidade- Measurement unittimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keyportal- Portal code in Microvix
Customers and suppliers
Customers and Suppliers
Customers and Suppliers
Customers and suppliers registered in the stores.Source method:
LinxClientesFornec. Incremental sync on the timestamp row version.Primary key: portal, cod_clienteFields:portal- Portal code in Microvixcod_cliente- Customer/supplier code in Microvixrazao_cliente- Legal name of the customer or suppliernome_cliente- Name of the customer or supplierdoc_cliente- CPF or CNPJ (Brazilian tax ID) of the customertipo_cliente- Whether the customer is an individual or a companyendereco_cliente- Street addressnumero_rua_cliente- Street number of the addresscomplement_end_cli- Address complementbairro_cliente- Neighbourhoodcep_cliente- Postal code (CEP)cidade_cliente- Cityuf_cliente- State abbreviation (UF)pais- Countryfone_cliente- Phone number of the customeremail_cliente- Email addresssexo- Genderdata_cadastro- Date the customer was registereddata_nascimento- Date of birth of the customercel_cliente- Mobile phone number of the customerativo- Whether the customer is active (S) or not (N)dt_update- Date the record was last changedinscricao_estadual- State tax registration numberincricao_municipal- Municipal tax registration numberidentidade_cliente- RG (Brazilian ID document) of the customercartao_fidelidade- Loyalty card number in Microvix, when the loyalty module is usedcod_ibge_municipio- IBGE code of the municipalityclasse_cliente- Code and name of the class linked to the customer; only one class is returnedmatricula_conveniado- Code of the affiliated party (conveniado)tipo_cadastro- Registry type: C for customers, F for suppliers, A for bothempresa_cadastro- Whether the record is a carrier (T)id_estado_civil- Marital status: 1 not informed, 2 married, 3 single, 4 divorced, 5 widowedfax_cliente- Fax number of the customersite_cliente- Website of the customertimestamp- Row version of the underlying table, used as the incremental replication keycliente_anonimo- Whether the customer is anonymouslimite_compras- Purchase limit registered as store credit (crediário) in the customer and supplier registrycodigo_ws- Code sent through the inbound web service integrationlimite_credito_compra- Purchase limit registered for cash and card payments in the customer and supplier registryid_classe_fiscal- Identifier of the fiscal class assigned to the customerobs- Note about the customer or suppliermae- Mother’s name of the customercliente_contribuinte- Whether the customer is a registered taxpayerid_tipo_registro_profissional- Identifier in the tipo_registro_profissional tableregistro_profissional- Description of the professional registrationrecebe_newsletter- Whether the customer subscribes to the newsletterdiferencial_icms_fornec- Whether an ICMS rate differential appliesperc_diferencial_icms_fornec- ICMS rate differential percentageid_classe_preferencial- Code of the preferred class linked to the customerid_subclasse_preferencial- Code of the preferred subclass linked to the customer
Customer Contacts
Customer Contacts
Contacts attached to each customer or supplier.Source method:
LinxClientesFornecContatos. Full table sync (this method returns no row version).Primary key: portal, cod_cliente, nome_contatoFields:portal- Portal code in Microvixcod_cliente- Customer/supplier code in Microvixnome_contato- Contact namesexo_contato- Gender of the contact: F for female, M for malecontatos_clientes_parentesco- Relationship code of the contactfone1_contato- Primary phone number of the contactfone2_contato- Secondary phone number of the contactcelular_contato- Mobile phone number of the contactemail_contato- Email address of the contactdata_nasc_contato- Date of birth of the contacttipo_contato- Type of contact
Finance
Invoices
Invoices
Accounts receivable and payable instalments.Source method:
LinxFaturas. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, codigo_fatura, ordem_parcelaFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecodigo_fatura- Internal invoice code in Microvixdata_emissao- Issue date of the invoicecod_cliente- Code of the customer of the invoicenome_cliente- Name of the customer or supplier of the invoicedata_vencimento- Due date of the invoicedata_baixa- Date the invoice was settledvalor_fatura- Original amount of the invoicevalor_pago- Amount paid when the invoice was settledvalor_desconto- Discount amount granted on the invoicevalor_juros- Interest amount charged on the invoicedocumento- Number of the document that generated the invoiceserie- Series of the document generated for the invoiceecf- Number of the fiscal printer (ECF) that generated the invoiceobservacao- Note about the invoiceqtde_parcelas- Total number of instalments of the invoiceordem_parcela- Instalment sequence numberreceber_pagar- Whether the invoice is receivable or payablevendedor- Code of the salesperson linked to the invoiceexcluido- Whether the invoice was deletedcancelado- Whether the invoice is cancelledidentificador- Identifier that references the records belonging to the same fiscal documentnsu- NSU of the invoice settled through TEFcod_autorizacao- Authorisation code of the invoice settled through TEFdocumento_sem_tef- Document number entered manually for sales without TEFautorizacao_sem_tef- Authorisation code entered manually for sales without TEFplano- Internal payment plan code in Microvixconta_credito- Credit account code of the accounting entryconta_debito- Debit account code of the accounting entryconta_fluxo- Cash-flow account code of the accounting entrycod_historico- Code of the history entry in Microvixforma_pgto- Name of the payment methodordem_cartao- Sequence of the card (1, 2, 3, …); only filled for card payment plansbanco_codigo- Bank code, used for cheque invoicesbanco_agencia- Bank branch code, used for cheque invoicesbanco_conta- Bank account code, used for cheque invoicesbanco_autorizacao_garantidora- Guarantor code, used for cheque invoicesnumero_bilhete_seguro- Only used with the third-party services sales moduletimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keyempresa- Company code within the portalid_categorias_financeiras- Identifier of the financial categorytaxa_financeira- Financial fee applied to the invoicevalor_abatimento- Rebate amount applied to the invoicevalor_multa- Penalty amount charged on the invoicecentrocusto- Identifier of the cost centreperc_taxa_adquirente- Fee percentage charged by the card acquirerfatura_origem_importacao_erp- Original number of the invoice imported into the ERPcod_portador- Code of the invoice holder (portador)nsu_host- Host NSU (unique sequential number) of the transactionnsu_sitef- Sitef NSU (unique sequential number) of the transactionprevisao- Whether the invoice is a forecast: S for yes, N for nodata_lanc- Date the invoice was posteddt_insert- Date the record was insertedplano_pagamento_baixa- Identifier of the payment plan used to settle the invoice
Payment Plans
Payment Plans
Payment plans registered in the portal.Source method:
LinxPlanos. Incremental sync on the timestamp row version.Primary key: portal, planoFields:portal- Portal code in Microvixplano- Internal payment plan code in Microvixdesc_plano- Description of the payment planqtde_parcelas- Number of instalmentsprazo_entre_parcelas- Number of days between instalmentstipo_plano- Transaction type: C for purchase, V for saleindice_plano- Index of the payment plancod_forma_pgto- Code of the payment methodforma_pgto- Name of the payment methodconta_central- Central account code linked to the customer/supplier registrytipo_transacao- Card payment type: D for debit, C for credittaxa_financeira- Financial fee percentage charged by the card administratorsdt_upd- Date the record was last changeddesativado- Whether the payment plan is deactivated: S for yes, N for nousa_tef- Whether the plan uses TEF: S (yes) or N (no)timestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keycodigo_ws- Code received from the web service integrationvalor_minimo_parcela- Minimum instalment amount
Payment Plan Card Brands
Payment Plan Card Brands
Card brands linked to each payment plan.Source method:
LinxPlanosBandeiras. Full table sync (this method returns no row version).Primary key: portal, plano, bandeiraFields:portal- Portal code in Microvixplano- Internal payment plan code in Microvixbandeira- Card brand description in Microvixtipo_bandeira- Description of the linked card brand typeadquirente- Code of the card acquirer or operator, linked to the customer/supplier registrynome_adquirente- Name of the card acquirer or operator, linked to the customer/supplier registrycodigo_bandeira_sitef- Sitef card brand code
Cash Movements
Cash Movements
Cash withdrawals (sangrias) and supplies registered at the cash register.Source method:
LinxSangriaSuprimentos. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, id_sangria_suprimentosFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeusuario- User that performed the movementdata- Date of the recordvalor- Amount of the cash withdrawal or cash supplyobs- Description of the cash withdrawal or supplycancelado- Whether the record is cancelled (S) or valid (N)conferido- Whether the document has been checked (1) or not (0)cod_historico- Code of the history entry in Microvixdesc_historico- Description of the history entryid_sangria_suprimentos- Identifier of the cash withdrawal or supply entrytimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Salespeople
Salespeople
Salespeople
Salespeople registered in the stores.Source method:
LinxVendedores. Incremental sync on the timestamp row version.Primary key: portal, cod_vendedorFields:portal- Portal code in Microvixcod_vendedor- Salesperson code in Microvixnome_vendedor- Name of the customer or suppliertipo_vendedor- Role: V for salesperson, C for buyer, A for bothend_vend_rua- Street addressend_vend_numero- Street number of the addressend_vend_complemento- Address complementend_vend_bairro- Neighbourhoodend_vend_cep- Postal code (CEP)end_vend_cidade- Cityend_vend_uf- State abbreviation (UF)fone_vendedor- Phone number of the customermail_vendedor- Email addressdt_upd- Date the record was last changedcpf_vendedor- CPF (Brazilian individual tax ID) of the salespersonativo- Whether the salesperson is active: S for yes, N for nodata_admissao- Hiring date of the salespersondata_saida- Termination date of the salespersontimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keymatricula- Employee registration number of the salespersonid_tipo_venda- Identifier of the sale typedescricao_tipo_venda- Description of the sale typecargo- Job title of the salespersonnome_exibicao- Display name of the salesperson in Microvixfuncao- Job function of the salespersonempresa- Company the salesperson is assigned tocodigo_integracao_ws- Code sent through the web service integrationmeta_peso- Weight of the sales target
Salesperson Targets
Salesperson Targets
Sales targets assigned to salespeople.Source method:
LinxMetasVendedores. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, id_meta, cod_vendedorFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeid_meta- Sales target code in Microvixdescricao_meta- Description of the sales targetdata_inicial_meta- Start date of the sales targetdata_final_meta- End date of the sales targetvalor_meta_loja- Sales target amount for the storevalor_meta_vendedor- Sales target amount for the salespersoncod_vendedor- Salesperson code in Microvixtimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Promotions
Promotions
Promotions
Promotional campaigns registered in the stores.Source method:
LinxAcoesPromocionais. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, id_acoes_promocionaisFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storeid_acoes_promocionais- Code of the promotional campaignvigencia_inicio- Start date of the validity periodvigencia_fim- End date of the validity periodobservacao- Note about the promotional campaignativa- Whether the promotional campaign is activeexcluida- Whether the promotional campaign was deletedintegrada- Whether the promotional campaign was integratedqtde_integrada- Maximum quantity integrated by the franchisorvalor_pago_franqueadora- Amount paid by the franchisorid_acoes_promocionais_origem- Identifier of the originating promotional campaigntimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication key
Orders
Sales Orders
Sales Orders
Sales orders, one row per item.Source method:
LinxPedidosVenda. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, cod_pedido, posicao_itemFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecod_pedido- Order codedata_lancamento- Date of the orderhora_lancamento- Time the order was postedtransacao- Internal Microvix codeusuario- User that placed the ordercodigo_cliente- Customer codecod_produto- Product codequantidade- Quantity of the productvalor_unitario- Unit price of the productcod_vendedor- Salesperson code in Microvixvalor_frete- Freight amountvalor_total- Total amount of the orderdesconto_item- Discount applied to the itemcod_plano_pagamento- Code of the payment planplano_pagamento- Name of the payment planobs- Note about the orderaprovado- Whether the record is already an order (S) or still a quotation (N)cancelado- Flag with values S (yes) or N (no)data_aprovacao- Date the order was approveddata_alteracao- Date the record was last changedtipo_frete- Freight type: 1 for CIF, 2 for FOBnatureza_operacao- Description of the operation naturetabela_preco- Code of the price table usednome_tabela_preco- Name of the price tableprevisao_entrega- Expected delivery daterealizado_por- Code of the customer the order was placed forpontuacao_ser- Customer code in the Pontuação Ser loyalty programmevenda_externa- Flag with values S (yes) or N (no)nf_gerada- Comma-separated numbers of the fiscal invoices generated when the order was billedstatus- Billing status: F fully billed, P partially billed, N not billednumero_projeto_officina- Project codecod_natureza_operacao- Code of the operation naturemargem_contribuicao- Contribution margin of the storedoc_origem- Source document numberposicao_item- Position of the item within the sales orderorcamento_origem- Number the quotation originated from; 0 when it has no origintransacao_origem- Original transaction kept when a sales order is partially approved and a new transaction is generatedtimestamp- Original transaction the record refers to, used as the incremental replication keydesconto- Total discount of the sales ordertransacao_ws- Transaction sent through the web service integrationempresa- Company code within the portaltransportador- Identifier of the carrier registered in the portaldeposito- Identifier of the warehouse in the portaltexto_agrupamento- Grouping text of the orderposicao- Code of the quotation positionencerrado- Whether the quotation or order was closed
Purchase Orders
Purchase Orders
Purchase orders, one row per item.Source method:
LinxPedidosCompra. Incremental sync on the timestamp row version.Primary key: portal, cnpj_emp, cod_pedido, cod_produtoFields:portal- Portal code in Microvixcnpj_emp- CNPJ (Brazilian tax ID) of the storecod_pedido- Order codedata_pedido- Date of the ordertransacao- Internal Microvix codeusuario- User that placed the ordercodigo_fornecedor- Supplier codecod_produto- Product codequantidade- Quantity of the productvalor_unitario- Unit price of the productcod_comprador- Buyer code in Microvixvalor_frete- Freight amountvalor_total- Total amount of the ordercod_plano_pagamento- Code of the payment planplano_pagamento- Name of the payment planobs- Note about the orderaprovado- Flag with values S (yes) or N (no)cancelado- Flag with values S (yes) or N (no)encerrado- Flag with values S (yes) or N (no)data_aprovacao- Date the order was approvednumero_ped_fornec- Supplier’s own order number, when informedtipo_frete- Freight type codenatureza_operacao- Description of the operation natureprevisao_entrega- Expected delivery datenumero_projeto_officina- Project codestatus_pedido- Order status: E for delivered, P for pendingqtde_entregue- Quantity of items already delivereddescricao_frete- Description of the freightintegrado_linx- Whether the order was integrated by Linx (1) or not (0)nf_gerada- Number of the fiscal invoice generated when the order was billed; only the first invoice is showntimestamp- Row version of the underlying table, used as the incremental replication key (not a date — it is a SQL Server row-version counter), used as the incremental replication keyempresa- Company code within the portalnf_origem_ws- Number of the fiscal invoice created through the LinxCadastraNotas methodid_compras_pedido_status- Identifier of the purchase order statusqtde_desejada- Quantity requestedmotivo_ajuste- Reason for the adjustmentsaldo_disponivel_api- Balance still available through the API