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, net_stock, and price_table_products based on the dataAlteracao or alteradoApos (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), net stock, price tables, products per price table, and digital channels.
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, net_stock, price_table_products, and digital_channels.
    • 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

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.IdentifiersDates & TimesOrder StatusFinancial ValuesEntity InformationCustomer InformationSalesperson InformationOrder DetailsOrder Items (itens[])Payment Composition (composicaoPagamento)Card Payments (composicaoPagamento.valoresCartao[])PIX Payments (composicaoPagamento.valoresPix[])Payment Plan (plano)Installments (parcelas[])Invoices (notasFiscais[])Delivery Address (enderecoEntrega)Transport (transporte)Intermediary (intermediador)Additional Fields
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 FieldsEntity Information (entidade)Product Information (produto)
Stream containing net stock balances for merchandise from Varejo Online (GET /saldos-mercadorias/liquido). Supports incremental sync based on the alteradoApos field.Primary Keys: idProduto, idEntidade (composite)Core FieldsEntity Information (entidade)Product Information (produto)Nested / Arrays
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 FieldsNested / Arrays
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
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 FieldsProduct (object)History (optional)
Stream containing digital channels from your Varejo Online account (GET /canais-digitais). Supports incremental sync based on the dataAlteracao (last modification date) field. Primary key: id.Key Fields

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, entities, and digital channels; stock and net_stock are per product and entity.

Implementation Notes

Data Sync Considerations

  • Incremental Sync: The orders, products, stock, net_stock, price_table_products, and digital_channels streams support incremental sync using the dataAlteracao or alteradoApos (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/alteradoApos 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.