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_exclusaotable (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:Open the integrations screen
Create the key
Link a user
Copy the key
- 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_codigoin theempresastable). 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.
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.
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.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 hascodigo, 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 (vendas)
Sales (vendas)
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/VENDASSale items (vendas_itens)
Sale items (vendas_itens)
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/ITENSSale payments (vendas_formas_pagamento)
Sale payments (vendas_formas_pagamento)
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_PAGAMENTOFuel dispensings (abastecimentos)
Fuel dispensings (abastecimentos)
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/ABASTECIMENTOSNFC-e invoices (nfces)
NFC-e invoices (nfces)
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/NFCESLMC (fuel movement book) (lmcs)
LMC (fuel movement book) (lmcs)
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/LMCSCash registers
Cash register shifts (caixas)
Cash register shifts (caixas)
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/CAIXASDeclared cash amounts (caixas_apresentados)
Declared cash amounts (caixas_apresentados)
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_APRESENTADOCash withdrawals (sangrias_caixa)
Cash withdrawals (sangrias_caixa)
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_CAIXACash register movements (movimentacoes_caixa)
Cash register movements (movimentacoes_caixa)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/MOVIMENTACOES_CAIXAFinancial
Bills receivable (titulos_receber)
Bills receivable (titulos_receber)
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_RECEBERBills payable (titulos_pagar)
Bills payable (titulos_pagar)
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_PAGARTrade bills (duplicatas) (duplicatas)
Trade bills (duplicatas) (duplicatas)
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/DUPLICATASCard receivables (cartoes)
Card receivables (cartoes)
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/CARTOESChecks (cheques)
Checks (cheques)
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/CHEQUESCustomer vouchers (vales_clientes)
Customer vouchers (vales_clientes)
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_CLIENTESAccount movements (movimentos_conta)
Account movements (movimentos_conta)
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_CONTAAccounting entries (lancamentos_contabeis)
Accounting entries (lancamentos_contabeis)
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_CONTABEISDeleted financial records (financeiros_exclusao)
Deleted financial records (financeiros_exclusao)
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.Accounts (contas)
Accounts (contas)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CONTASCost centers (centros_custo)
Cost centers (centros_custo)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CENTROS_CUSTOManagement chart of accounts (planos_conta_gerencial)
Management chart of accounts (planos_conta_gerencial)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PLANOS_CONTA_GERENCIALAccounting chart of accounts (planos_conta_contabil)
Accounting chart of accounts (planos_conta_contabil)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PLANOS_CONTA_CONTABILPayment methods (formas_pagamento)
Payment methods (formas_pagamento)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FORMAS_PAGAMENTOCard administrators (administradoras)
Card administrators (administradoras)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/ADMINISTRADORASPurchases and fiscal
Inbound invoices (notas_entrada)
Inbound invoices (notas_entrada)
codigo · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_entrada) · webPosto route: GET /INTEGRACAO/V1/NOTAS_ENTRADAInbound invoice items (notas_entrada_itens)
Inbound invoice items (notas_entrada_itens)
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/ITENSOutbound invoices (NF-e) (notas_saida)
Outbound invoices (NF-e) (notas_saida)
codigo · Sync: Incremental (new rows and the movement dates of the last Lookback days; cursor column data_emissao) · webPosto route: GET /INTEGRACAO/V1/NOTAS_SAIDAOutbound invoice items (notas_saida_itens)
Outbound invoice items (notas_saida_itens)
codigo, nota_item_codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/NOTAS_SAIDA_ITENSRegisters and stock
Branches (empresas)
Branches (empresas)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/EMPRESASCustomers (clientes)
Customers (clientes)
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/CLIENTESCustomers by branch (clientes_empresa)
Customers by branch (clientes_empresa)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/CLIENTES_EMPRESACustomer groups (grupos_cliente)
Customer groups (grupos_cliente)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/GRUPOS_CLIENTESuppliers (fornecedores)
Suppliers (fornecedores)
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/FORNECEDORESEmployees (funcionarios)
Employees (funcionarios)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FUNCIONARIOSEmployee roles (funcoes)
Employee roles (funcoes)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/FUNCOESProducts (produtos)
Products (produtos)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PRODUTOSProducts by branch (produtos_empresa)
Products by branch (produtos_empresa)
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_EMPRESAProduct stock (produtos_estoques)
Product stock (produtos_estoques)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PRODUTOS_ESTOQUESStock locations (estoques)
Stock locations (estoques)
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/ESTOQUESProduct groups (grupos)
Product groups (grupos)
codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/GRUPOSTanks (tanques)
Tanks (tanques)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/TANQUESPumps (bombas)
Pumps (bombas)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/BOMBASNozzles (bicos)
Nozzles (bicos)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/BICOSPoints of sale (pdvs)
Points of sale (pdvs)
empresa_codigo, codigo · Sync: Full table · webPosto route: GET /INTEGRACAO/V1/PDVSImplementation 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), thefinanceiros_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.