Skip to main content
webPosto is the ERP for fuel stations and convenience stores by Quality Automação. This connector reads your stations’ data through webPosto’s integration API: sales and the items and payments of each sale, fuel dispensings, the LMC, cash register shifts and withdrawals, bills receivable and payable, card receivables, checks, inbound and outbound invoices, stock, and the registers behind them (branches, customers, suppliers, employees, products, tanks, pumps and nozzles).
The connector only reads data. It never creates, changes or deletes anything in webPosto.

Before you start

The integration API is a paid add-on of webPosto. You need:
  • The API Integração contract active for your stations. Ask Quality Automação’s sales team (or your reseller) to enable it.
  • An integration key with a user linked to it. The permission profile of that user decides which tables the key can read.
  • Only for the financeiros_exclusao table (deleted financial records): the API Integração - Gesplan contract as well.

Configuring webPosto as a Source

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

1. Add account access

Generate the integration key in webPosto:
1

Open the integrations screen

In webPosto, go to Administração > Integrações > Integração.
2

Create the key

On the API Integração integration, click Incluir to generate the key.
3

Link a user

Choose the webPosto user the key acts as. Its permission profile must allow the screens of the tables you want (sales, cash, financial, stock…). Without a user, every request is refused. Click Salvar.
4

Copy the key

Back on Administração > Integrações > Integração, click Copiar next to the key. It has 36 characters.
The following configurations are available:
  • Integration key: The key you copied above.
  • Start date: The earliest movement date read on the first sync and on a full sync.
  • Branch codes: (Optional) The codes of the branches to read (empresa_codigo in the empresas table). Leave it empty to read every branch the key can see.
  • Lookback days: (Optional, default 3) How many days of movement dates are read again on every incremental sync, to catch documents entered late.
  • Requests per minute: (Optional) The per-minute request limit of your key, if Quality Automação gave you one. Leave it empty and the connector waits whenever webPosto asks it to.
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 and changed data, which is good if, for example, you want to keep every record ever fetched.
    • Full table: every time the extraction happens, we’ll get the current state of the data, which is good if, for example, you don’t want to have deleted data in your catalog.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, 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.

Streams and Fields

Available streams

The table below lists every stream, its slug (the exact identifier to pass when creating the source via API), how it syncs and a short description.

Fields by stream

Every table has codigo, webPosto’s code of the row; in item tables (notas_entrada_itens, notas_saida_itens) it is the code of the parent invoice, and the item column completes the primary key shown in each table. Most tables have empresa_codigo, the branch the row belongs to (join with empresas.empresa_codigo). Columns holding nested data (lists of items, payments, contacts) are JSON text. Each description ends with the name of the field in webPosto’s API.

Sales and fuel

Sales (receipts and invoices), with their items, payments and change as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/VENDAS
One row per item sold (fuel by nozzle, products), with taxes.Primary key: codigo, venda_item_codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/VENDAS/ITENS
One row per payment method used in each sale.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_movimento) · webPosto route: GET /INTEGRACAO/V1/VENDAS_FORMA_PAGAMENTO
Fuel dispensings read from the pumps (including calibration checks).Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_abastecimento) · webPosto route: GET /INTEGRACAO/V1/ABASTECIMENTOS
NFC-e consumer invoices issued for sales, authorized and cancelled. The route’s default status is not documented and it has no “all” value, so every read is made with the default and again with situacao=C (cancelled), and the rows are sent once.Primary key: codigo · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_emissao) · webPosto route: GET /INTEGRACAO/V1/NFCES
LMC (Livro de Movimentação de Combustíveis): daily fuel book per product, with tanks, nozzles and invoices as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/LMCS

Cash registers

Cash register shifts (opening, closing, operator).Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/CAIXAS
Amounts declared by operators when closing each cash register shift.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/CAIXAS_APRESENTADO
Cash withdrawals (sangrias) from the registers.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/SANGRIAS_CAIXA
Every cash register movement (supply, expense, receipt, change). The route has no date filter: read whole.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/MOVIMENTACOES_CAIXA

Financial

Bills receivable (customer credit sales, invoices).Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/TITULOS_RECEBER
Bills payable, with their payments as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/TITULOS_PAGAR
Trade bills (duplicatas) issued to customers, with their payments as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_movimento) · webPosto route: GET /INTEGRACAO/V1/DUPLICATAS
Card receivables (credit and debit sales to be paid by the card administrators).Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_movimento) · webPosto route: GET /INTEGRACAO/V1/CARTOES
Checks received.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_movimento) · webPosto route: GET /INTEGRACAO/V1/CHEQUES
Customer vouchers (vales) issued and used.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/VALES_CLIENTES
Bank and cash account movements (controle bancário).Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_movimento) · webPosto route: GET /INTEGRACAO/V1/MOVIMENTOS_CONTA
Accounting entries, with their lines as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time), new rows and recent movement dates; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/LANCAMENTOS_CONTABEIS
Financial records deleted in webPosto (bills, cards, checks, account movements). Deleted records disappear from their own routes, so their rows stay in the tables above; this log says which ones were deleted. It needs the ‘API Integração - Gesplan’ contract.Primary key: codigo · Sync: Incremental (deletions since the last run; cursor column data_exclusao) · webPosto route: GET /INTEGRACAO/V1/FINANCEIROS_EXCLUSAOAlso needs the API Integração - Gesplan contract.
Bank and cash accounts.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CONTAS
Cost centers.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CENTROS_CUSTO
Management chart of accounts.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PLANOS_CONTA_GERENCIAL
Accounting chart of accounts.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PLANOS_CONTA_CONTABIL
Payment methods.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FORMAS_PAGAMENTO
Card administrators (acquirers) and their fees.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/ADMINISTRADORAS

Purchases and fiscal

Inbound invoices (purchases), filtered by entry date.Primary key: codigo · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_entrada) · webPosto route: GET /INTEGRACAO/V1/NOTAS_ENTRADA
Items of inbound invoices, filtered by entry date.Primary key: codigo, sequencial_item · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_entrada) · webPosto route: GET /INTEGRACAO/V1/NOTAS_ENTRADA/ITENS
Outbound NF-e invoices, every status (authorized, cancelled, voided, denied).Primary key: codigo · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_emissao) · webPosto route: GET /INTEGRACAO/V1/NOTAS_SAIDA
Items of outbound NF-e invoices. They carry no date of their own, so every run reads them whole.Primary key: codigo, nota_item_codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/NOTAS_SAIDA_ITENS

Registers and stock

Branches (filiais) the integration key can read.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/EMPRESAS
Customers, with contacts and vehicle cost centers as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time) and new rows; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/CLIENTES
Which customers are linked to which branch.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CLIENTES_EMPRESA
Customer groups and their credit limits.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/GRUPOS_CLIENTE
Suppliers, with their bank accounts as JSON.Primary key: codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time) and new rows; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/FORNECEDORES
Employees (pump attendants, cashiers, managers).Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FUNCIONARIOS
Employee roles.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FUNCOES
Products (fuels, convenience store items, services), with barcodes as JSON.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PRODUTOS
Product settings per branch (price, cost, active).Primary key: empresa_codigo, codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time) and new rows; cursor column ultima_alteracao) · webPosto route: GET /INTEGRACAO/V1/PRODUTOS_EMPRESA
Current stock balance of each product, per branch (a snapshot: read whole every run).Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PRODUTOS_ESTOQUES
Stock locations (warehouses, tanks as stock) of each branch.Primary key: empresa_codigo, codigo · Sync: Incremental (rows changed since the last run (webPosto’s last-update time) and new rows; cursor column data_hora_atualizacao) · webPosto route: GET /INTEGRACAO/V1/ESTOQUES
Product groups.Primary key: codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/GRUPOS
Fuel tanks.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/TANQUES
Fuel pumps. The route takes no pagination parameters: one request per run.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/BOMBAS
Pump nozzles, with their tank and product.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/BICOS
Points of sale (PDV) of each branch.Primary key: empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PDVS

Implementation Notes

How incremental syncs work

  • The first sync, and every full sync, reads the history from Start date in monthly windows of movement dates.
  • After that, sales, fuel dispensings, cash, financial and accounting tables read the rows webPosto marked as changed since the previous sync (a cancelled sale, a paid bill), the rows added since the previous sync whatever their date, and the last Lookback days of movement dates. Customers, suppliers, products by branch and stock locations read the changed and the new rows.
  • NFC-e and inbound and outbound invoices have no change filter in webPosto: each sync reads the new rows and the last Lookback days of movement dates again. Raise Lookback days if documents are often changed later than that.
  • Registers and current stock (produtos_estoques) are read whole on every sync.
  • Financial tables are filtered by movement date and include paid and open bills.

Deleted records

Records deleted in webPosto disappear from its API, so rows already loaded stay in your tables. For financial records (bills, cards, checks, account movements), the financeiros_exclusao table lists every deletion: use tipo and codigo_documento_origem to find the deleted row and filter it out. It needs the API Integração - Gesplan contract.

API Limits & Performance

  • webPosto limits each key to a number of requests per minute, set in your contract. When the limit is reached, the connector waits and continues, and the run log says so. If runs get slow, ask Quality Automação to raise the limit.
  • For faster extractions, select only the streams necessary for your analysis.

Troubleshooting

Skills for agents

Download webPosto skills file

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