> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# webPosto as a data source

> Bring sales, fuel dispensings, cash registers, receivables, payables, invoices and stock from webPosto (Quality Automação) to Nekt.

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).

> [!NOTE]
>
> 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](https://app.nekt.ai/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](https://docs.nekt.com/runs/scheduling-and-triggers.md), 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](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#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](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/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.

| Stream | Slug | Sync | Description |
| - | - | - | - |
| Sales | `vendas` | Incremental | Sales (receipts and invoices), with their items, payments and change as JSON. |
| Sale items | `vendas_itens` | Incremental | One row per item sold (fuel by nozzle, products), with taxes. |
| Sale payments | `vendas_formas_pagamento` | Incremental | One row per payment method used in each sale. |
| Fuel dispensings | `abastecimentos` | Incremental | Fuel dispensings read from the pumps (including calibration checks). |
| NFC-e invoices | `nfces` | Incremental | NFC-e consumer invoices issued for sales, authorized and cancelled. |
| LMC (fuel movement book) | `lmcs` | Incremental | LMC (Livro de Movimentação de Combustíveis): daily fuel book per product, with tanks, nozzles and invoices as JSON. |
| Cash register shifts | `caixas` | Incremental | Cash register shifts (opening, closing, operator). |
| Declared cash amounts | `caixas_apresentados` | Incremental | Amounts declared by operators when closing each cash register shift. |
| Cash withdrawals | `sangrias_caixa` | Incremental | Cash withdrawals (sangrias) from the registers. |
| Cash register movements | `movimentacoes_caixa` | Full table | Every cash register movement (supply, expense, receipt, change). The route has no date filter: read whole. |
| Bills receivable | `titulos_receber` | Incremental | Bills receivable (customer credit sales, invoices). |
| Bills payable | `titulos_pagar` | Incremental | Bills payable, with their payments as JSON. |
| Trade bills (duplicatas) | `duplicatas` | Incremental | Trade bills (duplicatas) issued to customers, with their payments as JSON. |
| Card receivables | `cartoes` | Incremental | Card receivables (credit and debit sales to be paid by the card administrators). |
| Checks | `cheques` | Incremental | Checks received. |
| Customer vouchers | `vales_clientes` | Incremental | Customer vouchers (vales) issued and used. |
| Account movements | `movimentos_conta` | Incremental | Bank and cash account movements (controle bancário). |
| Accounting entries | `lancamentos_contabeis` | Incremental | Accounting entries, with their lines as JSON. |
| Deleted financial records | `financeiros_exclusao` | Incremental | Financial records deleted in webPosto (bills, cards, checks, account movements). |
| Accounts | `contas` | Full table | Bank and cash accounts. |
| Cost centers | `centros_custo` | Full table | Cost centers. |
| Management chart of accounts | `planos_conta_gerencial` | Full table | Management chart of accounts. |
| Accounting chart of accounts | `planos_conta_contabil` | Full table | Accounting chart of accounts. |
| Payment methods | `formas_pagamento` | Full table | Payment methods. |
| Card administrators | `administradoras` | Full table | Card administrators (acquirers) and their fees. |
| Inbound invoices | `notas_entrada` | Incremental | Inbound invoices (purchases), filtered by entry date. |
| Inbound invoice items | `notas_entrada_itens` | Incremental | Items of inbound invoices, filtered by entry date. |
| Outbound invoices (NF-e) | `notas_saida` | Incremental | Outbound NF-e invoices, every status (authorized, cancelled, voided, denied). |
| Outbound invoice items | `notas_saida_itens` | Full table | Items of outbound NF-e invoices. They carry no date of their own, so every run reads them whole. |
| Branches | `empresas` | Full table | Branches (filiais) the integration key can read. |
| Customers | `clientes` | Incremental | Customers, with contacts and vehicle cost centers as JSON. |
| Customers by branch | `clientes_empresa` | Full table | Which customers are linked to which branch. |
| Customer groups | `grupos_cliente` | Full table | Customer groups and their credit limits. |
| Suppliers | `fornecedores` | Incremental | Suppliers, with their bank accounts as JSON. |
| Employees | `funcionarios` | Full table | Employees (pump attendants, cashiers, managers). |
| Employee roles | `funcoes` | Full table | Employee roles. |
| Products | `produtos` | Full table | Products (fuels, convenience store items, services), with barcodes as JSON. |
| Products by branch | `produtos_empresa` | Incremental | Product settings per branch (price, cost, active). |
| Product stock | `produtos_estoques` | Full table | Current stock balance of each product, per branch (a snapshot: read whole every run). |
| Stock locations | `estoques` | Incremental | Stock locations (warehouses, tanks as stock) of each branch. |
| Product groups | `grupos` | Full table | Product groups. |
| Tanks | `tanques` | Full table | Fuel tanks. |
| Pumps | `bombas` | Full table | Fuel pumps. The route takes no pagination parameters: one request per run. |
| Nozzles | `bicos` | Full table | Pump nozzles, with their tank and product. |
| Points of sale | `pdvs` | Full table | Points of sale (PDV) of each branch. |

## 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

> [accordion] Sales (vendas)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `nota_codigo` | Integer | Identifier of the invoice (webPosto field `notaCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `destaca_acrescimo_desconto` | Integer | Highlights surcharge discount (webPosto field `destacaAcrescimoDesconto`) |
> | `cliente_cpf_cnpj` | String | Customer CPF CNPJ (webPosto field `clienteCpfCnpj`) |
> | `data_hora` | Datetime | Date and time of the record (webPosto field `dataHora`) |
> | `nota_numero` | String | Invoice number (webPosto field `notaNumero`) |
> | `nota_serie` | String | Invoice series (webPosto field `notaSerie`) |
> | `total_venda` | Number | Total amount of the sale (webPosto field `totalVenda`) |
> | `caixa_codigo` | Integer | Identifier of the cash register shift (webPosto field `caixaCodigo`) |
> | `nota_chave` | String | Access key of the fiscal document (NF-e/NFC-e) (webPosto field `notaChave`) |
> | `modelo_documento` | String | Fiscal document model (65 = NFC-e, 55 = NF-e, 59 = SAT) (webPosto field `modeloDocumento`) |
> | `cancelada` | String | Whether the record was cancelled (S = yes, N = no) (webPosto field `cancelada`) |
> | `placa_veiculo` | String | License plate vehicle (webPosto field `placaVeiculo`) |
> | `cliente_codigo_externo` | String | Customer code external (webPosto field `clienteCodigoExterno`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `centro_custo_veiculo` | String | Center cost vehicle (webPosto field `centroCustoVeiculo`) |
> | `identificacao_fidelidade` | String | Identification of the loyalty (webPosto field `identificacaoFidelidade`) |
> | `venda_uuid` | String | Sale UUID (webPosto field `vendaUuid`) |
> | `motorista_codigo` | Integer | Identifier of the driver (webPosto field `motoristaCodigo`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `troco` | String (JSON) | Change given in the sale (JSON array of objects) (webPosto field `troco`) |
> | `itens` | String (JSON) | Line items of the record (JSON array of objects) (webPosto field `itens`) |
> | `forma_pagamento` | String (JSON) | Payment methods used in the sale (JSON array of objects) (webPosto field `formaPagamento`) |
> | `empresa_cnpj` | String | Branch (company) CNPJ (webPosto field `empresaCnpj`) |
> | `funcionario_nome` | String | Employee name (webPosto field `funcionarioNome`) |
> | `funcionario_referencia` | String | Employee reference (webPosto field `funcionarioReferencia`) |
> | `caixa_nome` | String | Cash register shift name (webPosto field `caixaNome`) |
> | `data_hora_cancelamento` | Datetime | Date and time of the cancellation (webPosto field `dataHoraCancelamento`) |
> | `justificativa_cancelamento` | String | Justification of the cancellation (webPosto field `justificativaCancelamento`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Sale items (vendas\_itens)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `venda_item_codigo` | Integer | Identifier of the sale item (webPosto field `vendaItemCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `quantidade` | Number | Quantity (webPosto field `quantidade`) |
> | `preco_custo` | Number | Price of the cost (webPosto field `precoCusto`) |
> | `total_custo` | Number | Total of the cost (webPosto field `totalCusto`) |
> | `preco_venda` | Number | Price of the sale (webPosto field `precoVenda`) |
> | `total_venda` | Number | Total amount of the sale (webPosto field `totalVenda`) |
> | `total_desconto` | Number | Total of the discount (webPosto field `totalDesconto`) |
> | `total_acrescimo` | Number | Total of the surcharge (webPosto field `totalAcrescimo`) |
> | `bico_codigo` | Integer | Identifier of the nozzle (webPosto field `bicoCodigo`) |
> | `tanque_codigo` | Integer | Identifier of the tank (webPosto field `tanqueCodigo`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `produto_kit_codigo` | Integer | Identifier of the product kit (webPosto field `produtoKitCodigo`) |
> | `controle_item` | Integer | Control item (webPosto field `controleItem`) |
> | `icms_valor` | Number | ICMS amount (webPosto field `icmsValor`) |
> | `icms_base` | Number | ICMS base (webPosto field `icmsBase`) |
> | `icms_aliquota` | Number | ICMS rate (webPosto field `icmsAliquota`) |
> | `cfop` | String | CFOP (webPosto field `cfop`) |
> | `cst` | String | CST (webPosto field `cst`) |
> | `produto_codigo_externo` | String | Product code external (webPosto field `produtoCodigoExterno`) |
> | `produto_descricao` | String | Product description (webPosto field `produtoDescricao`) |
> | `cst_pis` | String | CST PIS (webPosto field `cstPis`) |
> | `aliquota_pis` | Number | Rate of the PIS (webPosto field `aliquotaPis`) |
> | `base_pis` | Number | Base of the PIS (webPosto field `basePis`) |
> | `valor_pis` | Number | Amount of the PIS (webPosto field `valorPis`) |
> | `cst_cofins` | String | CST COFINS (webPosto field `cstCofins`) |
> | `aliquota_cofins` | Number | Rate of the COFINS (webPosto field `aliquotaCofins`) |
> | `base_cofins` | Number | Base of the COFINS (webPosto field `baseCofins`) |
> | `valor_cofins` | Number | Amount of the COFINS (webPosto field `valorCofins`) |
> | `tributacao_ad_rem` | Number | Taxation ad rem (webPosto field `tributacaoAdRem`) |
> | `valor_tributacao_ad_rem` | Number | Amount of the taxation ad rem (webPosto field `valorTributacaoAdRem`) |
> | `total_venda_bruto` | Number | Total of the sale gross (webPosto field `totalVendaBruto`) |
> | `total_desconto_bruto` | Number | Total of the discount gross (webPosto field `totalDescontoBruto`) |
> | `total_acrescimo_bruto` | Number | Total of the surcharge gross (webPosto field `totalAcrescimoBruto`) |
> | `preco_venda_bruto` | Number | Price of the sale gross (webPosto field `precoVendaBruto`) |
> | `cst_cbs` | String | CST CBS (webPosto field `cstCbs`) |
> | `class_tributaria_cbs` | String | Class tax CBS (webPosto field `classTributariaCbs`) |
> | `bc_cbs` | Number | Tax base of the CBS (webPosto field `bcCbs`) |
> | `aliquota_efetiva_cbs` | Number | Rate of the effective CBS (webPosto field `aliquotaEfetivaCbs`) |
> | `valor_cbs` | Number | Amount of the CBS (webPosto field `valorCbs`) |
> | `cst_ibs` | String | CST IBS (webPosto field `cstIbs`) |
> | `class_tributaria_ibs` | String | Class tax IBS (webPosto field `classTributariaIbs`) |
> | `bc_ibs` | Number | Tax base of the IBS (webPosto field `bcIbs`) |
> | `aliquota_efetiva_ibs` | Number | Rate of the effective IBS (webPosto field `aliquotaEfetivaIbs`) |
> | `valor_ibs` | Number | Amount of the IBS (webPosto field `valorIbs`) |
> | `aliquota_ad_rem_cbs` | Number | Rate of the ad rem CBS (webPosto field `aliquotaAdRemCbs`) |
> | `valor_ad_rem_cbs` | Number | Amount of the ad rem CBS (webPosto field `valorAdRemCbs`) |
> | `aliquota_ad_rem_ibs` | Number | Rate of the ad rem IBS (webPosto field `aliquotaAdRemIbs`) |
> | `valor_ad_rem_ibs` | Number | Amount of the ad rem IBS (webPosto field `valorAdRemIbs`) |
> | `aliquota_cbs` | Number | Rate of the CBS (webPosto field `aliquotaCbs`) |
> | `aliquota_ibs` | Number | Rate of the IBS (webPosto field `aliquotaIbs`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |

> [accordion] Sale payments (vendas\_formas\_pagamento)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `venda_prazo_codigo` | Integer | Identifier of the sale payment term (webPosto field `vendaPrazoCodigo`) |
> | `financeiro_codigo` | Integer | Identifier of the financial (webPosto field `financeiroCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `vencimento` | Date | Due date (webPosto field `vencimento`) |
> | `valor_pagamento` | Number | Amount of the payment (webPosto field `valorPagamento`) |
> | `taxa_percentual` | Number | Fee of the percentage (webPosto field `taxaPercentual`) |
> | `taxa_valor` | Number | Fee of the amount (webPosto field `taxaValor`) |
> | `forma_pagamento_codigo` | Integer | Identifier of the method payment (webPosto field `formaPagamentoCodigo`) |
> | `administradora_codigo` | Integer | Identifier of the card administrator (webPosto field `administradoraCodigo`) |
> | `turno_codigo` | Integer | Identifier of the shift (webPosto field `turnoCodigo`) |
> | `tipo_forma_pagamento` | String | Type of the method payment (webPosto field `tipoFormaPagamento`) |
> | `nome_forma_pagamento` | String | Name of the method payment (webPosto field `nomeFormaPagamento`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Fuel dispensings (abastecimentos)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `data_fiscal` | Date | Date of the fiscal (webPosto field `dataFiscal`) |
> | `hora_fiscal` | String | Time of the fiscal (webPosto field `horaFiscal`) |
> | `codigo_bico` | Integer | Code nozzle (webPosto field `codigoBico`) |
> | `codigo_produto` | String | Code product (webPosto field `codigoProduto`) |
> | `quantidade` | Number | Quantity (webPosto field `quantidade`) |
> | `valor_unitario` | Number | Amount of the unit (webPosto field `valorUnitario`) |
> | `valor_total` | Number | Amount of the total (webPosto field `valorTotal`) |
> | `codigo_frentista` | Integer | Code pump attendant (webPosto field `codigoFrentista`) |
> | `afericao` | Boolean | Pump calibration check (webPosto field `afericao`) |
> | `venda_item_codigo` | Integer | Identifier of the sale item (webPosto field `vendaItemCodigo`) |
> | `preco_cadastro` | Number | Price of the registration (webPosto field `precoCadastro`) |
> | `tabela_preco_a` | Number | Table price a (webPosto field `tabelaPrecoA`) |
> | `tabela_preco_b` | Number | Table price B (webPosto field `tabelaPrecoB`) |
> | `tabela_preco_c` | Number | Table price C (webPosto field `tabelaPrecoC`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `data_hora_abastecimento` | Datetime | Date and time of the fuel dispensing (webPosto field `dataHoraAbastecimento`) |
> | `string_full` | String | Text full (webPosto field `stringFull`) |
> | `placa` | String | License plate (webPosto field `placa`) |
> | `abastecimento_codigo` | Integer | Identifier of the fuel dispensing (webPosto field `abastecimentoCodigo`) |
> | `encerrante` | Number | Totalizer reading (webPosto field `encerrante`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] NFC-e invoices (nfces)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `nfce_codigo` | Integer | Identifier of the NFC-e (webPosto field `nfceCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `numero_documento` | Integer | Number of the document (webPosto field `numeroDocumento`) |
> | `serie_documento` | Integer | Series of the document (webPosto field `serieDocumento`) |
> | `data_emissao` | Date | Issue date of the document (webPosto field `dataEmissao`) |
> | `situacao` | String | Status of the record (webPosto field `situacao`) |
> | `chave_documento` | String | Key of the document (webPosto field `chaveDocumento`) |
> | `protocolo_autorizacao` | String | Protocol authorization (webPosto field `protocoloAutorizacao`) |
> | `protocolo_cancelamento` | String | Protocol cancellation (webPosto field `protocoloCancelamento`) |
> | `protocolo_inutilizacao` | String | Protocol number voiding (webPosto field `protocoloInutilizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] LMC (fuel movement book) (lmcs)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `lmc_codigo` | Integer | Identifier of the LMC (fuel movement book) (webPosto field `lmcCodigo`) |
> | `produto_codigo` | Array | Identifier of the product (webPosto field `produtoCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `abertura` | Number | Opening (webPosto field `abertura`) |
> | `entrada` | Number | Inbound (webPosto field `entrada`) |
> | `saida` | Number | Outbound (webPosto field `saida`) |
> | `perda_sobra` | Number | Loss surplus (webPosto field `perdaSobra`) |
> | `escritural` | Number | Book (webPosto field `escritural`) |
> | `fechamento` | Number | Closing (webPosto field `fechamento`) |
> | `disponivel` | Number | Available (webPosto field `disponivel`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `saldo` | Number | Balance (webPosto field `saldo`) |
> | `preco_custo` | Number | Price of the cost (webPosto field `precoCusto`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `lmc_tanque` | String (JSON) | LMC (fuel movement book) tank (webPosto field `lmcTanque`) |
> | `lmc_bico` | String (JSON) | LMC (fuel movement book) nozzle (webPosto field `lmcBico`) |
> | `lmc_nota` | String (JSON) | LMC (fuel movement book) invoice (webPosto field `lmcNota`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |

### Cash registers

> [accordion] Cash register shifts (caixas)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `caixa_codigo` | Integer | Identifier of the cash register shift (webPosto field `caixaCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `turno_codigo` | Integer | Identifier of the shift (webPosto field `turnoCodigo`) |
> | `turno` | String | Shift (webPosto field `turno`) |
> | `pdv_codigo` | Integer | Identifier of the point of sale (PDV) (webPosto field `pdvCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `centro_custo` | Integer | Center cost (webPosto field `centroCusto`) |
> | `abertura` | Datetime | Opening (webPosto field `abertura`) |
> | `fechamento` | Datetime | Closing (webPosto field `fechamento`) |
> | `fechado` | Boolean | Closed (webPosto field `fechado`) |
> | `consolidado` | Boolean | Consolidated (webPosto field `consolidado`) |
> | `tipo_inclusao` | String | Type of the creation (webPosto field `tipoInclusao`) |
> | `bloqueado` | Boolean | Blocked (webPosto field `bloqueado`) |
> | `tipo_bloqueio` | String | Type of the block (webPosto field `tipoBloqueio`) |
> | `apurado` | Number | Computed (webPosto field `apurado`) |
> | `diferenca` | Number | Difference (webPosto field `diferenca`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Declared cash amounts (caixas\_apresentados)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `caixa_codigo` | Integer | Identifier of the cash register shift (webPosto field `caixaCodigo`) |
> | `dinheiro_apresentado` | Number | Cash declared (webPosto field `dinheiroApresentado`) |
> | `dinheiro_apurado` | Number | Cash computed (webPosto field `dinheiroApurado`) |
> | `dinheiro_diferenca` | Number | Cash difference (webPosto field `dinheiroDiferenca`) |
> | `nota_prazo_apresentado` | Number | Invoice payment term declared (webPosto field `notaPrazoApresentado`) |
> | `nota_prazo_apurado` | Number | Invoice payment term computed (webPosto field `notaPrazoApurado`) |
> | `nota_prazo_diferenca` | Number | Invoice payment term difference (webPosto field `notaPrazoDiferenca`) |
> | `cheque_apresentado` | Number | Check declared (webPosto field `chequeApresentado`) |
> | `cheque_apurado` | Number | Check computed (webPosto field `chequeApurado`) |
> | `cheque_diferenca` | Number | Check difference (webPosto field `chequeDiferenca`) |
> | `cheque_pre_apresentado` | Number | Check pre declared (webPosto field `chequePreApresentado`) |
> | `cheque_pre_apurado` | Number | Check pre computed (webPosto field `chequePreApurado`) |
> | `cheque_pre_diferenca` | Number | Check pre difference (webPosto field `chequePreDiferenca`) |
> | `cartao_apresentado` | Number | Card declared (webPosto field `cartaoApresentado`) |
> | `cartao_apurado` | Number | Card computed (webPosto field `cartaoApurado`) |
> | `cartao_diferenca` | Number | Card difference (webPosto field `cartaoDiferenca`) |
> | `carta_frete_apresentado` | Number | Letter freight declared (webPosto field `cartaFreteApresentado`) |
> | `carta_frete_apurado` | Number | Letter freight computed (webPosto field `cartaFreteApurado`) |
> | `carta_frete_diferenca` | Number | Letter freight difference (webPosto field `cartaFreteDiferenca`) |
> | `vale_cliente_apresentado` | Number | Voucher customer declared (webPosto field `valeClienteApresentado`) |
> | `vale_cliente_apurado` | Number | Voucher customer computed (webPosto field `valeClienteApurado`) |
> | `vale_cliente_diferenca` | Number | Voucher customer difference (webPosto field `valeClienteDiferenca`) |
> | `emprestimo_apresentado` | Number | Loan declared (webPosto field `emprestimoApresentado`) |
> | `emprestimo_apurado` | Number | Loan computed (webPosto field `emprestimoApurado`) |
> | `emprestimo_diferenca` | Number | Loan difference (webPosto field `emprestimoDiferenca`) |
> | `pre_pag_apresentado` | Number | Pre payment declared (webPosto field `prePagApresentado`) |
> | `pre_pag_apurado` | Number | Pre payment computed (webPosto field `prePagApurado`) |
> | `pre_pag_diferenca` | Number | Pre payment difference (webPosto field `prePagDiferenca`) |
> | `despesa_apresentado` | Number | Expense declared (webPosto field `despesaApresentado`) |
> | `despesa_apurado` | Number | Expense computed (webPosto field `despesaApurado`) |
> | `despesa_diferenca` | Number | Expense difference (webPosto field `despesaDiferenca`) |
> | `vale_fun_apresentado` | Number | Voucher employee declared (webPosto field `valeFunApresentado`) |
> | `vale_fun_apurado` | Number | Voucher employee computed (webPosto field `valeFunApurado`) |
> | `vale_fun_diferenca` | Number | Voucher employee difference (webPosto field `valeFunDiferenca`) |
> | `cheque_pagar_apresentado` | Number | Check payable declared (webPosto field `chequePagarApresentado`) |
> | `cheque_pagar_apurado` | Number | Check payable computed (webPosto field `chequePagarApurado`) |
> | `cheque_pagar_diferenca` | Number | Check payable difference (webPosto field `chequePagarDiferenca`) |
> | `transf_banc_apresentado` | Number | Transfer bank declared (webPosto field `transfBancApresentado`) |
> | `transf_banc_apurado` | Number | Transfer bank computed (webPosto field `transfBancApurado`) |
> | `transf_banc_diferenca` | Number | Transfer bank difference (webPosto field `transfBancDiferenca`) |
> | `transf_deb_apresentado` | Number | Transfer debit declared (webPosto field `transfDebApresentado`) |
> | `transf_deb_apurado` | Number | Transfer debit computed (webPosto field `transfDebApurado`) |
> | `transf_deb_diferenca` | Number | Transfer debit difference (webPosto field `transfDebDiferenca`) |
> | `fundo_cx_deb_apresentado` | Number | Fund cash register debit declared (webPosto field `fundoCxDebApresentado`) |
> | `fundo_cx_deb_apurado` | Number | Fund cash register debit computed (webPosto field `fundoCxDebApurado`) |
> | `fundo_cx_deb_diferenca` | Number | Fund cash register debit difference (webPosto field `fundoCxDebDiferenca`) |
> | `vale_cliente` | Number | Voucher customer (webPosto field `valeCliente`) |
> | `suprimento_caixa` | Number | Cash supply cash register shift (webPosto field `suprimentoCaixa`) |
> | `recebimento_caixa` | Number | Receipt cash register shift (webPosto field `recebimentoCaixa`) |
> | `cheque_troco` | Number | Check change given (webPosto field `chequeTroco`) |
> | `servico_caixa` | Number | Service cash register shift (webPosto field `servicoCaixa`) |
> | `pre_pago_credito` | Number | Pre paid credit (webPosto field `prePagoCredito`) |
> | `fundo_caixa_credito` | Number | Fund cash register shift credit (webPosto field `fundoCaixaCredito`) |
> | `ordem_pagamento` | Number | Order payment (webPosto field `ordemPagamento`) |
> | `pagamento_caixa` | Number | Payment cash register shift (webPosto field `pagamentoCaixa`) |
> | `saida_troca_valor` | Number | Outbound exchange amount (webPosto field `saidaTrocaValor`) |
> | `consolidado` | Boolean | Consolidated (webPosto field `consolidado`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Cash withdrawals (sangrias\_caixa)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `sangria_codigo` | Integer | Identifier of the cash withdrawal (webPosto field `sangriaCodigo`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `caixa_codigo` | Integer | Identifier of the cash register shift (webPosto field `caixaCodigo`) |
> | `conta_codigo` | Integer | Identifier of the account (webPosto field `contaCodigo`) |
> | `usuario_codigo` | Integer | Identifier of the user (webPosto field `usuarioCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `dinheiro` | Number | Cash (webPosto field `dinheiro`) |
> | `cheque` | Number | Check (webPosto field `cheque`) |
> | `cartao` | Number | Card (webPosto field `cartao`) |
> | `nota` | Number | Invoice (webPosto field `nota`) |
> | `carta_frete` | Number | Letter freight (webPosto field `cartaFrete`) |
> | `emprestimo` | Number | Loan (webPosto field `emprestimo`) |
> | `despesa` | Number | Expense (webPosto field `despesa`) |
> | `cheque_pre` | Number | Check pre (webPosto field `chequePre`) |
> | `vale` | Number | Voucher (webPosto field `vale`) |
> | `transferencia` | Number | Transfer (webPosto field `transferencia`) |
> | `data_sangria` | Date | Date of the cash withdrawal (webPosto field `dataSangria`) |
> | `hora_sangria` | String | Time of the cash withdrawal (webPosto field `horaSangria`) |
> | `data_hora_coleta` | Datetime | Date and time of the collection (webPosto field `dataHoraColeta`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `alterada` | Boolean | Changed (webPosto field `alterada`) |
> | `coo` | String | COO (receipt counter) (webPosto field `coo`) |
> | `numero_documento` | String | Number of the document (webPosto field `numeroDocumento`) |
> | `observacao` | String | Free-text note (webPosto field `observacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Cash register movements (movimentacoes\_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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `caixa_movimento_codigo` | Integer | Identifier of the cash register shift movement (webPosto field `caixaMovimentoCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `usuario_codigo` | Integer | Identifier of the user (webPosto field `usuarioCodigo`) |
> | `valor_caixa_movimento` | Number | Amount of the cash register shift movement (webPosto field `valorCaixaMovimento`) |
> | `ultima_alteracao` | Datetime | Last change (webPosto field `ultimaAlteracao`) |
> | `descricao_coo` | String | Description of the COO (receipt counter) (webPosto field `descricaoCoo`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `descricao_historico` | String | Description of the history (webPosto field `descricaoHistorico`) |
> | `plano_conta_codigo` | Integer | Identifier of the chart of accounts account (webPosto field `planoContaCodigo`) |
> | `duplicata_codigo` | Integer | Identifier of the trade bill (duplicata) (webPosto field `duplicataCodigo`) |
> | `valor_dinheiro` | Number | Amount of the cash (webPosto field `valorDinheiro`) |
> | `valor_cheque` | Number | Amount of the check (webPosto field `valorCheque`) |
> | `alterado` | Boolean | Changed (webPosto field `alterado`) |
> | `tipo_inclusao` | String | Type of the creation (webPosto field `tipoInclusao`) |
> | `valor_acrescimo` | Number | Amount of the surcharge (webPosto field `valorAcrescimo`) |
> | `valor_desconto` | Number | Amount of the discount (webPosto field `valorDesconto`) |
> | `valor_cartao` | Number | Amount of the card (webPosto field `valorCartao`) |
> | `valor_pre_pago` | Number | Amount of the pre paid (webPosto field `valorPrePago`) |
> | `valor_nota` | Number | Amount of the invoice (webPosto field `valorNota`) |
> | `valor_vale` | Number | Amount of the voucher (webPosto field `valorVale`) |
> | `valor_troco_dinheiro` | Number | Amount of the change given cash (webPosto field `valorTrocoDinheiro`) |
> | `cheque_remessa_codigo` | Integer | Identifier of the check remittance (webPosto field `chequeRemessaCodigo`) |
> | `cheque_pagar_codigo` | Integer | Identifier of the check payable (webPosto field `chequePagarCodigo`) |
> | `valor_troco_pre_pago` | Number | Amount of the change given pre paid (webPosto field `valorTrocoPrePago`) |
> | `valor_troco_vale` | Number | Amount of the change given voucher (webPosto field `valorTrocoVale`) |
> | `fundo_caixa` | Boolean | Fund cash register shift (webPosto field `fundoCaixa`) |
> | `valor_troco_cheque` | Number | Amount of the change given check (webPosto field `valorTrocoCheque`) |
> | `plano_conta_contabil_codigo` | Integer | Identifier of the chart of accounts account accounting (webPosto field `planoContaContabilCodigo`) |
> | `conta_codigo` | Integer | Identifier of the account (webPosto field `contaCodigo`) |
> | `descricao_documento` | String | Description of the document (webPosto field `descricaoDocumento`) |
> | `valor_transferencia` | Number | Amount of the transfer (webPosto field `valorTransferencia`) |
> | `adiantamento_codigo` | Integer | Identifier of the advance payment (webPosto field `adiantamentoCodigo`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

### Financial

> [accordion] Bills receivable (titulos\_receber)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `titulo_codigo` | Integer | Identifier of the bill (webPosto field `tituloCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `data_vencimento` | Date | Due date (webPosto field `dataVencimento`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `duplicata_codigo` | Integer | Identifier of the trade bill (duplicata) (webPosto field `duplicataCodigo`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `pendente` | Boolean | Pending (webPosto field `pendente`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `data_pagamento` | Date | Payment date (webPosto field `dataPagamento`) |
> | `plano_conta_gerencial_codigo` | Integer | Identifier of the chart of accounts account management (webPosto field `planoContaGerencialCodigo`) |
> | `nome_cliente` | String | Name of the customer (webPosto field `nomeCliente`) |
> | `cpf_cnpj_cliente` | String | CPF CNPJ customer (webPosto field `cpfCnpjCliente`) |
> | `convertido` | Boolean | Converted (webPosto field `convertido`) |
> | `documento` | String | Document (webPosto field `documento`) |
> | `titulo_numero` | Integer | Bill number (webPosto field `tituloNumero`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Bills payable (titulos\_pagar)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `titulo_pagar_codigo` | Integer | Identifier of the bill payable (webPosto field `tituloPagarCodigo`) |
> | `nota_entrada_codigo` | Integer | Identifier of the invoice inbound (webPosto field `notaEntradaCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `vencimento` | Date | Due date (webPosto field `vencimento`) |
> | `data_pagamento` | Date | Payment date (webPosto field `dataPagamento`) |
> | `situacao` | String | Status of the record (webPosto field `situacao`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `tipo_lancamento` | String | Type of the entry (webPosto field `tipoLancamento`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `valor_pago` | Number | Amount of the paid (webPosto field `valorPago`) |
> | `desconto` | Number | Discount (webPosto field `desconto`) |
> | `acrescimo` | Number | Surcharge (webPosto field `acrescimo`) |
> | `cheque` | Number | Check (webPosto field `cheque`) |
> | `dinheiro` | Number | Cash (webPosto field `dinheiro`) |
> | `troco` | Number | Change given in the sale (JSON array of objects) (webPosto field `troco`) |
> | `adiantamento` | Number | Advance payment (webPosto field `adiantamento`) |
> | `cartao` | Number | Card (webPosto field `cartao`) |
> | `fornecedor_codigo` | Integer | Identifier of the supplier (webPosto field `fornecedorCodigo`) |
> | `fornecedor_intermediador_codigo` | Integer | Identifier of the supplier intermediary (webPosto field `fornecedorIntermediadorCodigo`) |
> | `plano_conta_gerencial_codigo` | Integer | Identifier of the chart of accounts account management (webPosto field `planoContaGerencialCodigo`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `numero_titulo` | String | Number of the bill (webPosto field `numeroTitulo`) |
> | `nome_fornecedor` | String | Name of the supplier (webPosto field `nomeFornecedor`) |
> | `cpf_cnpj_fornecedor` | String | CPF CNPJ supplier (webPosto field `cpfCnpjFornecedor`) |
> | `pagamento` | String (JSON) | Payments made on the bill (JSON array of objects) (webPosto field `pagamento`) |
> | `numero_remessa` | Integer | Number of the remittance (webPosto field `numeroRemessa`) |
> | `plano_conta_gerencial_nivel` | String | Chart of accounts account management level (webPosto field `planoContaGerencialNivel`) |
> | `plano_conta_gerencial_descricao` | String | Chart of accounts account management description (webPosto field `planoContaGerencialDescricao`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `centro_custo_descricao` | String | Center cost description (webPosto field `centroCustoDescricao`) |
> | `parcela` | Integer | Installment (webPosto field `parcela`) |
> | `quantidade_parcelas` | Integer | Quantity of the installments (webPosto field `quantidadeParcelas`) |
> | `linha_digitavel` | String | Line typeable (webPosto field `linhaDigitavel`) |
> | `autorizado` | Boolean | Authorized (webPosto field `autorizado`) |
> | `nosso_numero` | String | Our number (webPosto field `nossoNumero`) |
> | `banco_fornecedor` | String | Bank supplier (webPosto field `bancoFornecedor`) |
> | `agencia_fornecedor` | String | Bank branch supplier (webPosto field `agenciaFornecedor`) |
> | `conta_fornecedor` | String | Account supplier (webPosto field `contaFornecedor`) |
> | `tipo_chave_pix_fornecedor` | String | Type of the key Pix supplier (webPosto field `tipoChavePixFornecedor`) |
> | `chave_pix_fornecedor` | String | Key of the Pix supplier (webPosto field `chavePixFornecedor`) |
> | `qr_code_pix` | String | QR code Pix (webPosto field `qrCodePix`) |
> | `tipo_tributo` | String | Type of the tax (webPosto field `tipoTributo`) |
> | `codigo_receita_tributo` | Integer | Code revenue tax (webPosto field `codigoReceitaTributo`) |
> | `renavam` | String | RENAVAM (webPosto field `renavam`) |
> | `placa` | String | License plate (webPosto field `placa`) |
> | `codigo_municipio` | Integer | Code municipality (webPosto field `codigoMunicipio`) |
> | `digito_fgts` | Integer | Check digit FGTS (webPosto field `digitoFgts`) |
> | `lacre_con_social_fgts` | Integer | Seal reconciliation corporate FGTS (webPosto field `lacreConSocialFgts`) |
> | `identificador_fgts` | Integer | Identifier FGTS (webPosto field `identificadorFgts`) |
> | `observacao` | String | Free-text note (webPosto field `observacao`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Trade bills (duplicatas) (duplicatas)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `duplicata_codigo` | Integer | Identifier of the trade bill (duplicata) (webPosto field `duplicataCodigo`) |
> | `data_pagamento` | Date | Payment date (webPosto field `dataPagamento`) |
> | `valor_pago` | Number | Amount of the paid (webPosto field `valorPago`) |
> | `pendente` | Boolean | Pending (webPosto field `pendente`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `vencimento` | Date | Due date (webPosto field `vencimento`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `valor_duplicata` | Number | Amount of the trade bill (duplicata) (webPosto field `valorDuplicata`) |
> | `situacao` | String | Status of the record (webPosto field `situacao`) |
> | `valor_acrescimo` | Number | Amount of the surcharge (webPosto field `valorAcrescimo`) |
> | `valor_desconto` | Number | Amount of the discount (webPosto field `valorDesconto`) |
> | `valor_liquido` | Number | Amount of the net (webPosto field `valorLiquido`) |
> | `numero_documento` | String | Number of the document (webPosto field `numeroDocumento`) |
> | `nosso_numero` | String | Our number (webPosto field `nossoNumero`) |
> | `nome_cliente` | String | Name of the customer (webPosto field `nomeCliente`) |
> | `cpf_cnpj_cliente` | String | CPF CNPJ customer (webPosto field `cpfCnpjCliente`) |
> | `pagamento` | String (JSON) | Payments made on the bill (JSON array of objects) (webPosto field `pagamento`) |
> | `remessa_boleto` | String | Remittance bank slip (webPosto field `remessaBoleto`) |
> | `hierarquia_plano_conta` | String | Hierarchy chart of accounts account (webPosto field `hierarquiaPlanoConta`) |
> | `plano_conta_gerencial_codigo` | Integer | Identifier of the chart of accounts account management (webPosto field `planoContaGerencialCodigo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Card receivables (cartoes)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `cartao_codigo` | Integer | Identifier of the card (webPosto field `cartaoCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `vencimento` | Date | Due date (webPosto field `vencimento`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `parcela` | Integer | Installment (webPosto field `parcela`) |
> | `taxa_percentual` | Number | Fee of the percentage (webPosto field `taxaPercentual`) |
> | `administradora_codigo` | Integer | Identifier of the card administrator (webPosto field `administradoraCodigo`) |
> | `adiministradora_descricao` | String | Card administrator description (webPosto field `adiministradoraDescricao`) |
> | `cliente_referencia` | String | Customer reference (webPosto field `clienteReferencia`) |
> | `cliente_razao` | String | Customer legal name (webPosto field `clienteRazao`) |
> | `cliente_cpf_cnpj` | String | Customer CPF CNPJ (webPosto field `clienteCpfCnpj`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `centro_custo_descricao` | String | Center cost description (webPosto field `centroCustoDescricao`) |
> | `data_pagamento` | Date | Payment date (webPosto field `dataPagamento`) |
> | `tipo_inclusao` | String | Type of the creation (webPosto field `tipoInclusao`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `hora_movimento` | String | Time of the movement (webPosto field `horaMovimento`) |
> | `data_fiscal` | Date | Date of the fiscal (webPosto field `dataFiscal`) |
> | `pendente` | Boolean | Pending (webPosto field `pendente`) |
> | `nsu` | String | Nsu (webPosto field `nsu`) |
> | `autorizacao` | String | Authorization (webPosto field `autorizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `codigo_bandeira` | String | Code card brand (webPosto field `codigoBandeira`) |
> | `nsu_tef` | String | Nsu TEF (webPosto field `nsuTef`) |

> [accordion] Checks (cheques)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `cheque_codigo` | Integer | Identifier of the check (webPosto field `chequeCodigo`) |
> | `venda_codigo` | Integer | Identifier of the sale (webPosto field `vendaCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `bom_para` | Date | Good to (webPosto field `bomPara`) |
> | `data_pagamento` | Date | Payment date (webPosto field `dataPagamento`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `codigo_banco` | String | Code bank (webPosto field `codigoBanco`) |
> | `banco` | String | Bank (webPosto field `banco`) |
> | `agencia` | String | Bank branch (webPosto field `agencia`) |
> | `conta_cheque` | String | Account check (webPosto field `contaCheque`) |
> | `emitente` | String | Issuer (webPosto field `emitente`) |
> | `cpf_cnpj_emitente` | String | CPF CNPJ issuer (webPosto field `cpfCnpjEmitente`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `devolvido` | Boolean | Returned (webPosto field `devolvido`) |
> | `alinea` | String | Return reason code (webPosto field `alinea`) |
> | `tipo_inclusao` | String | Type of the creation (webPosto field `tipoInclusao`) |
> | `pendente` | Boolean | Pending (webPosto field `pendente`) |
> | `numero_cheque` | String | Number of the check (webPosto field `numeroCheque`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Customer vouchers (vales\_clientes)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `vale_cliente_codigo` | Integer | Identifier of the voucher customer (webPosto field `valeClienteCodigo`) |
> | `numero_vale` | Integer | Number of the voucher (webPosto field `numeroVale`) |
> | `valor_total` | Number | Amount of the total (webPosto field `valorTotal`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `emitente` | String | Issuer (webPosto field `emitente`) |
> | `data_vale` | Date | Date of the voucher (webPosto field `dataVale`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `mapeamento_operacao_utilizado_codigo` | Integer | Identifier of the mapping operation used (webPosto field `mapeamentoOperacaoUtilizadoCodigo`) |
> | `mapeamento_operacao_gerado_codigo` | Integer | Identifier of the mapping operation generated (webPosto field `mapeamentoOperacaoGeradoCodigo`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `observacao` | String | Free-text note (webPosto field `observacao`) |
> | `venda_utilizacao_codigo` | String | Identifier of the sale use (webPosto field `vendaUtilizacaoCodigo`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Account movements (movimentos\_conta)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `movimento_conta_codigo` | Integer | Identifier of the movement account (webPosto field `movimentoContaCodigo`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `tipo_documento_origem` | String | Type of the document origin (webPosto field `tipoDocumentoOrigem`) |
> | `codigo_tipo_documento_origem` | Integer | Code type document origin (webPosto field `codigoTipoDocumentoOrigem`) |
> | `documento_origem_codigo` | Integer | Identifier of the document origin (webPosto field `documentoOrigemCodigo`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `conciliado` | Boolean | Reconciled (webPosto field `conciliado`) |
> | `evento` | Datetime | Event (webPosto field `evento`) |
> | `saldo` | Number | Balance (webPosto field `saldo`) |
> | `conta_codigo` | Integer | Identifier of the account (webPosto field `contaCodigo`) |
> | `plano_conta_gerencial_codigo` | Integer | Identifier of the chart of accounts account management (webPosto field `planoContaGerencialCodigo`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `documento` | String | Document (webPosto field `documento`) |
> | `lote` | String | Batch (webPosto field `lote`) |
> | `dara_hora_conciliacao` | Datetime | DARA time reconciliation (webPosto field `daraHoraConciliacao`) |
> | `usuario_conciliacao` | String | User reconciliation (webPosto field `usuarioConciliacao`) |
> | `codigo_pessoa` | Integer | Code person (webPosto field `codigoPessoa`) |
> | `tipo_pessoa` | String | Type of the person (webPosto field `tipoPessoa`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Accounting entries (lancamentos\_contabeis)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `data` | Date | Date (webPosto field `data`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `lote_contabil` | Integer | Batch accounting (webPosto field `loteContabil`) |
> | `lote` | Integer | Batch (webPosto field `lote`) |
> | `sigla` | String | Abbreviation (webPosto field `sigla`) |
> | `debito` | Number | Debit (webPosto field `debito`) |
> | `credito` | Number | Credit (webPosto field `credito`) |
> | `lancamento_itens` | String (JSON) | Entry items (webPosto field `lancamentoItens`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Deleted financial records (financeiros\_exclusao)
>
> 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_EXCLUSAO`
>
> Also needs the *API Integração - Gesplan* contract.
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `codigo_documento_origem` | Integer | Identifier of the deleted financial document in its own table (title, card, check, account movement…) (webPosto field `codigoDocumentoOrigem`) |
> | `valor` | Number | Amount (webPosto field `valor`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `data_exclusao` | Datetime | Date and time the record was deleted in webPosto (webPosto field `dataExclusao`) |
> | `usuario_exclusao` | Integer | Identifier of the user who deleted the record (webPosto field `usuarioExclusao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Accounts (contas)
>
> Bank and cash accounts.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/CONTAS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `conta_codigo` | Integer | Identifier of the account (webPosto field `contaCodigo`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `saldo_atual` | Number | Balance of the current (webPosto field `saldoAtual`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `usa_ofx` | Boolean | Uses OFX (webPosto field `usaOfx`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Cost centers (centros\_custo)
>
> Cost centers.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/CENTROS_CUSTO`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `centro_custo_codigo_externo` | String | Center cost code external (webPosto field `centroCustoCodigoExterno`) |
> | `tipo_centro_custo` | String | Type of the center cost (webPosto field `tipoCentroCusto`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Management chart of accounts (planos\_conta\_gerencial)
>
> Management chart of accounts.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/PLANOS_CONTA_GERENCIAL`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `plano_conta_codigo` | Integer | Identifier of the chart of accounts account (webPosto field `planoContaCodigo`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `hierarquia` | String | Hierarchy (webPosto field `hierarquia`) |
> | `apura_dre` | Boolean | Computes income statement (DRE) (webPosto field `apuraDre`) |
> | `natureza` | String | Nature (webPosto field `natureza`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Accounting chart of accounts (planos\_conta\_contabil)
>
> Accounting chart of accounts.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/PLANOS_CONTA_CONTABIL`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `plano_conta_contabil_codigo` | Integer | Identifier of the chart of accounts account accounting (webPosto field `planoContaContabilCodigo`) |
> | `plano_conta_contabil` | String | Chart of accounts account accounting (webPosto field `planoContaContabil`) |
> | `hierarquia` | String | Hierarchy (webPosto field `hierarquia`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `nivel` | Integer | Level (webPosto field `nivel`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Payment methods (formas\_pagamento)
>
> Payment methods.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/FORMAS_PAGAMENTO`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `forma_pagamento_codigo` | Integer | Identifier of the method payment (webPosto field `formaPagamentoCodigo`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `dias_vencimento` | Integer | Days of the due date (webPosto field `diasVencimento`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Card administrators (administradoras)
>
> Card administrators (acquirers) and their fees.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/ADMINISTRADORAS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `administradora_codigo` | Integer | Identifier of the card administrator (webPosto field `administradoraCodigo`) |
> | `administradora_codigo_externo` | String | Card administrator code external (webPosto field `administradoraCodigoExterno`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `gestora_codigo` | Integer | Identifier of the manager company (webPosto field `gestoraCodigo`) |
> | `administradora_edi` | String | Card administrator EDI (webPosto field `administradoraEdi`) |
> | `administradora_produto_edi` | String | Card administrator product EDI (webPosto field `administradoraProdutoEdi`) |
> | `tipo_edi` | String | Type of the EDI (webPosto field `tipoEdi`) |
> | `administradora_referencia` | String | Card administrator reference (webPosto field `administradoraReferencia`) |
> | `percentual_comissao` | Number | Percentage of the commission (webPosto field `percentualComissao`) |
> | `percentual_antecipacao` | Number | Percentage of the prepayment (webPosto field `percentualAntecipacao`) |
> | `taxa_transacao` | Number | Fee of the transaction (webPosto field `taxaTransacao`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `remessa_individual` | Boolean | Remittance individual (webPosto field `remessaIndividual`) |

### Purchases and fiscal

> [accordion] Inbound invoices (notas\_entrada)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `compra_codigo` | Integer | Identifier of the purchase (webPosto field `compraCodigo`) |
> | `nota_entrada_codigo` | Integer | Identifier of the invoice inbound (webPosto field `notaEntradaCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `data_entrada` | Date | Date of the inbound (webPosto field `dataEntrada`) |
> | `nota_numero` | String | Invoice number (webPosto field `notaNumero`) |
> | `nota_serie` | String | Invoice series (webPosto field `notaSerie`) |
> | `fornecedor_codigo` | Integer | Identifier of the supplier (webPosto field `fornecedorCodigo`) |
> | `transportador_codigo` | Integer | Identifier of the carrier (webPosto field `transportadorCodigo`) |
> | `placa_veiculo` | String | License plate vehicle (webPosto field `placaVeiculo`) |
> | `placa_reboque` | String | License plate trailer (webPosto field `placaReboque`) |
> | `valor_total` | Number | Amount of the total (webPosto field `valorTotal`) |
> | `valor_frete` | Number | Amount of the freight (webPosto field `valorFrete`) |
> | `tipo_frete` | String | Type of the freight (webPosto field `tipoFrete`) |
> | `chave_documento` | String | Key of the document (webPosto field `chaveDocumento`) |
> | `modelo_documento` | String | Fiscal document model (65 = NFC-e, 55 = NF-e, 59 = SAT) (webPosto field `modeloDocumento`) |
> | `cte_numero` | String | CT-e number (webPosto field `cteNumero`) |
> | `cte_data_emissao` | Date | CT-e date issue (webPosto field `cteDataEmissao`) |
> | `valor_total_produtos` | Number | Amount of the total products (webPosto field `valorTotalProdutos`) |
> | `bc_icms` | Number | Tax base of the ICMS (webPosto field `bcIcms`) |
> | `valor_icms` | Number | Amount of the ICMS (webPosto field `valorIcms`) |
> | `icms_desonerado` | Number | ICMS tax-relieved (webPosto field `icmsDesonerado`) |
> | `bc_icms_st` | Number | Tax base of the ICMS ST (webPosto field `bcIcmsSt`) |
> | `valor_icms_st` | Number | Amount of the ICMS ST (webPosto field `valorIcmsSt`) |
> | `fcp_st` | Number | FCP ST (webPosto field `fcpSt`) |
> | `isento` | Number | Exempt (webPosto field `isento`) |
> | `seguro` | Number | Insurance (webPosto field `seguro`) |
> | `desconto` | Number | Discount (webPosto field `desconto`) |
> | `outras_despesas_acessorias` | Number | Other expenses ancillary (webPosto field `outrasDespesasAcessorias`) |
> | `valor_ipi` | Number | Amount of the IPI (webPosto field `valorIpi`) |
> | `observacao` | String | Free-text note (webPosto field `observacao`) |
> | `informacao_complementar` | String | Information supplementary (webPosto field `informacaoComplementar`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `uso_consumo` | Boolean | Use consumption (webPosto field `usoConsumo`) |
> | `finalidade` | String | Purpose (webPosto field `finalidade`) |
> | `cnpj_cpf_fornecedor` | String | CNPJ CPF supplier (webPosto field `cnpjCpfFornecedor`) |
> | `valor_cbs` | Number | Amount of the CBS (webPosto field `valorCbs`) |
> | `valor_ibs` | Number | Amount of the IBS (webPosto field `valorIbs`) |
> | `valor_is` | Number | Amount of the IS (webPosto field `valorIs`) |

> [accordion] Inbound invoice items (notas\_entrada\_itens)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `compra_codigo` | Integer | Identifier of the purchase (webPosto field `compraCodigo`) |
> | `nota_entrada_codigo` | Integer | Identifier of the invoice inbound (webPosto field `notaEntradaCodigo`) |
> | `data_movimento` | Date | Movement (business) date of the record (webPosto field `dataMovimento`) |
> | `data_entrada` | Date | Date of the inbound (webPosto field `dataEntrada`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `quantidade` | Number | Quantity (webPosto field `quantidade`) |
> | `preco_custo` | Number | Price of the cost (webPosto field `precoCusto`) |
> | `total_custo` | Number | Total of the cost (webPosto field `totalCusto`) |
> | `preco_compra` | Number | Price of the purchase (webPosto field `precoCompra`) |
> | `total_compra` | Number | Total of the purchase (webPosto field `totalCompra`) |
> | `total_desconto` | Number | Total of the discount (webPosto field `totalDesconto`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `cfop` | String | CFOP (webPosto field `cfop`) |
> | `cst` | String | CST (webPosto field `cst`) |
> | `csosn` | String | CSOSN (webPosto field `csosn`) |
> | `cest` | String | CEST (webPosto field `cest`) |
> | `ncm` | String | NCM (webPosto field `ncm`) |
> | `frete` | Number | Freight (webPosto field `frete`) |
> | `unidade_compra` | String | Unit purchase (webPosto field `unidadeCompra`) |
> | `bc_icms` | Number | Tax base of the ICMS (webPosto field `bcIcms`) |
> | `aliq_icms` | Number | Rate of the ICMS (webPosto field `aliqIcms`) |
> | `valor_icms` | Number | Amount of the ICMS (webPosto field `valorIcms`) |
> | `aliq_reducao` | Number | Rate of the reduction (webPosto field `aliqReducao`) |
> | `bc_substituicao` | Number | Tax base of the substitution (webPosto field `bcSubstituicao`) |
> | `valor_substituicao` | Number | Amount of the substitution (webPosto field `valorSubstituicao`) |
> | `icms_da_operacao` | Number | ICMS of operation (webPosto field `icmsDaOperacao`) |
> | `icms_diferido` | Number | ICMS deferred (webPosto field `icmsDiferido`) |
> | `aliq_diferimento` | Number | Rate of the deferral (webPosto field `aliqDiferimento`) |
> | `aliq_fcp` | Number | Rate of the FCP (webPosto field `aliqFcp`) |
> | `valor_fcp` | Number | Amount of the FCP (webPosto field `valorFcp`) |
> | `aliqfcp_st` | Number | FCP rate ST (webPosto field `aliqfcpSt`) |
> | `bc_fcp_st` | Number | Tax base of the FCP ST (webPosto field `bcFcpSt`) |
> | `valor_fcp_st` | Number | Amount of the FCP ST (webPosto field `valorFcpSt`) |
> | `aliq_ipi` | Number | Rate of the IPI (webPosto field `aliqIpi`) |
> | `valor_ipi` | Number | Amount of the IPI (webPosto field `valorIpi`) |
> | `bc_icms_uf_dest` | Number | Tax base of the ICMS state (UF) destination (webPosto field `bcIcmsUfDest`) |
> | `aliq_icms_inter` | Number | Rate of the ICMS interstate (webPosto field `aliqIcmsInter`) |
> | `aliq_icms_uf_dest` | Number | Rate of the ICMS state (UF) destination (webPosto field `aliqIcmsUfDest`) |
> | `valor_icms_uf_destino` | Number | Amount of the ICMS state (UF) destination (webPosto field `valorIcmsUfDestino`) |
> | `cst_pis` | String | CST PIS (webPosto field `cstPis`) |
> | `bc_pis` | Number | Tax base of the PIS (webPosto field `bcPis`) |
> | `aliq_pis` | Number | Rate of the PIS (webPosto field `aliqPis`) |
> | `valor_pis` | Number | Amount of the PIS (webPosto field `valorPis`) |
> | `cst_cofins` | String | CST COFINS (webPosto field `cstCofins`) |
> | `bc_cofins` | Number | Tax base of the COFINS (webPosto field `bcCofins`) |
> | `aliq_cofins` | Number | Rate of the COFINS (webPosto field `aliqCofins`) |
> | `valor_cofins` | Number | Amount of the COFINS (webPosto field `valorCofins`) |
> | `irrf_retido` | Number | IRRF withheld (webPosto field `irrfRetido`) |
> | `csll_retido` | Number | CSLL withheld (webPosto field `csllRetido`) |
> | `inss_retido` | Number | INSS withheld (webPosto field `inssRetido`) |
> | `pis_retido` | Number | PIS withheld (webPosto field `pisRetido`) |
> | `cofins_retido` | Number | COFINS withheld (webPosto field `cofinsRetido`) |
> | `outras_despesas_acessorias` | Number | Other expenses ancillary (webPosto field `outrasDespesasAcessorias`) |
> | `valor_icms_proprio` | Number | Amount of the ICMS own (webPosto field `valorIcmsProprio`) |
> | `aliq_adrem` | Number | Rate of the ad rem (webPosto field `aliqAdrem`) |
> | `sequencial_item` | Integer | Sequence item (webPosto field `sequencialItem`) |
> | `cst_cbs` | String | CST CBS (webPosto field `cstCbs`) |
> | `classificacao_tributaria_cbs` | String | Classification tax CBS (webPosto field `classificacaoTributariaCbs`) |
> | `bc_cbs` | Number | Tax base of the CBS (webPosto field `bcCbs`) |
> | `aliq_efetiva_cbs` | Number | Rate of the effective CBS (webPosto field `aliqEfetivaCbs`) |
> | `valor_cbs` | Number | Amount of the CBS (webPosto field `valorCbs`) |
> | `aliq_ad_rem_cbs` | Number | Rate of the ad rem CBS (webPosto field `aliqAdRemCbs`) |
> | `valor_ad_rem_cbs` | Number | Amount of the ad rem CBS (webPosto field `valorAdRemCbs`) |
> | `cst_ibs` | String | CST IBS (webPosto field `cstIbs`) |
> | `classificacao_tributaria_ibs` | String | Classification tax IBS (webPosto field `classificacaoTributariaIbs`) |
> | `bc_ibs` | Number | Tax base of the IBS (webPosto field `bcIbs`) |
> | `aliq_efetiva_ibs` | Number | Rate of the effective IBS (webPosto field `aliqEfetivaIbs`) |
> | `valor_ibs` | Number | Amount of the IBS (webPosto field `valorIbs`) |
> | `aliq_ad_rem_ibs` | Number | Rate of the ad rem IBS (webPosto field `aliqAdRemIbs`) |
> | `valor_ad_rem_ibs` | Number | Amount of the ad rem IBS (webPosto field `valorAdRemIbs`) |
> | `cst_is` | String | CST IS (webPosto field `cstIs`) |
> | `classificacao_tributaria_is` | String | Classification tax IS (webPosto field `classificacaoTributariaIs`) |
> | `bc_is` | Number | Tax base of the IS (webPosto field `bcIs`) |
> | `aliq_efetiva_is` | Number | Rate of the effective IS (webPosto field `aliqEfetivaIs`) |
> | `valor_is` | Number | Amount of the IS (webPosto field `valorIs`) |
> | `data_vencimento` | Date | Due date (webPosto field `dataVencimento`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Outbound invoices (NF-e) (notas\_saida)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `nota_codigo` | Integer | Identifier of the invoice (webPosto field `notaCodigo`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `numero_documento` | String | Number of the document (webPosto field `numeroDocumento`) |
> | `serie_documento` | String | Series of the document (webPosto field `serieDocumento`) |
> | `data_emissao` | Date | Issue date of the document (webPosto field `dataEmissao`) |
> | `data_saida` | Datetime | Date of the outbound (webPosto field `dataSaida`) |
> | `status_documento` | String | Status of the document (webPosto field `statusDocumento`) |
> | `chave_documento` | String | Key of the document (webPosto field `chaveDocumento`) |
> | `protocolo_documento` | String | Protocol document (webPosto field `protocoloDocumento`) |
> | `tipo_emissao` | String | Type of the issue (webPosto field `tipoEmissao`) |
> | `finalidade` | String | Purpose (webPosto field `finalidade`) |
> | `documentos_vinculados` | Array | Documents linked (webPosto field `documentosVinculados`) |
> | `vendas_codigo` | Array | Identifier of the sales (webPosto field `vendasCodigo`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `cliente_cpf_cnpj` | String | Customer CPF CNPJ (webPosto field `clienteCpfCnpj`) |
> | `total_nota` | Number | Total of the invoice (webPosto field `totalNota`) |
> | `total_produtos_nota` | Number | Total of the products invoice (webPosto field `totalProdutosNota`) |
> | `modelo_documento` | String | Fiscal document model (65 = NFC-e, 55 = NF-e, 59 = SAT) (webPosto field `modeloDocumento`) |
> | `cfop` | String | CFOP (webPosto field `cfop`) |
> | `base_icms` | Number | Base of the ICMS (webPosto field `baseIcms`) |
> | `valor_icms` | Number | Amount of the ICMS (webPosto field `valorIcms`) |
> | `base_icms_st` | Number | Base of the ICMS ST (webPosto field `baseIcmsST`) |
> | `valor_icms_st` | Number | Amount of the ICMS ST (webPosto field `valorIcmsST`) |
> | `valor_frete` | Number | Amount of the freight (webPosto field `valorFrete`) |
> | `valor_seguro` | Number | Amount of the insurance (webPosto field `valorSeguro`) |
> | `valor_desconto` | Number | Amount of the discount (webPosto field `valorDesconto`) |
> | `outras_despesas` | Number | Other expenses (webPosto field `outrasDespesas`) |
> | `valor_ipi` | Number | Amount of the IPI (webPosto field `valorIpi`) |
> | `valor_irrf_retido` | Number | Amount of the IRRF withheld (webPosto field `valorIrrfRetido`) |
> | `valor_csll_retido` | Number | Amount of the CSLL withheld (webPosto field `valorCsllRetido`) |
> | `valor_cbs` | Number | Amount of the CBS (webPosto field `valorCbs`) |
> | `valor_ibs` | Number | Amount of the IBS (webPosto field `valorIbs`) |
> | `valor_is` | Number | Amount of the IS (webPosto field `valorIs`) |
> | `modalidade_frete` | Integer | Modality freight (webPosto field `modalidadeFrete`) |
> | `informacao_complementar_gerada` | String | Information supplementary generated (webPosto field `informacaoComplementarGerada`) |
> | `informacao_complementar` | String | Information supplementary (webPosto field `informacaoComplementar`) |
> | `gerou_venda` | Boolean | Generated sale (webPosto field `gerouVenda`) |
> | `itens` | String (JSON) | Line items of the record (JSON array of objects) (webPosto field `itens`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Outbound invoice items (notas\_saida\_itens)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `nota_codigo` | Integer | Identifier of the invoice (webPosto field `notaCodigo`) |
> | `nota_item_codigo` | Integer | Identifier of the invoice item (webPosto field `notaItemCodigo`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `quantidade` | Number | Quantity (webPosto field `quantidade`) |
> | `valor_unitario` | Number | Amount of the unit (webPosto field `valorUnitario`) |
> | `valor_total_item` | Number | Amount of the total item (webPosto field `valorTotalItem`) |
> | `desconto` | Number | Discount (webPosto field `desconto`) |
> | `outras_despesas` | Number | Other expenses (webPosto field `outrasDespesas`) |
> | `valor_icms` | Number | Amount of the ICMS (webPosto field `valorIcms`) |
> | `bc_icms` | Number | Tax base of the ICMS (webPosto field `bcIcms`) |
> | `aliq_icms` | Number | Rate of the ICMS (webPosto field `aliqIcms`) |
> | `motivo_desoneracao_icms` | String | Reason of the tax relief ICMS (webPosto field `motivoDesoneracaoIcms`) |
> | `valor_reducao_base_icms` | Number | Amount of the reduction base ICMS (webPosto field `valorReducaoBaseIcms`) |
> | `cfop` | String | CFOP (webPosto field `cfop`) |
> | `cst` | String | CST (webPosto field `cst`) |
> | `cst_pis` | String | CST PIS (webPosto field `cstPis`) |
> | `aliq_pis` | Number | Rate of the PIS (webPosto field `aliqPis`) |
> | `bc_pis` | Number | Tax base of the PIS (webPosto field `bcPis`) |
> | `valor_pis` | Number | Amount of the PIS (webPosto field `valorPis`) |
> | `cst_cofins` | String | CST COFINS (webPosto field `cstCofins`) |
> | `aliq_cofins` | Number | Rate of the COFINS (webPosto field `aliqCofins`) |
> | `bc_cofins` | Number | Tax base of the COFINS (webPosto field `bcCofins`) |
> | `valor_cofins` | Number | Amount of the COFINS (webPosto field `valorCofins`) |
> | `valor_custo` | Number | Amount of the cost (webPosto field `valorCusto`) |
> | `movimenta_estoque` | Boolean | Moves stock (webPosto field `movimentaEstoque`) |
> | `estoque_codigo` | Integer | Identifier of the stock (webPosto field `estoqueCodigo`) |
> | `tanque_codigo` | Integer | Identifier of the tank (webPosto field `tanqueCodigo`) |
> | `produto_codigo_externo` | String | Product code external (webPosto field `produtoCodigoExterno`) |
> | `cst_cbs` | String | CST CBS (webPosto field `cstCbs`) |
> | `class_tributaria_cbs` | String | Class tax CBS (webPosto field `classTributariaCbs`) |
> | `aliq_cbs` | Number | Rate of the CBS (webPosto field `aliqCbs`) |
> | `red_aliq_cbs` | Number | Reduction rate CBS (webPosto field `redAliqCbs`) |
> | `bc_cbs` | Number | Tax base of the CBS (webPosto field `bcCbs`) |
> | `aliq_efetiva_cbs` | Number | Rate of the effective CBS (webPosto field `aliqEfetivaCbs`) |
> | `valor_cbs` | Number | Amount of the CBS (webPosto field `valorCbs`) |
> | `aliq_ad_rem_cbs` | Number | Rate of the ad rem CBS (webPosto field `aliqAdRemCbs`) |
> | `valor_ad_rem_cbs` | Number | Amount of the ad rem CBS (webPosto field `valorAdRemCbs`) |
> | `cst_ibs` | String | CST IBS (webPosto field `cstIbs`) |
> | `class_tributaria_ibs` | String | Class tax IBS (webPosto field `classTributariaIbs`) |
> | `aliq_ibs` | Number | Rate of the IBS (webPosto field `aliqIbs`) |
> | `red_aliq_ibs` | Number | Reduction rate IBS (webPosto field `redAliqIbs`) |
> | `bc_ibs` | Number | Tax base of the IBS (webPosto field `bcIbs`) |
> | `aliq_efetiva_ibs` | Number | Rate of the effective IBS (webPosto field `aliqEfetivaIbs`) |
> | `valor_ibs` | Number | Amount of the IBS (webPosto field `valorIbs`) |
> | `aliq_ad_rem_ibs` | Number | Rate of the ad rem IBS (webPosto field `aliqAdRemIbs`) |
> | `valor_ad_rem_ibs` | Number | Amount of the ad rem IBS (webPosto field `valorAdRemIbs`) |
> | `cst_is` | String | CST IS (webPosto field `cstIs`) |
> | `class_tributaria_is` | String | Class tax IS (webPosto field `classTributariaIs`) |
> | `bc_is` | Number | Tax base of the IS (webPosto field `bcIs`) |
> | `aliq_is` | Number | Rate of the IS (webPosto field `aliqIs`) |
> | `valor_is` | Number | Amount of the IS (webPosto field `valorIs`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

### Registers and stock

> [accordion] Branches (empresas)
>
> Branches (filiais) the integration key can read.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/EMPRESAS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `cnpj` | String | CNPJ (Brazilian company tax ID) (webPosto field `cnpj`) |
> | `razao` | String | Legal (registered) name (webPosto field `razao`) |
> | `fantasia` | String | Trade name (webPosto field `fantasia`) |
> | `tipo_logradouro` | String | Type of the street (webPosto field `tipoLogradouro`) |
> | `logradouro` | String | Street (webPosto field `logradouro`) |
> | `endereco` | String | Address (webPosto field `endereco`) |
> | `bairro` | String | Neighborhood (webPosto field `bairro`) |
> | `numero` | String | Number (webPosto field `numero`) |
> | `cep` | String | Postal code (CEP) (webPosto field `cep`) |
> | `cidade` | String | City (webPosto field `cidade`) |
> | `estado` | String | State (webPosto field `estado`) |
> | `latitude` | Number | Latitude (webPosto field `latitude`) |
> | `longitude` | Number | Longitude (webPosto field `longitude`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `centro_custo_principal` | Integer | Center cost main (webPosto field `centroCustoPrincipal`) |
> | `empresa_codigo_externo` | String | Branch (company) code external (webPosto field `empresaCodigoExterno`) |
> | `sigla` | String | Abbreviation (webPosto field `sigla`) |
> | `tipo_imposto` | String | Tax regime (S = Simples, R = Real, P = Presumido) (webPosto field `tipoImposto`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Customers (clientes)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `cliente_referencia` | String | Customer reference (webPosto field `clienteReferencia`) |
> | `razao` | String | Legal (registered) name (webPosto field `razao`) |
> | `fantasia` | String | Trade name (webPosto field `fantasia`) |
> | `cnpj_cpf` | String | CNPJ or CPF (Brazilian tax ID) of the party (webPosto field `cnpjCpf`) |
> | `data_cadastro` | Date | Date of the registration (webPosto field `dataCadastro`) |
> | `cidade` | String | City (webPosto field `cidade`) |
> | `codigo_cidade` | Integer | Code city (webPosto field `codigoCidade`) |
> | `bairro` | String | Neighborhood (webPosto field `bairro`) |
> | `numero` | String | Number (webPosto field `numero`) |
> | `logradouro` | String | Street (webPosto field `logradouro`) |
> | `tipo_logradouro` | String | Type of the street (webPosto field `tipoLogradouro`) |
> | `uf` | String | State (UF) (webPosto field `uf`) |
> | `usa_limite_litros` | Boolean | Uses limit liters (webPosto field `usaLimiteLitros`) |
> | `limite_litros` | Number | Limit of the liters (webPosto field `limiteLitros`) |
> | `usa_limite_reais` | Boolean | Uses limit BRL (webPosto field `usaLimiteReais`) |
> | `limite_reais` | Number | Limit of the BRL (webPosto field `limiteReais`) |
> | `bloqueado` | Boolean | Blocked (webPosto field `bloqueado`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `cliente_grupo_codigo` | Integer | Identifier of the customer group (webPosto field `clienteGrupoCodigo`) |
> | `cliente_codigo_externo` | String | Customer code external (webPosto field `clienteCodigoExterno`) |
> | `telefone` | String | Phone (webPosto field `telefone`) |
> | `celular` | String | Mobile phone (webPosto field `celular`) |
> | `outro_telefone` | String | Other phone (webPosto field `outroTelefone`) |
> | `observacoes` | String | Notes (webPosto field `observacoes`) |
> | `centro_custo_veiculo` | String (JSON) | Center cost vehicle (webPosto field `centroCustoVeiculo`) |
> | `cliente_contato` | String (JSON) | Customer contact (webPosto field `clienteContato`) |
> | `website` | String | Website (webPosto field `website`) |
> | `complemento` | String | Address complement (webPosto field `complemento`) |
> | `cep` | String | Postal code (CEP) (webPosto field `cep`) |
> | `pais` | String | Country (webPosto field `pais`) |
> | `inscricao_estadual` | String | Registration state (webPosto field `inscricaoEstadual`) |
> | `inscricao_municipal` | String | Registration municipal (webPosto field `inscricaoMunicipal`) |
> | `rg` | String | RG (webPosto field `rg`) |
> | `frota` | String | Fleet (webPosto field `frota`) |
> | `faturamento` | String | Invoicing (webPosto field `faturamento`) |
> | `limites_bloqueios` | String | Limits blocks (webPosto field `limitesBloqueios`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Customers by branch (clientes\_empresa)
>
> Which customers are linked to which branch.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/CLIENTES_EMPRESA`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `cliente_codigo` | Integer | Identifier of the customer (webPosto field `clienteCodigo`) |
> | `ativo_inativo` | Boolean | Active inactive (webPosto field `ativoInativo`) |
> | `usa_prazo` | Boolean | Uses payment term (webPosto field `usaPrazo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Customer groups (grupos\_cliente)
>
> Customer groups and their credit limits.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/GRUPOS_CLIENTE`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `grupo_codigo` | Integer | Identifier of the group (webPosto field `grupoCodigo`) |
> | `grupo_codigo_externo` | String | Group code external (webPosto field `grupoCodigoExterno`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `usa_limite_litros` | Boolean | Uses limit liters (webPosto field `usaLimiteLitros`) |
> | `limite_litros` | Number | Limit of the liters (webPosto field `limiteLitros`) |
> | `limite_litros_disponivel` | Number | Limit of the liters available (webPosto field `limiteLitrosDisponivel`) |
> | `usa_limite_reais` | Boolean | Uses limit BRL (webPosto field `usaLimiteReais`) |
> | `limite_reais` | Number | Limit of the BRL (webPosto field `limiteReais`) |
> | `limite_reais_disponivel` | Number | Limit of the BRL available (webPosto field `limiteReaisDisponivel`) |
> | `bloqueado_financeiro_vencido` | Boolean | Blocked financial overdue (webPosto field `bloqueadoFinanceiroVencido`) |
> | `dias_tolerancia` | Integer | Days of the tolerance (webPosto field `diasTolerancia`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Suppliers (fornecedores)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `fornecedor_codigo` | Integer | Identifier of the supplier (webPosto field `fornecedorCodigo`) |
> | `razao` | String | Legal (registered) name (webPosto field `razao`) |
> | `fantasia` | String | Trade name (webPosto field `fantasia`) |
> | `cnpj_cpf` | String | CNPJ or CPF (Brazilian tax ID) of the party (webPosto field `cnpjCpf`) |
> | `logradouro` | String | Street (webPosto field `logradouro`) |
> | `tipo_logradouro` | String | Type of the street (webPosto field `tipoLogradouro`) |
> | `numero` | String | Number (webPosto field `numero`) |
> | `bairro` | String | Neighborhood (webPosto field `bairro`) |
> | `cidade` | String | City (webPosto field `cidade`) |
> | `telefone` | String | Phone (webPosto field `telefone`) |
> | `celular` | String | Mobile phone (webPosto field `celular`) |
> | `observacoes` | String | Notes (webPosto field `observacoes`) |
> | `codigo_municipio` | Integer | Code municipality (webPosto field `codigoMunicipio`) |
> | `uf` | String | State (UF) (webPosto field `uf`) |
> | `email` | String | Email (webPosto field `email`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `website` | String | Website (webPosto field `website`) |
> | `complemento` | String | Address complement (webPosto field `complemento`) |
> | `cep` | String | Postal code (CEP) (webPosto field `cep`) |
> | `pais` | String | Country (webPosto field `pais`) |
> | `inscricao_estadual` | String | Registration state (webPosto field `inscricaoEstadual`) |
> | `inscricao_municipal` | String | Registration municipal (webPosto field `inscricaoMunicipal`) |
> | `contas_fornecedor` | String (JSON) | Accounts supplier (webPosto field `contasFornecedor`) |
> | `fax` | String | Fax (webPosto field `fax`) |
> | `fornecedor_referencia` | String | Supplier reference (webPosto field `fornecedorReferencia`) |
> | `tipo_pessoa` | String | Type of the person (webPosto field `tipoPessoa`) |
> | `contato_email` | String | Contact email (webPosto field `contatoEmail`) |
> | `fornecedor_codigo_externo` | String | Supplier code external (webPosto field `fornecedorCodigoExterno`) |
> | `contato_whatsapp` | String | Contact WhatsApp (webPosto field `contatoWhatsapp`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Employees (funcionarios)
>
> Employees (pump attendants, cashiers, managers).
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/FUNCIONARIOS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `funcionario_codigo` | Integer | Identifier of the employee (webPosto field `funcionarioCodigo`) |
> | `funcionario_codigo_externo` | String | Employee code external (webPosto field `funcionarioCodigoExterno`) |
> | `funcionario_referencia` | String | Employee reference (webPosto field `funcionarioReferencia`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `cpf` | String | CPF (webPosto field `cpf`) |
> | `funcao_codigo` | Integer | Identifier of the role (webPosto field `funcaoCodigo`) |
> | `admissao` | Date | Hiring (webPosto field `admissao`) |
> | `demissao` | Date | Dismissal (webPosto field `demissao`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `celular` | String | Mobile phone (webPosto field `celular`) |
> | `email` | String | Email (webPosto field `email`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Employee roles (funcoes)
>
> Employee roles.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/FUNCOES`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `funcao_codigo` | Integer | Identifier of the role (webPosto field `funcaoCodigo`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Products (produtos)
>
> Products (fuels, convenience store items, services), with barcodes as JSON.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/PRODUTOS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `referencia_codigo` | String | Identifier of the reference (webPosto field `referenciaCodigo`) |
> | `grupo_codigo` | Integer | Identifier of the group (webPosto field `grupoCodigo`) |
> | `combustivel` | Boolean | Fuel (webPosto field `combustivel`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `tipo_combustivel` | String | Type of the fuel (webPosto field `tipoCombustivel`) |
> | `unidade_compra` | String | Unit purchase (webPosto field `unidadeCompra`) |
> | `unidade_venda` | String | Unit sale (webPosto field `unidadeVenda`) |
> | `sub_grupo1_codigo` | Integer | Identifier of the sub group 1 (webPosto field `subGrupo1Codigo`) |
> | `sub_grupo2_codigo` | Integer | Identifier of the sub group 2 (webPosto field `subGrupo2Codigo`) |
> | `sub_grupo3_codigo` | Integer | Identifier of the sub group 3 (webPosto field `subGrupo3Codigo`) |
> | `produto_codigo_externo` | String | Product code external (webPosto field `produtoCodigoExterno`) |
> | `tributacao_ad_rem` | Number | Taxation ad rem (webPosto field `tributacaoAdRem`) |
> | `tipo_produto` | String | Type of the product (webPosto field `tipoProduto`) |
> | `descricao_fabricante` | String | Description of the manufacturer (webPosto field `descricaoFabricante`) |
> | `registra_inventario` | String | Records inventory (webPosto field `registraInventario`) |
> | `ncm` | String | NCM (webPosto field `ncm`) |
> | `cest` | String | CEST (webPosto field `cest`) |
> | `mistura_bio_combustivel` | Number | Blend bio fuel (webPosto field `misturaBioCombustivel`) |
> | `codigo_anp` | String | Code ANP (webPosto field `codigoAnp`) |
> | `perc_uf_origem_scanc` | Number | Percentage of the state (UF) origin SCANC (webPosto field `percUfOrigemScanc`) |
> | `produto_codigo_barra` | String (JSON) | Product code barcode (webPosto field `produtoCodigoBarra`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |

> [accordion] Products by branch (produtos\_empresa)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `preco_venda` | Number | Price of the sale (webPosto field `precoVenda`) |
> | `preco_venda_b` | Number | Price of the sale B (webPosto field `precoVendaB`) |
> | `preco_venda_c` | Number | Price of the sale C (webPosto field `precoVendaC`) |
> | `preco_custo` | Number | Price of the cost (webPosto field `precoCusto`) |
> | `estoque_qtde` | Number | Stock quantity (webPosto field `estoqueQtde`) |
> | `estoque_min` | Number | Stock minimum (webPosto field `estoqueMin`) |
> | `ultima_alteracao` | Datetime | Last change (webPosto field `ultimaAlteracao`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `estoque_padrao` | Integer | Stock padrao (webPosto field `estoquePadrao`) |
> | `fator_conversao` | Number | Factor of the conversion (webPosto field `fatorConversao`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Product stock (produtos\_estoques)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `saldo` | Number | Balance (webPosto field `saldo`) |
> | `estoque_codigo` | Integer | Identifier of the stock (webPosto field `estoqueCodigo`) |
> | `saldo_estoque` | String (JSON) | Balance of the stock (webPosto field `saldoEstoque`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Stock locations (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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `estoque_codigo` | Integer | Identifier of the stock (webPosto field `estoqueCodigo`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `usuario_codigo_alteracao` | Integer | User code change (webPosto field `usuarioCodigoAlteracao`) |
> | `data_hora_atualizacao` | Datetime | Date and time of the record's last update in webPosto (webPosto field `dataHoraAtualizacao`) |
> | `estoque_principal` | Boolean | Stock main (webPosto field `estoquePrincipal`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `vende_pdv` | Boolean | Sells point of sale (PDV) (webPosto field `vendePdv`) |
> | `plano_conta_contabil_codigo` | Integer | Identifier of the chart of accounts account accounting (webPosto field `planoContaContabilCodigo`) |
> | `ativo` | Boolean | Whether the record is active (webPosto field `ativo`) |
> | `centro_custo_codigo` | Integer | Identifier of the center cost (webPosto field `centroCustoCodigo`) |
> | `estoque_codigo_externo` | String | Stock code external (webPosto field `estoqueCodigoExterno`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Product groups (grupos)
>
> Product groups.
>
> **Primary key:** `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/GRUPOS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `grupo_codigo` | Integer | Identifier of the group (webPosto field `grupoCodigo`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `grupo_codigo_externo` | String | Group code external (webPosto field `grupoCodigoExterno`) |
> | `codigo_tributo_icms` | Integer | Code tax ICMS (webPosto field `codigoTributoIcms`) |
> | `codigo_tributo_pis_cofins` | Integer | Code tax PIS COFINS (webPosto field `codigoTributoPisCofins`) |
> | `descricao_tributo_icms` | String | Description of the tax ICMS (webPosto field `descricaoTributoIcms`) |
> | `descricao_tributo_pis_cofins` | String | Description of the tax PIS COFINS (webPosto field `descricaoTributoPisCofins`) |
> | `tipo_grupo` | String | Type of the group (webPosto field `tipoGrupo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Tanks (tanques)
>
> Fuel tanks.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/TANQUES`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `tanque_codigo` | Integer | Identifier of the tank (webPosto field `tanqueCodigo`) |
> | `tanque_principal_codigo` | Integer | Identifier of the tank main (webPosto field `tanquePrincipalCodigo`) |
> | `tanque_codigo_externo` | String | Tank code external (webPosto field `tanqueCodigoExterno`) |
> | `nome` | String | Name (webPosto field `nome`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `capacidade` | Number | Capacity (webPosto field `capacidade`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `lastro` | Number | Backing (webPosto field `lastro`) |
> | `estoque_escritural` | Number | Stock book (webPosto field `estoqueEscritural`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `data_hora_medidor` | Datetime | Date and time of the gauge (webPosto field `dataHoraMedidor`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Pumps (bombas)
>
> 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`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `bomba_codigo` | Integer | Identifier of the pump (webPosto field `bombaCodigo`) |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `bomba_referencia` | String | Pump reference (webPosto field `bombaReferencia`) |
> | `descricao` | String | Description (webPosto field `descricao`) |
> | `quantidade_bicos` | Integer | Quantity of the nozzles (webPosto field `quantidadeBicos`) |
> | `ilha` | Integer | Pump island (webPosto field `ilha`) |
> | `serie` | String | Series (webPosto field `serie`) |
> | `fabricante` | String | Manufacturer (webPosto field `fabricante`) |
> | `modelo` | String | Model (webPosto field `modelo`) |
> | `tipo_medicao_digital` | Boolean | Type of the measurement digital (webPosto field `tipoMedicaoDigital`) |
> | `lacres` | String (JSON) | Seals (webPosto field `lacres`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Nozzles (bicos)
>
> Pump nozzles, with their tank and product.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/BICOS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `bico_codigo` | Integer | Identifier of the nozzle (webPosto field `bicoCodigo`) |
> | `bico_numero` | String | Nozzle number (webPosto field `bicoNumero`) |
> | `tanque_codigo` | Integer | Identifier of the tank (webPosto field `tanqueCodigo`) |
> | `bomba_codigo` | Integer | Identifier of the pump (webPosto field `bombaCodigo`) |
> | `produto_codigo` | Integer | Identifier of the product (webPosto field `produtoCodigo`) |
> | `ultimo_usuario_alteracao` | String | Last user change (webPosto field `ultimoUsuarioAlteracao`) |
> | `produto_lmc_codigo` | Integer | Identifier of the product LMC (fuel movement book) (webPosto field `produtoLmcCodigo`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

> [accordion] Points of sale (pdvs)
>
> Points of sale (PDV) of each branch.
>
> **Primary key:** `empresa_codigo`, `codigo` · **Sync:** Full table · **webPosto route:** `GET /INTEGRACAO/V1/PDVS`
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `empresa_codigo` | Integer | Identifier of the branch (filial) the record belongs to; joins with empresas.empresa\_codigo (webPosto field `empresaCodigo`) |
> | `pdv_codigo` | Integer | Identifier of the point of sale (PDV) (webPosto field `pdvCodigo`) |
> | `pdv` | String | Point of sale (PDV) (webPosto field `pdv`) |
> | `tipo` | String | Type of the record (webPosto field `tipo`) |
> | `ativo` | String | Whether the record is active (webPosto field `ativo`) |
> | `pdv_referencia` | String | Point of sale (PDV) reference (webPosto field `pdvReferencia`) |
> | `codigo` | Integer | webPosto's code of the record, used to page through the route; in item tables it is the code of the parent document (webPosto field `codigo`) |

## 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

| Error or symptom | What it means | What to do |
| :- | :- | :- |
| "webPosto did not accept the integration key, or the 'API Integração' contract of the branch is inactive" | The key is wrong, or the contract is not active. | Copy the key again from **Administração > Integrações > Integração**. If it is right, ask Quality Automação's sales team to check the contract. |
| "The webPosto integration key has no user linked to it" | The key was saved without a user. | Edit the key in webPosto, choose a user and save. |
| Some tables are skipped with "may not read these tables" | The profile of the user linked to the key lacks the permission named in the message (Menu -> Screen -> Function). | Give that permission to the user's profile in webPosto, or link the key to another user, or deselect those tables. The other tables keep syncing. |
| `financeiros_exclusao` is skipped | The **API Integração - Gesplan** contract is not active. | Ask Quality Automação's sales team to enable it, or deselect the table. |
| `produtos_estoques` is skipped | Stock is read per branch, and the key cannot list the branches. | Fill in **Branch codes**, or give the user permission to read the branches. |
| A branch is missing from the tables | The key is not linked to that branch, or **Branch codes** leaves it out. | Check the branches linked to the key in webPosto and the **Branch codes** setting. |

## Skills for agents

<Snippet file="agent-skills-intro.mdx" />

> [card] [Download webPosto skills file](https://docs.nekt.com/sources/webposto.md)
>
> webPosto connector documentation as plain markdown, for use in AI agent contexts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.