Skip to main content
Varejo Online is a comprehensive retail management platform designed for Brazilian businesses. It provides tools for sales management, inventory control, order processing, and point-of-sale operations, helping retailers streamline their operations across physical stores and digital channels.

Configuring Varejo Online as a Source

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

1. Add account access

You’ll need your Varejo Online API Token for this connection. This token authenticates your requests to the Varejo Online API.
  • Token: The authentication token for the Varejo Online API. Required. Contact your Varejo Online account manager or support team to obtain your API token.
  • Start Date: (Optional) The earliest date from which records will be synced for incremental streams. Used for orders, products, stock, and price_table_products based on the dataAlteracao (last modified date) field. You can use common date formats (e.g. 2024-01-01).
Store your token securely. Treat it like a password and do not share it publicly.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. Varejo Online provides access to orders, products, stock (inventory), price tables, and products per price table.
Tip: The stream can be found more easily by typing its name.
Note: The price_table_products stream is a child of price_tables: it fetches products and prices for each price table. Selecting price_table_products will sync data for every price table. 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 records created or modified since the last sync. Supported for orders, products, stock, and price_table_products (using dataAlteracao).
    • Full table: every time the extraction happens, we’ll get the current state of the data. Use for price_tables or when you prefer a full refresh.
Once you are done configuring, click Next.

4. Configure data source

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

5. Check your new source

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

Stream to Endpoint Mapping

StreamAPI EndpointSync TypeReplication Key
orders/pedidosIncrementaldataAlteracao
products/produtosIncrementaldataAlteracao
stock/saldos-mercadoriasIncrementaldataAlteracao
price_tables/tabelas-precoFull table
price_table_products/tabelas-preco/{id}/produtos (child of price_tables)IncrementaldataAlteracao

Streams and Fields

Below you’ll find all available data streams from Varejo Online and their corresponding fields:
Stream containing all sales orders from your Varejo Online account (GET /pedidos). Supports incremental sync based on the dataAlteracao (last modification date) field. Primary key: id.Identifiers
FieldTypeDescription
idIntegerOrder ID
idSaidaIntegerLinked output ID
numeroStringOrder number generated by the system
numeroPedidoClienteStringCustomer’s reference order number
idEntidadeIntegerEntity ID of the order
idTerceiroClienteIntegerThird-party customer ID
idRepresentanteIntegerRepresentative/salesperson ID
idProvisaoIntegerProvision ID generated by the order
idCanalDigitalIntegerDigital channel ID
Dates & Times
FieldTypeDescription
dataStringOrder issue date
horarioStringOrder creation time (format: hh:mm:ss)
dataAlteracaoStringLast modification date (format: dd-mm-yyyy hh:mi:ss) - Replication Key
Order Status
FieldTypeDescription
canceladoBooleanWhether the order is cancelled
statusConferenciaStringConference status of the order
statusVendaStringSales status
statusPedidoVenda.idIntegerStatus ID
statusPedidoVenda.nomeStringStatus name
statusPedidoVenda.descricaoStringStatus description
statusPedidoVenda.dataAlteracaoStringStatus modification date
statusPedidoVenda.dataCriacaoStringStatus creation date
statusPedidoVenda.ativoBooleanWhether status is active
statusPedidoVenda.deletadoBooleanWhether status is deleted
Financial Values
FieldTypeDescription
valorFreteNumberShipping value
valorSeguroNumberInsurance value
valorOutrosNumberOther costs
valorTotalNumberTotal order value
valorLiquidoNumberNet order value
valorDescontoNumberDiscount value
valorAcrescimoNumberAddition/surcharge value
valeTrocaGeradoNumberGenerated exchange voucher value
Entity Information
FieldTypeDescription
entidade.idIntegerEntity ID
entidade.nomeStringEntity name
entidade.documentoStringStore’s formatted CNPJ
Customer Information
FieldTypeDescription
cliente.idIntegerCustomer ID
cliente.nomeStringCustomer name
cliente.documentoStringCustomer’s formatted CNPJ/CPF
documentoTerceiroStringThird-party document
Salesperson Information
FieldTypeDescription
representante.idIntegerSalesperson ID
representante.nomeStringSalesperson name
representante.documentoStringSalesperson’s formatted CPF
Order Details
FieldTypeDescription
origemStringOrder origin (e.g., MARKETPLACE)
tipoStringOrder type (NORMAL, SHIP_FROM_STORE, CLICK_COLLECT)
sistemaOrigemStringSource system
nomeTerminalStringTerminal name where order was placed
planoPagamentoStringPayment plan
vendaConsumidorFinalBooleanWhether it’s a sale to final consumer
descontoDetalhesStringDiscount details
observacaoStringOrder observation/notes
Order Items (itens[])
FieldTypeDescription
itens[].idIntegerItem ID
itens[].idProdutoIntegerProduct ID
itens[].idRepresentanteIntegerRepresentative ID for this item
itens[].quantidadeNumberQuantity
itens[].operacaoStringItem operation
itens[].descricaoStringItem description
itens[].unidadeStringMeasurement unit
itens[].valorTotalNumberTotal item value
itens[].valorDescontoNumberItem discount
itens[].valorAcrescimoNumberItem surcharge
itens[].valorDescontoRateadoNumberProrated discount value
itens[].valorDescontoItemNumberSpecific item discount
itens[].valorFreteRateadoNumberProrated shipping value
itens[].valorCustoNumberCost value
itens[].descontoDetalhesStringDiscount details
itens[].dataEntregaStringDelivery date
itens[].reservarEstoqueBooleanWhether to reserve stock
itens[].tabelaPrecoIdIntegerPrice table ID
itens[].valorICMSNumberICMS tax value
itens[].valorICMSItemNumberICMS tax value for item
itens[].valorICMSFreteNumberICMS tax value for shipping
itens[].valorICMSSTNumberICMS-ST tax value
itens[].valorIPINumberIPI tax value
itens[].valorPISNumberPIS tax value
itens[].valorCOFINSNumberCOFINS tax value
itens[].valorFCPSTNumberFCP-ST tax value
itens[].produto.idIntegerProduct ID
itens[].produto.descricaoStringProduct description
itens[].produto.codigoBarrasStringProduct barcode
itens[].produto.codigoInternoStringInternal product code
itens[].produto.codigoSistemaStringSystem product code
itens[].representante.idIntegerItem salesperson ID
itens[].representante.nomeStringItem salesperson name
itens[].representante.documentoStringItem salesperson CPF
itens[].epcs[]ArrayElectronic Product Codes (RFID tags)
itens[].lotes[]ArrayProduct lots
itens[].numerosValesPresentes[]ArrayGift voucher numbers used
Payment Composition (composicaoPagamento)
FieldTypeDescription
composicaoPagamento.saidaIdIntegerOutput ID related to payment
composicaoPagamento.valorDinheiroNumberCash payment value
composicaoPagamento.valorChequeVistaNumberCheck payment (cash)
composicaoPagamento.valorChequePrazoNumberCheck payment (term)
composicaoPagamento.valorCrediarioNumberCredit plan value
composicaoPagamento.valorVoucherNumberVoucher payment value
composicaoPagamento.valorValePresenteNumberGift voucher value
composicaoPagamento.valorTrocaNumberExchange value
composicaoPagamento.valorAdiantamentoNumberAdvance payment value
composicaoPagamento.idPlanoCrediarioIntegerCredit plan ID
composicaoPagamento.plano.idIntegerPayment plan ID
composicaoPagamento.plano.descricaoStringPayment plan description
Card Payments (composicaoPagamento.valoresCartao[])
FieldTypeDescription
valoresCartao[].valorNumberCard payment value
valoresCartao[].nsuStringNSU (Número Sequencial Único)
valoresCartao[].bandeiraStringCard brand (VISA, MASTERCARD, etc.)
valoresCartao[].tipoCartaoStringCard type (DEBITO, CREDITO)
valoresCartao[].operadoraStringCard operator (GETNET, CIELO, etc.)
valoresCartao[].numeroParcelasIntegerNumber of installments
valoresCartao[].autorizacaoStringAuthorization code
PIX Payments (composicaoPagamento.valoresPix[])
FieldTypeDescription
valoresPix[].valorNumberPIX payment value
valoresPix[].nsuStringNSU (Número Sequencial Único)
valoresPix[].autorizacaoStringAuthorization code
Payment Plan (plano)
FieldTypeDescription
plano.idIntegerPlan ID
plano.descricaoStringPlan description
Installments (parcelas[])
FieldTypeDescription
parcelas[].idIntegerInstallment ID
parcelas[].valorNumberInstallment value
parcelas[].dataVencimentoStringDue date
Invoices (notasFiscais[])
FieldTypeDescription
notasFiscais[].statusStringInvoice status
notasFiscais[].idNotaFiscalIntegerInvoice ID
notasFiscais[].tipoNotaFiscalStringInvoice type (e.g., MERCADORIA)
Delivery Address (enderecoEntrega)
FieldTypeDescription
enderecoEntrega.logradouroStringStreet name
enderecoEntrega.numeroStringStreet number
enderecoEntrega.complementoStringAddress complement
enderecoEntrega.bairroStringNeighborhood
enderecoEntrega.cepStringPostal code (CEP)
enderecoEntrega.cidadeStringCity
enderecoEntrega.ufStringState (UF)
enderecoEntrega.receptorEntregaStringRecipient name
enderecoEntrega.receptorEntregaDocumentoStringRecipient document (CPF/CNPJ)
Transport (transporte)
FieldTypeDescription
transporte.modalidadeStringTransport modality (e.g., EMITENTE)
transporte.transportador.idIntegerCarrier ID
transporte.transportador.documentoStringCarrier document (CNPJ)
transporte.codigoANTTStringANTT code
transporte.placaVeiculoStringVehicle plate
transporte.estadoVeiculoStringVehicle registration state
transporte.quantidadeStringNumber of volumes
transporte.especieStringVolume type (e.g., CAIXA)
transporte.marcaStringVolume brand
transporte.numeroStringVolume number
transporte.pesoBrutoNumberGross weight (kg)
transporte.pesoLiquidoNumberNet weight (kg)
Intermediary (intermediador)
FieldTypeDescription
intermediador.idIntegerIntermediary ID
intermediador.documentoStringIntermediary’s CNPJ
Additional Fields
FieldTypeDescription
idsOrcamentos[]ArrayRelated quote IDs
servicos[]ArrayServices associated with the order
valeTrocasUtilizados[].valorUtilizadoNumberExchange voucher value used
Stream containing inventory/stock balances for products across entities (GET /saldos-mercadorias). Supports incremental sync based on the dataAlteracao (last modified date) field.Primary Keys: idProduto, idEntidade (composite)Core Fields
FieldTypeDescription
idProdutoIntegerProduct ID (primary key)
idEntidadeIntegerEntity ID (primary key)
quantidadeNumberStock quantity
dataDateStock information date
dataAlteracaoDateTimeLast modification date - Replication Key
Entity Information (entidade)
FieldTypeDescription
entidade.idIntegerEntity ID
entidade.nomeStringEntity name
entidade.documentoStringEntity document (CNPJ)
Product Information (produto)
FieldTypeDescription
produto.idIntegerProduct ID
produto.codigoBarrasStringProduct barcode
produto.descricaoStringProduct description
produto.codigoInternoStringInternal product code
produto.codigoSistemaStringSystem product code
Stream containing product catalog from your Varejo Online account (GET /produtos). Supports incremental sync based on the dataAlteracao (last modified date) field. Primary key: id.Core Fields
FieldTypeDescription
idIntegerProduct ID
descricaoStringProduct description
codigoInternoStringInternal product code
codigoBarrasStringProduct barcode
codigoSistemaStringSystem product code
codigoNcmStringNCM code
codigoSKUStringSKU
dataCriacaoStringCreation date (dd-mm-aaaa hh:mi:ss)
dataAlteracaoStringLast modification date - Replication Key
unidadeStringSales unit
precoNumberProduct price
custoReferencialNumberReference cost
descontoMaximoNumberMaximum discount allowed
ativoBooleanWhether product is active
deletadoBooleanWhether product is deleted
permiteVendaBooleanWhether product can be sold
controlaLoteBooleanWhether product uses lot control
controlaValidadeLoteBooleanWhether lot expiry is controlled
estoqueMinimoNumberMinimum stock
estoqueMaximoNumberMaximum stock
pesoNumberProduct weight
comissaoNumberCommission
margemLucroNumberProfit margin
porcentagemRoyaltiesNumberPercentage of royalties for the product
disponivelEcommerceBooleanAvailable for e-commerce
disponivelMarketplaceBooleanAvailable for marketplaces
Nested / Arrays
FieldTypeDescription
produtoBaseObjectBase product (id, nome, codigoSistema)
categoriasArrayCategories (id, nivel, nome)
fornecedoresArraySuppliers (cnpj, codigo)
dadosPorEntidadeArrayPer-entity data (entidade, codBeneficioFiscal, estoqueMinimo, estoqueMaximo)
descontoProgressivoArrayProgressive discounts (desconto, qtde, ativo, tipoDesconto)
valorAtributosArrayAttribute values (id, valor, nome, codigo)
listCustoReferencialArrayReference costs per entity (precoCusto, entidade)
Stream containing price tables (GET /tabelas-preco). Full table sync only (no replication key). Primary key: id. Table with ID 1 is always the system default. price_table_products is a child stream of this one.Key Fields
FieldTypeDescription
idIntegerPrice table ID
nomeStringPrice table name
idsEntidadesArrayEntity IDs for which the table is valid (empty = all)
idsClassificacoesClientesArrayCustomer classification IDs (empty = all)
classificacoesClienteArrayCustomer classifications (id, nome)
disponivelBooleanWhether table is available at query time (validity)
ativoBooleanWhether table can be applied
permanenteBooleanWhether table is permanent
promocaoBooleanWhether table is promotional
excluidoBooleanWhether table was deleted in the system
inicioVigenciaStringStart date when table can be applied (dd-mm-aaaa hh:mi:ss)
fimVigenciaStringEnd date when table can be applied (dd-mm-aaaa hh:mi:ss)
pesoIntegerWeight for table application (higher weight wins at sale)
compraBooleanWhether table applies to purchases
aplicaDescontoBooleanWhether table applies discount
tabelaReferenciaDescontoObjectReference table for discount (id, nome)
Stream containing products and prices per price table (GET /tabelas-preco/{id}/produtos). Child stream of price_tables — one partition per price table. Supports incremental sync based on dataAlteracao. Primary keys: idTabelaPreco, idProduto.Key Fields
FieldTypeDescription
idTabelaPrecoIntegerPrice table ID
idProdutoIntegerProduct ID
idIntegerRecord ID in price table
precoNumberProduct price in this table
dataAlteracaoStringLast modification date - Replication Key
ativoBooleanWhether this price is active
nomeTabelaPrecoStringPrice table name
isFromESBBooleanWhether record comes from ESB
Product (object)
FieldTypeDescription
produto.idIntegerProduct ID
produto.descricaoStringProduct description
produto.codigoSistemaStringSystem code
produto.codigoInternoStringInternal code
produto.codigoBarrasStringBarcode
History (optional)
FieldTypeDescription
historicoArrayPrice change history (dataAlteracao, preco, ativo, terceiroAlteracao) when requested

Data Model

The following diagram illustrates the main relationships. price_table_products is a child of price_tables (one partition per price table). orders reference products and entities; stock is per product and entity.

Implementation Notes

Data Sync Considerations

  • Incremental Sync: The orders, products, stock, and price_table_products streams support incremental sync using the dataAlteracao (last modification date) field. Only records created or modified since the last sync (or since Start Date on first run) are extracted.
  • Full Table: The price_tables stream has no replication key; use full table sync to refresh all price table definitions.
  • Date Formats: Varejo Online uses Brazilian date formats. The data field uses dd-mm-yyyy format, and dataAlteracao uses dd-mm-yyyy hh:mi:ss format. You can configure Start Date using common date formats; the tap sends it to the API as alteradoApos in this format.
  • Child Stream: price_table_products is a child of price_tables. The tap first syncs all price tables, then requests products and prices for each table. Selecting both streams will result in one price_table_products partition per price table.
  • Brazilian Tax Fields: Order items include various Brazilian tax fields such as ICMS, ICMS-ST, IPI, PIS, COFINS, and FCP-ST. These are important for fiscal compliance and financial analysis.

Payment Methods

Varejo Online supports multiple payment methods that are captured in the composicaoPagamento object:
  • Cash (dinheiro)
  • Check - cash and term (cheque)
  • Credit cards with detailed transaction data (NSU, authorization, flag, operator)
  • PIX payments with transaction identifiers
  • Vouchers and gift cards
  • Store credit (crediário)
  • Exchange vouchers (vale troca)

Order Types

Orders can be classified by type:
  • NORMAL: Standard orders
  • SHIP_FROM_STORE: Orders fulfilled from physical store inventory
  • CLICK_COLLECT: Buy online, pick up in store orders

Skills for agents

Download Varejo Online skills file

Varejo Online connector documentation as plain markdown, for use in AI agent contexts.