> For the complete documentation index, see [llms.txt](https://docs.erathos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.erathos.com/connectors/apis/bling.md).

# Bling

## Using the Erathos platform

When selecting Bling as a new connector on the Erathos platform, you will need to name your connection and authorize access to your Bling account.

With this connection created you can seamlessly move your Bling data to your BigQuery, Redshift or Postgres data warehouse.

### How to authorize?

Bling uses OAuth 2.0 for authentication. When setting up the connection on Erathos, you will be redirected to Bling's authorization page. Log in to your Bling account and grant access to allow Erathos to read your data.

After authorizing, you will be redirected back to the Erathos platform automatically. Click **Save and close** to complete the setup. Erathos handles all token management and refreshes on your behalf.

{% hint style="warning" %}
If you see a message like the one shown below, please contact Bling Support and request access to the specific modules that are interfering with the connection. Your Bling plan must be 'Mercúrio' or higher.
{% endhint %}

<figure><img src="/files/HkFwJ8TaBbeVaaanDlss" alt=""><figcaption></figcaption></figure>

***

## Endpoints and fields

### categorias\_lojas

Sync type availability: Full-refresh

| Field               | Type    |
| ------------------- | ------- |
| loja.id             | integer |
| descricao           | text    |
| codigo              | text    |
| categoriaProduto.id | integer |
| id                  | integer |

### categorias\_produtos

Sync type availability: Full-refresh

| Field           | Type    |
| --------------- | ------- |
| id              | integer |
| descricao       | text    |
| categoriaPai.id | integer |

### categorias\_financeiras

Sync type availability: Full-refresh

| Field          | Type    |
| -------------- | ------- |
| descricao      | text    |
| tipo           | integer |
| id             | integer |
| idCategoriaPai | integer |

### contas\_contabeis

Sync type availability: Full-refresh

| Field           | Type    |
| --------------- | ------- |
| id              | integer |
| descricao       | text    |
| tipo            | text    |
| aliasIntegracao | text    |

### contas\_receber

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `dataEmissao`

Parent of [`contas_receber_detalhes`](#contas_receber_detalhes)

| Field                       | Type    | Cursor |
| --------------------------- | ------- | ------ |
| situacao                    | integer |        |
| vencimento                  | date    |        |
| valor                       | float   |        |
| contato.id                  | integer |        |
| contato.nome                | text    |        |
| contato.numeroDocumento     | text    |        |
| contato.tipo                | text    |        |
| id                          | integer |        |
| idTransacao                 | text    |        |
| linkQRCodePix               | text    |        |
| linkBoleto                  | text    |        |
| dataEmissao                 | date    | ✓      |
| formaPagamento.id           | integer |        |
| formaPagamento.codigoFiscal | integer |        |
| contaContabil.id            | integer |        |
| contaContabil.descricao     | text    |        |
| origem.id                   | integer |        |
| origem.tipoOrigem           | text    |        |
| origem.numero               | text    |        |
| origem.dataEmissao          | date    |        |
| origem.valor                | float   |        |
| origem.situacao             | integer |        |
| origem.url                  | text    |        |

### contas\_receber\_detalhes

Sync type availability: Full-refresh

Child of [`contas_receber`](#contas_receber)

Parent of [`receber_borderos`](#receber_borderos)

| Field                       | Type    |
| --------------------------- | ------- |
| id                          | integer |
| situacao                    | integer |
| vencimento                  | date    |
| valor                       | float   |
| idTransacao                 | text    |
| linkQRCodePix               | text    |
| linkBoleto                  | text    |
| dataEmissao                 | date    |
| contato.id                  | integer |
| contato.nome                | text    |
| contato.numeroDocumento     | text    |
| contato.tipo                | text    |
| formaPagamento.id           | integer |
| formaPagamento.codigoFiscal | integer |
| contaContabil.id            | integer |
| contaContabil.descricao     | text    |
| origem.id                   | integer |
| origem.tipoOrigem           | text    |
| origem.numero               | text    |
| origem.dataEmissao          | text    |
| origem.valor                | float   |
| origem.situacao             | integer |
| origem.url                  | text    |
| saldo                       | float   |
| vencimentoOriginal          | date    |
| numeroDocumento             | text    |
| competencia                 | date    |
| historico                   | text    |
| numeroBanco                 | text    |
| portador.id                 | integer |
| categoria.id                | integer |
| vendedor.id                 | integer |
| ocorrencia.tipo             | integer |
| borderos                    | json    |

### receber\_borderos

Sync type availability: Full-refresh

Child of [`contas_receber_detalhes`](#contas_receber_detalhes)

| Field        | Type    |
| ------------ | ------- |
| id           | integer |
| data         | date    |
| historico    | text    |
| portador.id  | integer |
| categoria.id | integer |
| pagamentos   | json    |

### contas\_pagar

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `vencimento`

Parent of [`contas_pagar_detalhes`](#contas_pagar_detalhes)

| Field                       | Type    | Cursor |
| --------------------------- | ------- | ------ |
| situacao                    | integer |        |
| vencimento                  | date    | ✓      |
| valor                       | float   |        |
| contato.id                  | integer |        |
| contato.nome                | text    |        |
| contato.numeroDocumento     | text    |        |
| contato.tipo                | text    |        |
| id                          | integer |        |
| idTransacao                 | text    |        |
| linkQRCodePix               | text    |        |
| linkBoleto                  | text    |        |
| dataEmissao                 | date    |        |
| formaPagamento.id           | integer |        |
| formaPagamento.codigoFiscal | integer |        |
| contaContabil.id            | integer |        |
| contaContabil.descricao     | text    |        |
| origem.id                   | integer |        |
| origem.tipoOrigem           | text    |        |
| origem.numero               | text    |        |
| origem.dataEmissao          | date    |        |
| origem.valor                | float   |        |
| origem.situacao             | integer |        |
| origem.url                  | text    |        |

### contas\_pagar\_detalhes

Sync type availability: Full-refresh

Child of [`contas_pagar`](#contas_pagar)

Parent of [`borderos`](#borderos)

| Field              | Type    |
| ------------------ | ------- |
| id                 | integer |
| situacao           | integer |
| vencimento         | date    |
| valor              | float   |
| contato.id         | integer |
| formaPagamento.id  | integer |
| saldo              | float   |
| dataEmissao        | date    |
| vencimentoOriginal | date    |
| numeroDocumento    | text    |
| competencia        | date    |
| historico          | text    |
| numeroBanco        | text    |
| portador.id        | integer |
| categoria.id       | integer |
| ocorrencia.tipo    | integer |
| borderos           | json    |

### borderos

Sync type availability: Full-refresh

Child of [`contas_pagar_detalhes`](#contas_pagar_detalhes)

| Field        | Type    |
| ------------ | ------- |
| id           | integer |
| data         | date    |
| historico    | text    |
| portador.id  | integer |
| categoria.id | integer |
| pagamentos   | json    |

### contatos

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `id`

Parent of [`contato_detalhes`](#contato_detalhes)

| Field           | Type    | Cursor |
| --------------- | ------- | ------ |
| id              | integer | ✓      |
| nome            | text    |        |
| codigo          | text    |        |
| situacao        | text    |        |
| numeroDocumento | text    |        |
| telefone        | text    |        |
| celular         | text    |        |

### contato\_detalhes

Sync type availability: Full-refresh

Child of [`contatos`](#contatos)

| Field                          | Type    |
| ------------------------------ | ------- |
| id                             | integer |
| nome                           | text    |
| codigo                         | text    |
| situacao                       | text    |
| numeroDocumento                | text    |
| telefone                       | text    |
| celular                        | text    |
| fantasia                       | text    |
| tipo                           | text    |
| indicadorIe                    | integer |
| ie                             | text    |
| rg                             | text    |
| orgaoEmissor                   | text    |
| email                          | text    |
| endereco.geral.endereco        | text    |
| endereco.geral.cep             | text    |
| endereco.geral.bairro          | text    |
| endereco.geral.municipio       | text    |
| endereco.geral.uf              | text    |
| endereco.geral.numero          | text    |
| endereco.geral.complemento     | text    |
| endereco.cobranca.endereco     | text    |
| endereco.cobranca.cep          | text    |
| endereco.cobranca.bairro       | text    |
| endereco.cobranca.municipio    | text    |
| endereco.cobranca.uf           | text    |
| endereco.cobranca.numero       | text    |
| endereco.cobranca.complemento  | text    |
| vendedor.id                    | integer |
| dadosAdicionais.dataNascimento | text    |
| dadosAdicionais.sexo           | text    |
| dadosAdicionais.naturalidade   | text    |
| financeiro.limiteCredito       | float   |
| financeiro.condicaoPagamento   | text    |
| financeiro.categoria.id        | integer |
| pais.nome                      | text    |
| tiposContato                   | json    |
| pessoasContato                 | json    |

### tipos\_contatos

Sync type availability: Full-refresh

| Field     | Type    |
| --------- | ------- |
| id        | integer |
| descricao | text    |

### contratos

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `data`

Parent of [`contrato_detalhes`](#contrato_detalhes)

| Field      | Type    | Cursor |
| ---------- | ------- | ------ |
| descricao  | text    |        |
| data       | date    | ✓      |
| numero     | text    |        |
| valor      | float   |        |
| situacao   | integer |        |
| contato.id | integer |        |
| id         | integer |        |

### contrato\_detalhes

Sync type availability: Full-refresh

Child of [`contratos`](#contratos)

| Field                             | Type    |
| --------------------------------- | ------- |
| id                                | integer |
| categoria.id                      | integer |
| cobranca.dataBase                 | date    |
| cobranca.contato.id               | integer |
| cobranca.vencimento.tipo          | integer |
| cobranca.vencimento.dia           | integer |
| cobranca.vencimento.periodicidade | integer |
| contaContabil.id                  | integer |
| contato.id                        | integer |
| data                              | date    |
| dataFim                           | date    |
| desconto.valor                    | float   |
| desconto.dataFim                  | date    |
| descricao                         | text    |
| emitirOrdemServico                | boolean |
| formaPagamento.id                 | integer |
| numero                            | text    |
| observacoes                       | text    |
| situacao                          | integer |
| tipoManutencao                    | integer |
| valor                             | float   |
| vendedor.id                       | integer |
| vendedor.comissao.aliquota        | float   |
| vendedor.comissao.numeroParcelas  | integer |
| notaFiscal.mes                    | integer |
| notaFiscal.gerar                  | integer |
| notaFiscal.descontarImpostoRenda  | integer |
| notaFiscal.texto                  | text    |
| notaFiscal.cfop                   | text    |
| notaFiscal.iss.descontar          | boolean |
| notaFiscal.iss.aliquota           | integer |
| notaFiscal.item.codigoServico     | text    |
| notaFiscal.item.produto.id        | integer |

### depositos

Sync type availability: Full-refresh

| Field              | Type    |
| ------------------ | ------- |
| id                 | integer |
| descricao          | text    |
| situacao           | integer |
| padrao             | boolean |
| desconsiderarSaldo | boolean |

### formas\_pagamentos

Sync type availability: Full-refresh

Parent of [`formas_pagamentos_detalhes`](#formas_pagamentos_detalhes)

| Field         | Type    |
| ------------- | ------- |
| id            | integer |
| descricao     | text    |
| tipoPagamento | integer |
| finalidade    | integer |
| situacao      | integer |
| fixa          | boolean |
| padrao        | integer |
| juros         | float   |
| multa         | float   |

### formas\_pagamentos\_detalhes

Sync type availability: Full-refresh

Child of [`formas_pagamentos`](#formas_pagamentos)

| Field                         | Type    |
| ----------------------------- | ------- |
| id                            | integer |
| descricao                     | text    |
| destino                       | integer |
| finalidade                    | integer |
| tipoPagamento                 | integer |
| situacao                      | integer |
| fixa                          | boolean |
| padrao                        | integer |
| condicao                      | text    |
| taxas.aliquota                | float   |
| taxas.valor                   | float   |
| taxas.prazo                   | integer |
| dadosCartao.bandeira          | integer |
| dadosCartao.tipo              | integer |
| dadosCartao.cnpjCredenciadora | text    |
| juros                         | float   |
| multa                         | float   |
| utilizaDiasUteis              | boolean |

### logisticas

Sync type availability: Full-refresh

Parent of [`remessas_logisticas`](#remessas_logisticas)

| Field            | Type    |
| ---------------- | ------- |
| id               | integer |
| descricao        | text    |
| tipoIntegracao   | text    |
| integracaoNativa | boolean |
| situacao         | text    |
| integracao.id    | integer |
| servicos         | json    |

### servicos\_logisticas

Sync type availability: Full-refresh

| Field             | Type    |
| ----------------- | ------- |
| id                | integer |
| descricao         | text    |
| freteItem         | float   |
| estimativaEntrega | integer |
| codigo            | text    |
| logistica.id      | integer |
| transportador.id  | integer |
| aliases           | json    |
| ativo             | boolean |
| idCodigoServico   | text    |

### remessas\_logisticas

Sync type availability: Full-refresh

Child of [`logisticas`](#logisticas)

| Field       | Type    |
| ----------- | ------- |
| id          | integer |
| dataCriacao | date    |
| descricao   | text    |
| numeroPlp   | text    |
| objetos     | json    |
| situacao    | integer |

### naturezas\_operacoes

Sync type availability: Full-refresh

| Field     | Type    |
| --------- | ------- |
| id        | integer |
| situacao  | integer |
| padrao    | integer |
| descricao | text    |

### nfce

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `dataEmissao`

Parent of [`nfce_detalhes`](#nfce_detalhes)

| Field                        | Type      | Cursor |
| ---------------------------- | --------- | ------ |
| id                           | integer   |        |
| tipo                         | integer   |        |
| situacao                     | integer   |        |
| numero                       | text      |        |
| dataEmissao                  | timestamp | ✓      |
| dataOperacao                 | timestamp |        |
| naturezaOperacao.id          | integer   |        |
| loja.id                      | integer   |        |
| loja.numero                  | text      |        |
| contato.id                   | integer   |        |
| contato.nome                 | text      |        |
| contato.tipoPessoa           | text      |        |
| contato.numeroDocumento      | text      |        |
| contato.contribuinte         | text      |        |
| contato.ie                   | text      |        |
| contato.rg                   | text      |        |
| contato.telefone             | text      |        |
| contato.email                | text      |        |
| contato.endereco.endereco    | text      |        |
| contato.endereco.bairro      | text      |        |
| contato.endereco.municipio   | text      |        |
| contato.endereco.numero      | text      |        |
| contato.endereco.complemento | text      |        |
| contato.endereco.cep         | text      |        |
| contato.endereco.uf          | text      |        |
| contato.endereco.pais        | text      |        |

### nfce\_detalhes

Sync type availability: Full-refresh

Child of [`nfce`](#nfce)

| Field                                    | Type      |
| ---------------------------------------- | --------- |
| id                                       | integer   |
| tipo                                     | integer   |
| situacao                                 | integer   |
| numero                                   | text      |
| dataEmissao                              | timestamp |
| dataOperacao                             | timestamp |
| serie                                    | integer   |
| valorNota                                | float     |
| finalidade                               | text      |
| chaveAcesso                              | text      |
| xml                                      | text      |
| linkDanfe                                | text      |
| linkPDF                                  | text      |
| numeroPedidoLoja                         | text      |
| naturezaOperacao.id                      | integer   |
| loja.id                                  | integer   |
| loja.numero                              | text      |
| contato.id                               | integer   |
| contato.nome                             | text      |
| contato.tipoPessoa                       | text      |
| contato.numeroDocumento                  | text      |
| contato.contribuinte                     | text      |
| contato.ie                               | text      |
| contato.rg                               | text      |
| contato.telefone                         | text      |
| contato.email                            | text      |
| contato.endereco.endereco                | text      |
| contato.endereco.bairro                  | text      |
| contato.endereco.municipio               | text      |
| contato.endereco.numero                  | text      |
| contato.endereco.complemento             | text      |
| contato.endereco.cep                     | text      |
| contato.endereco.uf                      | text      |
| contato.endereco.pais                    | text      |
| transporte.fretePorConta                 | integer   |
| transporte.transportador.nome            | text      |
| transporte.transportador.numeroDocumento | text      |
| transporte.volumes                       | json      |
| transporte.etiqueta.nome                 | text      |
| transporte.etiqueta.endereco             | text      |
| transporte.etiqueta.numero               | text      |
| transporte.etiqueta.complemento          | text      |
| transporte.etiqueta.municipio            | text      |
| transporte.etiqueta.uf                   | text      |
| transporte.etiqueta.cep                  | text      |
| transporte.etiqueta.bairro               | text      |
| vendedor.id                              | integer   |
| valorFrete                               | float     |
| optanteSimplesNacional                   | boolean   |
| itens                                    | json      |

### nfe

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `dataEmissao`

Parent of [`nfe_detalhes`](#nfe_detalhes)

| Field                        | Type      | Cursor |
| ---------------------------- | --------- | ------ |
| id                           | integer   |        |
| tipo                         | integer   |        |
| situacao                     | integer   |        |
| numero                       | text      |        |
| dataEmissao                  | timestamp | ✓      |
| dataOperacao                 | timestamp |        |
| naturezaOperacao.id          | integer   |        |
| loja.id                      | integer   |        |
| loja.numero                  | text      |        |
| contato.id                   | integer   |        |
| contato.nome                 | text      |        |
| contato.tipoPessoa           | text      |        |
| contato.numeroDocumento      | text      |        |
| contato.contribuinte         | text      |        |
| contato.ie                   | text      |        |
| contato.rg                   | text      |        |
| contato.telefone             | text      |        |
| contato.email                | text      |        |
| contato.endereco.endereco    | text      |        |
| contato.endereco.bairro      | text      |        |
| contato.endereco.municipio   | text      |        |
| contato.endereco.numero      | text      |        |
| contato.endereco.complemento | text      |        |
| contato.endereco.cep         | text      |        |
| contato.endereco.uf          | text      |        |
| contato.endereco.pais        | text      |        |

### nfe\_detalhes

Sync type availability: Full-refresh

Child of [`nfe`](#nfe)

| Field                                    | Type      |
| ---------------------------------------- | --------- |
| id                                       | integer   |
| tipo                                     | integer   |
| situacao                                 | integer   |
| numero                                   | text      |
| dataEmissao                              | timestamp |
| dataOperacao                             | timestamp |
| serie                                    | integer   |
| valorNota                                | float     |
| finalidade                               | text      |
| chaveAcesso                              | text      |
| xml                                      | text      |
| linkDanfe                                | text      |
| linkPDF                                  | text      |
| numeroPedidoLoja                         | text      |
| naturezaOperacao.id                      | integer   |
| loja.id                                  | integer   |
| loja.numero                              | text      |
| contato.id                               | integer   |
| contato.nome                             | text      |
| contato.tipoPessoa                       | text      |
| contato.numeroDocumento                  | text      |
| contato.contribuinte                     | text      |
| contato.ie                               | text      |
| contato.rg                               | text      |
| contato.telefone                         | text      |
| contato.email                            | text      |
| contato.endereco.endereco                | text      |
| contato.endereco.bairro                  | text      |
| contato.endereco.municipio               | text      |
| contato.endereco.numero                  | text      |
| contato.endereco.complemento             | text      |
| contato.endereco.cep                     | text      |
| contato.endereco.uf                      | text      |
| contato.endereco.pais                    | text      |
| transporte.fretePorConta                 | float     |
| transporte.transportador.nome            | text      |
| transporte.transportador.numeroDocumento | text      |
| transporte.volumes                       | json      |
| transporte.etiqueta.nome                 | text      |
| transporte.etiqueta.endereco             | text      |
| transporte.etiqueta.numero               | text      |
| transporte.etiqueta.complemento          | text      |
| transporte.etiqueta.municipio            | text      |
| transporte.etiqueta.uf                   | text      |
| transporte.etiqueta.cep                  | text      |
| transporte.etiqueta.bairro               | text      |
| vendedor.id                              | integer   |
| valorFrete                               | float     |
| optanteSimplesNacional                   | boolean   |
| itens                                    | json      |
| parcelas                                 | json      |

### nfse

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `dataEmissao`

Parent of [`nfse_detalhes`](#nfse_detalhes)

| Field                   | Type    | Cursor |
| ----------------------- | ------- | ------ |
| id                      | integer |        |
| numeroRPS               | text    |        |
| serie                   | text    |        |
| numero                  | text    |        |
| situacao                | integer |        |
| dataEmissao             | date    | ✓      |
| valor                   | float   |        |
| contato.id              | integer |        |
| contato.nome            | text    |        |
| contato.numeroDocumento | text    |        |
| contato.email           | text    |        |

### nfse\_detalhes

Sync type availability: Full-refresh

Child of [`nfse`](#nfse)

| Field                   | Type    |
| ----------------------- | ------- |
| id                      | integer |
| numeroRPS               | text    |
| serie                   | text    |
| numero                  | text    |
| situacao                | integer |
| dataEmissao             | date    |
| valor                   | float   |
| link                    | text    |
| codigoVerificacao       | text    |
| contato.id              | integer |
| contato.nome            | text    |
| contato.numeroDocumento | text    |
| contato.email           | text    |

### propostas\_comerciais

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `data`

Parent of [`propostas_comerciais_detalhes`](#propostas_comerciais_detalhes)

| Field         | Type    | Cursor |
| ------------- | ------- | ------ |
| id            | integer |        |
| data          | date    | ✓      |
| situacao      | text    |        |
| total         | float   |        |
| totalProdutos | float   |        |
| numero        | integer |        |
| contato.id    | integer |        |
| loja.id       | integer |        |

### propostas\_comerciais\_detalhes

Sync type availability: Full-refresh

Child of [`propostas_comerciais`](#propostas_comerciais)

| Field                                 | Type    |
| ------------------------------------- | ------- |
| id                                    | integer |
| data                                  | date    |
| situacao                              | text    |
| total                                 | float   |
| totalProdutos                         | float   |
| numero                                | integer |
| contato.id                            | integer |
| loja.id                               | integer |
| desconto                              | float   |
| outrasDespesas                        | float   |
| garantia                              | integer |
| dataProximoContato                    | date    |
| observacoes                           | text    |
| observacaoInterna                     | text    |
| totalOutrosItens                      | integer |
| aosCuidadosDe                         | text    |
| introducao                            | text    |
| prazoEntrega                          | text    |
| vendedor.id                           | integer |
| transporte.freteModalidade            | integer |
| transporte.frete                      | float   |
| transporte.quantidadeVolumes          | float   |
| transporte.prazoEntrega               | integer |
| transporte.pesoBruto                  | float   |
| transporte.contato.id                 | integer |
| transporte.contato.nome               | text    |
| transporte.volumes.id                 | integer |
| transporte.volumes.servico            | text    |
| transporte.volumes.codigoRastreamento | text    |
| itens                                 | json    |
| parcelas                              | json    |

### pedidos\_compras

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `data`

Parent of [`pedidos_compras_detalhes`](#pedidos_compras_detalhes)

| Field          | Type    | Cursor |
| -------------- | ------- | ------ |
| id             | integer |        |
| numero         | integer |        |
| data           | date    | ✓      |
| dataPrevista   | date    |        |
| totalProdutos  | float   |        |
| total          | float   |        |
| situacao.valor | integer |        |
| fornecedor.id  | integer |        |

### pedidos\_compras\_detalhes

Sync type availability: Full-refresh

Child of [`pedidos_compras`](#pedidos_compras)

| Field                    | Type    |
| ------------------------ | ------- |
| id                       | integer |
| numero                   | integer |
| data                     | date    |
| dataPrevista             | date    |
| totalProdutos            | float   |
| total                    | float   |
| situacao.valor           | integer |
| fornecedor.id            | integer |
| ordemCompra              | text    |
| observacoes              | text    |
| observacoesInternas      | text    |
| desconto.valor           | float   |
| desconto.unidade         | text    |
| categoria.id             | integer |
| tributacao.totalICMS     | float   |
| tributacao.totalIPI      | float   |
| transporte.frete         | float   |
| transporte.transportador | text    |
| transporte.fretePorConta | integer |
| transporte.pesoBruto     | float   |
| transporte.volumes       | integer |
| itens                    | json    |
| parcelas                 | json    |

### pedidos\_vendas

Sync type availability: Full and incremental refresh

[Cursor](/platform/connections/sync-types.md#understanding-cursors): `data`

Parent of [`pedidos_vendas_detalhes`](#pedidos_vendas_detalhes)

| Field                   | Type    | Cursor |
| ----------------------- | ------- | ------ |
| id                      | integer |        |
| numero                  | integer |        |
| numeroLoja              | text    |        |
| data                    | date    | ✓      |
| dataPrevista            | date    |        |
| dataSaida               | date    |        |
| totalProdutos           | float   |        |
| total                   | float   |        |
| situacao.id             | integer |        |
| situacao.valor          | integer |        |
| loja.id                 | integer |        |
| contato.id              | integer |        |
| contato.nome            | text    |        |
| contato.tipoPessoa      | text    |        |
| contato.numeroDocumento | text    |        |

### pedidos\_vendas\_detalhes

Sync type availability: Full-refresh

Child of [`pedidos_vendas`](#pedidos_vendas)

| Field                           | Type    |
| ------------------------------- | ------- |
| id                              | integer |
| numero                          | integer |
| numeroLoja                      | text    |
| data                            | date    |
| dataPrevista                    | date    |
| dataSaida                       | date    |
| totalProdutos                   | float   |
| total                           | float   |
| situacao.id                     | integer |
| situacao.valor                  | integer |
| loja.id                         | integer |
| contato.id                      | integer |
| contato.nome                    | text    |
| contato.tipoPessoa              | text    |
| contato.numeroDocumento         | text    |
| numeroPedidoCompra              | text    |
| outrasDespesas                  | float   |
| observacoes                     | text    |
| observacoesInternas             | text    |
| desconto.valor                  | float   |
| desconto.unidade                | text    |
| categoria.id                    | integer |
| notaFiscal.id                   | integer |
| tributacao.totalICMS            | float   |
| tributacao.totalIPI             | float   |
| transporte.fretePorConta        | integer |
| transporte.frete                | float   |
| transporte.quantidadeVolumes    | integer |
| transporte.pesoBruto            | float   |
| transporte.prazoEntrega         | integer |
| transporte.contato.nome         | text    |
| transporte.contato.id           | integer |
| transporte.etiqueta.nome        | text    |
| transporte.etiqueta.endereco    | text    |
| transporte.etiqueta.numero      | text    |
| transporte.etiqueta.complemento | text    |
| transporte.etiqueta.municipio   | text    |
| transporte.etiqueta.uf          | text    |
| transporte.etiqueta.cep         | text    |
| transporte.etiqueta.bairro      | text    |
| transporte.etiqueta.nomePais    | text    |
| transporte.volumes              | json    |
| vendedor.id                     | integer |
| intermediador.cnpj              | text    |
| intermediador.nomeUsuario       | text    |
| taxas.taxaComissao              | float   |
| taxas.custoFrete                | float   |
| taxas.valorBase                 | float   |
| itens                           | json    |
| parcelas                        | json    |

### produtos

Sync type availability: Full-refresh

Parent of [`produtos_detalhes`](#produtos_detalhes)

| Field                     | Type    |
| ------------------------- | ------- |
| id                        | integer |
| nome                      | text    |
| tipo                      | text    |
| situacao                  | text    |
| formato                   | text    |
| idProdutoPai              | integer |
| codigo                    | text    |
| preco                     | float   |
| precoCusto                | float   |
| estoque.saldoVirtualTotal | float   |
| descricaoCurta            | text    |
| imagemURL                 | text    |

### produtos\_detalhes

Sync type availability: Full-refresh

Child of [`produtos`](#produtos)

| Field                                 | Type    |
| ------------------------------------- | ------- |
| id                                    | integer |
| nome                                  | text    |
| tipo                                  | text    |
| situacao                              | text    |
| formato                               | text    |
| codigo                                | text    |
| preco                                 | float   |
| descricaoCurta                        | text    |
| imagemURL                             | text    |
| dataValidade                          | date    |
| unidade                               | text    |
| pesoLiquido                           | float   |
| pesoBruto                             | float   |
| volumes                               | integer |
| itensPorCaixa                         | float   |
| gtin                                  | text    |
| gtinEmbalagem                         | text    |
| tipoProducao                          | text    |
| condicao                              | integer |
| freteGratis                           | boolean |
| marca                                 | text    |
| descricaoComplementar                 | text    |
| linkExterno                           | text    |
| observacoes                           | text    |
| descricaoEmbalagemDiscreta            | text    |
| categoria.id                          | integer |
| estoque.minimo                        | float   |
| estoque.maximo                        | float   |
| estoque.crossdocking                  | integer |
| estoque.localizacao                   | text    |
| estoque.saldoVirtualTotal             | float   |
| fornecedor.id                         | integer |
| fornecedor.contato.id                 | integer |
| fornecedor.contato.nome               | text    |
| fornecedor.codigo                     | text    |
| fornecedor.precoCusto                 | float   |
| fornecedor.precoCompra                | float   |
| actionEstoque                         | text    |
| dimensoes.largura                     | float   |
| dimensoes.altura                      | float   |
| dimensoes.profundidade                | float   |
| dimensoes.unidadeMedida               | integer |
| tributacao.origem                     | integer |
| tributacao.nFCI                       | text    |
| tributacao.ncm                        | text    |
| tributacao.cest                       | text    |
| tributacao.codigoListaServicos        | text    |
| tributacao.spedTipoItem               | text    |
| tributacao.codigoItem                 | text    |
| tributacao.percentualTributos         | float   |
| tributacao.valorBaseStRetencao        | float   |
| tributacao.valorStRetencao            | float   |
| tributacao.valorICMSSubstituto        | float   |
| tributacao.codigoExcecaoTipi          | text    |
| tributacao.classeEnquadramentoIpi     | text    |
| tributacao.valorIpiFixo               | float   |
| tributacao.codigoSeloIpi              | text    |
| tributacao.valorPisFixo               | float   |
| tributacao.valorCofinsFixo            | float   |
| tributacao.codigoANP                  | text    |
| tributacao.descricaoANP               | text    |
| tributacao.percentualGLP              | float   |
| tributacao.percentualGasNacional      | float   |
| tributacao.percentualGasImportado     | float   |
| tributacao.valorPartida               | float   |
| tributacao.tipoArmamento              | float   |
| tributacao.descricaoCompletaArmamento | text    |
| tributacao.dadosAdicionais            | text    |
| tributacao.grupoProduto.id            | integer |
| midia.video.url                       | text    |
| midia.imagens.externas                | json    |
| midia.imagens.internas                | json    |
| linhaProduto.id                       | integer |
| estrutura.tipoEstoque                 | text    |
| estrutura.lancamentoEstoque           | text    |
| estrutura.componentes                 | json    |
| camposCustomizados                    | json    |
| variacoes                             | json    |

### vendedores

Sync type availability: Full-refresh

| Field            | Type    |
| ---------------- | ------- |
| id               | integer |
| contato.id       | integer |
| contato.nome     | text    |
| contato.situacao | text    |
| descontoLimite   | float   |
| loja.id          | integer |

### canais\_venda

Sync type availability: Full-refresh

| Field     | Type    |
| --------- | ------- |
| id        | integer |
| descricao | text    |
| tipo      | text    |
| situacao  | integer |

### grupos\_produtos

Sync type availability: Full-refresh

| Field                | Type    |
| -------------------- | ------- |
| id                   | integer |
| nome                 | text    |
| grupoProdutoPai.id   | integer |
| grupoProdutoPai.nome | text    |

### produtos\_lojas

Sync type availability: Full-refresh

| Field              | Type    |
| ------------------ | ------- |
| id                 | integer |
| codigo             | text    |
| preco              | float   |
| precoPromocional   | float   |
| produto.id         | integer |
| loja.id            | integer |
| fornecedorLoja.id  | integer |
| marcaLoja.id       | integer |
| categoriasProdutos | json    |

### modulos

Sync type availability: Full-refresh

Parent of [`modulos_situacoes`](#modulos_situacoes)

| Field          | Type |
| -------------- | ---- |
| id             | text |
| nome           | text |
| descricao      | text |
| criarSituacoes | text |

### modulos\_situacoes

Sync type availability: Full-refresh

Child of [`modulos`](#modulos)

| Field     | Type |
| --------- | ---- |
| id        | text |
| nome      | text |
| idHerdado | text |
| cor       | text |

### Entity Relationships

```mermaid
erDiagram
    contas_receber ||--o{ contas_receber_detalhes : "id = id_conta_receber"
    contas_receber_detalhes ||--o{ receber_borderos : "id = id_bordero"
    contas_pagar ||--o{ contas_pagar_detalhes : "id = id_conta_pagar"
    contas_pagar_detalhes ||--o{ borderos : "id = id_bordero"
    contatos ||--o{ contato_detalhes : "id = id_contato"
    contratos ||--o{ contrato_detalhes : "id = id_contrato"
    formas_pagamentos ||--o{ formas_pagamentos_detalhes : "id = id_forma_pagamento"
    logisticas ||--o{ remessas_logisticas : "id = id_logisticas"
    nfce ||--o{ nfce_detalhes : "id = id_nfce"
    nfe ||--o{ nfe_detalhes : "id = id_nfe"
    nfse ||--o{ nfse_detalhes : "id = id_nfse"
    propostas_comerciais ||--o{ propostas_comerciais_detalhes : "id = id_propostas_comerciais"
    pedidos_compras ||--o{ pedidos_compras_detalhes : "id = id_pedido_compra"
    pedidos_vendas ||--o{ pedidos_vendas_detalhes : "id = id_pedido_venda"
    produtos ||--o{ produtos_detalhes : "id = id_produto"
    modulos ||--o{ modulos_situacoes : "id = id_modulo"

    categorias_lojas { integer id PK }
    categorias_produtos { integer id PK }
    categorias_financeiras { integer id PK }
    contas_contabeis { integer id PK }
    contas_receber { integer id PK }
    contas_receber_detalhes { integer id PK }
    receber_borderos { integer id PK }
    contas_pagar { integer id PK }
    contas_pagar_detalhes { integer id PK }
    borderos { integer id PK }
    contatos { integer id PK }
    contato_detalhes { integer id PK }
    tipos_contatos { integer id PK }
    contratos { integer id PK }
    contrato_detalhes { integer id PK }
    depositos { integer id PK }
    formas_pagamentos { integer id PK }
    formas_pagamentos_detalhes { integer id PK }
    logisticas { integer id PK }
    servicos_logisticas { integer id PK }
    remessas_logisticas { integer id PK }
    naturezas_operacoes { integer id PK }
    nfce { integer id PK }
    nfce_detalhes { integer id PK }
    nfe { integer id PK }
    nfe_detalhes { integer id PK }
    nfse { integer id PK }
    nfse_detalhes { integer id PK }
    propostas_comerciais { integer id PK }
    propostas_comerciais_detalhes { integer id PK }
    pedidos_compras { integer id PK }
    pedidos_compras_detalhes { integer id PK }
    pedidos_vendas { integer id PK }
    pedidos_vendas_detalhes { integer id PK }
    produtos { integer id PK }
    produtos_detalhes { integer id PK }
    vendedores { integer id PK }
    canais_venda { integer id PK }
    grupos_produtos { integer id PK }
    produtos_lojas { integer id PK }
    modulos { text id PK }
    modulos_situacoes { text id PK }
```
