Configuring Gestão Click as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Gestão Click option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need an Access Token and a Secret Access Token, generated inside Gestão Click.1
Open the API integration screen
In Gestão Click, go to Configurações > Integração API.
2
Generate the token pair
Generate the tokens and copy both values. They are shown together on the same screen.
3
Paste them into Nekt
Fill in the two fields below with the values you copied.
- Access Token: The Access Token generated under Configurações > Integração API.
- Secret Access Token: The Secret Access Token issued alongside the Access Token on the same screen.
- Start Date: The earliest document date from which records will be synced. This applies to quotes, sales, service orders, invoices, payables and receivables. Registrations and reference tables (customers, products, cities and so on) are always synced in full, regardless of this setting.
- Lookback Days: (Default: 30 days) How many days before the last synced date to re-read on each run. Gestão Click can only filter records by their own document date, so this overlap window is what allows a document to be picked up again after it is edited. Increase it if documents in your operation are commonly revised more than 30 days after being issued.
- Requests Per Second: (Default: 3) The maximum request rate. Gestão Click allows 3 requests per second per company. Lower this only if other integrations share the same token pair.
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 data - which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data - which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.How data is synced
Gestão Click’s API can only filter records by their own document date. It offers no “modified since” filter, which shapes how each stream is synced:- Quotes, sales, service orders and the three invoice streams sync incrementally from the document’s issue date, re-reading the last Lookback Days so that documents edited after being issued are picked up again.
- Payments and receipts are synced in full on every run. Their dates are due and settlement dates, which do not move forward with time: an instalment can be due two years from now, and an overdue one can be years in the past. Reading the full ledger each run is what guarantees that overdue open entries are never missed.
- Registrations and reference tables are synced in full on every run. They are small, and the API’s date filter on these endpoints matches the record’s creation date, which would permanently hide long-standing customers or products that are still in use.
Because payments, receipts and the registration streams are read in full, choosing INCREMENTAL as the sync type for them will still append the complete current state on each run. Full table is usually the more useful choice for these.
Nested fields
Fields that hold a list or a structure are delivered as JSON strings, not as nested columns. This applies to document line items (produtos, servicos), addresses (enderecos), contacts (contatos), instalments (pagamentos), attachments (anexos), product variations (variacoes) and custom field values (atributos).
Query them with SQL JSON functions. Note that Gestão Click wraps each item in a single-key object, so the line items of a sale look like [{"produto": {...}}, {"produto": {...}}]:
Rate limits
Gestão Click allows 3 requests per second and 30,000 requests per day, counted per company rather than per integration. The connector stays within the per-second limit automatically and retries with backoff if the API throttles it. Every request returns at most 100 records, so the daily limit translates to roughly 3 million records per day. If you run several integrations against the same token pair, lower Requests Per Second so they share the budget.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 replicates, and a short description.Stream details
Customers
Customers
People and companies you sell to, with their addresses, contacts and custom fields.Primary key:
Replication: full tableFields (27):
idReplication: full tableFields (27):
id- Unique identifier of the customertipo_pessoa- Entity type: PF for an individual, PJ for a company, ES for a foreign entitynome- Display name of the customer (trade name for companies)razao_social- Registered legal name, for companiescnpj- Brazilian company tax ID (CNPJ), formattedinscricao_estadual- State tax registration numberinscricao_municipal- Municipal tax registration numbertipo_contribuinte- ICMS taxpayer classificationresponsavel- Name of the person responsible for the accountcpf- Brazilian individual tax ID (CPF), formattedrg- Brazilian national ID document numberdata_nascimento- Date of birth (individuals) or incorporation date (companies), as YYYY-MM-DDsexo- Gender recorded for an individual customerloja_virtual_ativo- Whether the customer has online-store access enabled: 1 for yes, 0 for noemail_acesso- Email the customer uses to sign in to the online storetelefone- Landline phone numbercelular- Mobile phone numberfax- Fax numberemail- Primary email addressativo- Whether the customer record is active: 1 for active, 0 for inactivevendedor_id- Identifier of the salesperson assigned to this customernome_vendedor- Name of the salesperson assigned to this customercadastrado_em- Timestamp the customer was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the customer, as YYYY-MM-DD HH:MM:SScontatos- Additional contact people for this record, as a JSON array of objects (each wrapped in a ‘contato’ key) holding the contact’s name, role, phone and emailenderecos- Registered addresses, as a JSON array of objects (each wrapped in an ‘endereco’ key) holding street, number, complement, district, postal code, city and stateatributos- Values of the account’s user-defined registration fields, as a JSON array of objects (each wrapped in an ‘atributo’ key); the field definitions are in the registration_custom_fields stream
Suppliers
Suppliers
People and companies you buy from, with their addresses, contacts and custom fields.Primary key:
Replication: full tableFields (20):
idReplication: full tableFields (20):
id- Unique identifier of the suppliertipo_pessoa- Entity type: PF for an individual, PJ for a company, ES for a foreign entitynome- Display name of the supplier (trade name for companies)razao_social- Registered legal name, for companiescnpj- Brazilian company tax ID (CNPJ), formattedinscricao_estadual- State tax registration numberinscricao_municipal- Municipal tax registration numbertipo_contribuinte- ICMS taxpayer classificationcpf- Brazilian individual tax ID (CPF), formattedrg- Brazilian national ID document numberdata_nascimento- Date of birth (individuals) or incorporation date (companies), as YYYY-MM-DDtelefone- Landline phone numbercelular- Mobile phone numberemail- Primary email addressativo- Whether the supplier record is active: 1 for active, 0 for inactivecadastrado_em- Timestamp the supplier was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the supplier, as YYYY-MM-DD HH:MM:SScontatos- Additional contact people for this record, as a JSON array of objects (each wrapped in a ‘contato’ key) holding the contact’s name, role, phone and emailenderecos- Registered addresses, as a JSON array of objects (each wrapped in an ‘endereco’ key) holding street, number, complement, district, postal code, city and stateatributos- Values of the account’s user-defined registration fields, as a JSON array of objects (each wrapped in an ‘atributo’ key); the field definitions are in the registration_custom_fields stream
Carriers
Carriers
Freight carriers used on sales and purchases.Primary key:
Replication: full tableFields (19):
idReplication: full tableFields (19):
id- Unique identifier of the carriertipo_pessoa- Entity type: PF for an individual, PJ for a company, ES for a foreign entitynome- Display name of the carrier (trade name for companies)razao_social- Registered legal name, for companiescnpj- Brazilian company tax ID (CNPJ), formattedinscricao_estadual- State tax registration numberinscricao_municipal- Municipal tax registration numbercpf- Brazilian individual tax ID (CPF), formattedrg- Brazilian national ID document numberdata_nascimento- Date of birth (individuals) or incorporation date (companies), as YYYY-MM-DDtelefone- Landline phone numbercelular- Mobile phone numberemail- Primary email addressobservacoes- Free-text notes about the carrierativo- Whether the carrier record is active: 1 for active, 0 for inactivecadastrado_em- Timestamp the carrier was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the carrier, as YYYY-MM-DD HH:MM:SScontatos- Additional contact people for this record, as a JSON array of objects (each wrapped in a ‘contato’ key) holding the contact’s name, role, phone and emailenderecos- Registered addresses, as a JSON array of objects (each wrapped in an ‘endereco’ key) holding street, number, complement, district, postal code, city and state
Employees
Employees
Staff records, including the commission rate used on sales.Primary key:
Replication: full tableFields (19):
idReplication: full tableFields (19):
id- Unique identifier of the employeenome- Full name of the employeeemail_secundario- Secondary email addresscpf- Brazilian individual tax ID (CPF), formattedrg- Brazilian national ID document numberdata_nascimento- Date of birth, as YYYY-MM-DDsexo- Gender recorded for the employeetelefone- Phone numbercep- Postal code (CEP) of the employee’s addresslogradouro- Street name of the employee’s addressnumero- Street number of the employee’s addresscomplemento- Address complement, such as apartment or suitebairro- District or neighbourhood of the employee’s addresscidade_id- Identifier of the city, joinable to the cities streamnome_cidade- Name of the cityestado- Two-letter Brazilian state abbreviationcomissao- Commission percentage earned by the employee on salesativo- Whether the employee record is active: 1 for active, 0 for inactiveatributos- Values of the account’s user-defined registration fields, as a JSON array of objects (each wrapped in an ‘atributo’ key); the field definitions are in the registration_custom_fields stream
Users
Users
ERP user accounts.Primary key:
Replication: full tableFields (17):
idReplication: full tableFields (17):
id- Unique identifier of the ERP usernome- Full name of the usercpf- Brazilian individual tax ID (CPF), formattedrg- Brazilian national ID document numberdata_nascimento- Date of birth, as YYYY-MM-DDsexo- Gender recorded for the usergrupo_id- Identifier of the permission group the user belongs toemail- Email address used to sign in to the ERPobservacoes- Free-text notes about the usertelefone- Landline phone numbercelular1- Primary mobile phone numbercelular2- Secondary mobile phone numberhora_entrada- Scheduled start of the working day, as HH:MM:SShora_almoco_entrada- Scheduled start of the lunch break, as HH:MM:SShora_almoco_saida- Scheduled end of the lunch break, as HH:MM:SShora_saida- Scheduled end of the working day, as HH:MM:SSativo- Whether the user account is active: 1 for active, 0 for inactive
Stores
Stores
Stores (units) registered in the account.Primary key:
Replication: full tableFields (2):
idReplication: full tableFields (2):
id- Unique identifier of the storenome- Name of the store, for example Matriz for the head office
Products
Products
Products for sale, with cost and selling prices, stock on hand, tax classification and variations.Primary key:
Replication: full tableFields (25):
idReplication: full tableFields (25):
id- Unique identifier of the productnome- Name of the productcodigo_interno- Internal SKU or reference code assigned by the companycodigo_barra- Barcode (EAN/GTIN) of the productpossui_variacao- Whether the product has variations such as size or colour: 1 for yes, 0 for nopossui_composicao- Whether the product is assembled from other products: 1 for yes, 0 for nomovimenta_estoque- Whether sales and purchases of this product move inventory: 1 for yes, 0 for nopeso- Weight of the product, in kilogramslargura- Width of the product, in centimetresaltura- Height of the product, in centimetrescomprimento- Length of the product, in centimetresativo- Whether the product is active: 1 for active, 0 for inactivegrupo_id- Identifier of the product group, joinable to the product_groups streamnome_grupo- Name of the product groupdescricao- Long description of the productestoque- Current inventory quantity on handvalor_custo- Cost price of the productvalor_venda- Default selling price of the productcadastrado_em- Timestamp the product was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the product, as YYYY-MM-DD HH:MM:SSvalores- Price tiers for the product, as a JSON array of objects holding the price-type identifier and name, the markup applied, and the resulting cost and selling pricesvariacoes- Product variations, as a JSON array of objects (each wrapped in a ‘variacao’ key) holding the variation’s own code, attributes, prices and stockfiscal- Tax classification of the product, as a JSON object holding the NCM and CEST codes, net and gross weight, and the approximate tax amountfotos- Product images, as a JSON array of objects holding the image URLsatributos- Values of the account’s user-defined product fields, as a JSON array of objects; the field definitions are in the product_custom_fields stream
Product Groups
Product Groups
The product category hierarchy.Primary key:
Replication: full tableFields (6):
idReplication: full tableFields (6):
id- Unique identifier of the product groupgrupo_pai_id- Identifier of the parent group, empty for a top-level groupnome- Name of the product groupurl- URL slug used for the group in the online storemeta_palavras_chaves- Meta keywords used for the group in the online storemeta_descricao- Meta description used for the group in the online store
Services
Services
Services offered for sale.Primary key:
Replication: full tableFields (5):
idReplication: full tableFields (5):
id- Unique identifier of the servicecodigo- Reference code assigned to the servicenome- Name of the servicevalor_venda- Default selling price of the serviceobservacoes- Free-text notes about the service
Quotes
Quotes
Quotes (orçamentos) issued to customers, with their line items and payment terms.Primary key:
Replication: incremental on
idReplication: incremental on
dataFields (52):id- Unique identifier of the quotecodigo- Sequential number shown to users for this quotecliente_id- Identifier of the customer, joinable to the customers streamnome_cliente- Name of the customervendedor_id- Identifier of the salesperson, joinable to the employees streamnome_vendedor- Name of the salespersontecnico_id- Identifier of the assigned technician, joinable to the employees streamnome_tecnico- Name of the assigned techniciansituacao_id- Identifier of the quote status, joinable to the matching status streamnome_situacao- Name of the quote status, for example Em aberto or Finalizadocor_situacao- Hex colour the ERP uses to display the statusvalor_total- Total value of the quote, after discounts and freightvalor_produtos- Subtotal of the product line itemsvalor_servicos- Subtotal of the service line itemsvalor_custo- Total cost of the line items, used to derive marginvalor_frete- Freight amount chargeddesconto_valor- Discount applied as an absolute amountdesconto_porcentagem- Discount applied as a percentagetransportadora_id- Identifier of the freight carrier, joinable to the carriers streamnome_transportadora- Name of the freight carriercentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centrenome_canal_venda- Name of the sales channel the document came throughnome_loja- Name of the store that owns the documentaos_cuidados_de- Attention-to name the document is addressed tovalidade- Number of days the document remains validintroducao- Introductory text printed at the top of the documentobservacoes- Notes visible to the customerobservacoes_interna- Internal notes, not shown to the customercondicao_pagamento- Payment terms agreed for the documentforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnome_forma_pagamento- Name of the payment methoddata_primeira_parcela- Due date of the first instalment, as YYYY-MM-DDnumero_parcelas- Number of instalments the payment was split intointervalo_dias- Number of days between instalmentssituacao_financeiro- Whether the document has been posted to the financial ledgersituacao_estoque- Whether the document has moved inventorynota_fiscal_id- Identifier of the product invoice issued for this document, joinable to the product_invoices streamnota_fiscal_servico_id- Identifier of the service invoice issued for this document, joinable to the service_invoices streamexibir_endereco- Whether the customer address is printed on the document: 1 for yes, 0 for nohash- Opaque token used to build the document’s public share linkcadastrado_em- Timestamp the quote was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the quote, as YYYY-MM-DD HH:MM:SSprodutos- Product line items, as a JSON array of objects (each wrapped in a ‘produto’ key) holding the product identifier, name, quantity, unit price and totalservicos- Service line items, as a JSON array of objects (each wrapped in a ‘servico’ key) holding the service identifier, name, quantity, unit price and totalequipamentos- Customer equipment attached to the document, as a JSON array of objects (each wrapped in an ‘equipamento’ key) holding the equipment description, brand, model and serial numberpagamentos- Instalments generated for the document, as a JSON array of objects (each wrapped in a ‘pagamento’ key) holding the due date, amount and payment methodenderecos- Delivery and billing addresses for the document, as a JSON array of objects (each wrapped in an ‘endereco’ key)atributos- Values of the account’s user-defined fields for this document, as a JSON array of objects (each wrapped in an ‘atributo’ key)anexos- Files attached to the document, as a JSON array of objects (each wrapped in an ‘anexo’ key) holding the file name and URLdata- Date the quote was issued, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keyprevisao_entrega- Expected delivery date, as YYYY-MM-DD
Sales
Sales
Sales (vendas), covering product sales, service sales and counter sales.Primary key:
Replication: incremental on
idReplication: incremental on
dataFields (52):id- Unique identifier of the salecodigo- Sequential number shown to users for this salecliente_id- Identifier of the customer, joinable to the customers streamnome_cliente- Name of the customervendedor_id- Identifier of the salesperson, joinable to the employees streamnome_vendedor- Name of the salespersontecnico_id- Identifier of the assigned technician, joinable to the employees streamnome_tecnico- Name of the assigned techniciansituacao_id- Identifier of the sale status, joinable to the matching status streamnome_situacao- Name of the sale status, for example Em aberto or Finalizadocor_situacao- Hex colour the ERP uses to display the statusvalor_total- Total value of the sale, after discounts and freightvalor_produtos- Subtotal of the product line itemsvalor_servicos- Subtotal of the service line itemsvalor_custo- Total cost of the line items, used to derive marginvalor_frete- Freight amount chargeddesconto_valor- Discount applied as an absolute amountdesconto_porcentagem- Discount applied as a percentagetransportadora_id- Identifier of the freight carrier, joinable to the carriers streamnome_transportadora- Name of the freight carriercentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centrenome_canal_venda- Name of the sales channel the document came throughnome_loja- Name of the store that owns the documentaos_cuidados_de- Attention-to name the document is addressed tovalidade- Number of days the document remains validintroducao- Introductory text printed at the top of the documentobservacoes- Notes visible to the customerobservacoes_interna- Internal notes, not shown to the customercondicao_pagamento- Payment terms agreed for the documentforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnome_forma_pagamento- Name of the payment methoddata_primeira_parcela- Due date of the first instalment, as YYYY-MM-DDnumero_parcelas- Number of instalments the payment was split intointervalo_dias- Number of days between instalmentssituacao_financeiro- Whether the document has been posted to the financial ledgersituacao_estoque- Whether the document has moved inventorynota_fiscal_id- Identifier of the product invoice issued for this document, joinable to the product_invoices streamnota_fiscal_servico_id- Identifier of the service invoice issued for this document, joinable to the service_invoices streamexibir_endereco- Whether the customer address is printed on the document: 1 for yes, 0 for nohash- Opaque token used to build the document’s public share linkcadastrado_em- Timestamp the sale was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the sale, as YYYY-MM-DD HH:MM:SSprodutos- Product line items, as a JSON array of objects (each wrapped in a ‘produto’ key) holding the product identifier, name, quantity, unit price and totalservicos- Service line items, as a JSON array of objects (each wrapped in a ‘servico’ key) holding the service identifier, name, quantity, unit price and totalequipamentos- Customer equipment attached to the document, as a JSON array of objects (each wrapped in an ‘equipamento’ key) holding the equipment description, brand, model and serial numberpagamentos- Instalments generated for the document, as a JSON array of objects (each wrapped in a ‘pagamento’ key) holding the due date, amount and payment methodenderecos- Delivery and billing addresses for the document, as a JSON array of objects (each wrapped in an ‘endereco’ key)atributos- Values of the account’s user-defined fields for this document, as a JSON array of objects (each wrapped in an ‘atributo’ key)anexos- Files attached to the document, as a JSON array of objects (each wrapped in an ‘anexo’ key) holding the file name and URLdata- Date the sale was issued, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keyprazo_entrega- Agreed delivery deadline, as YYYY-MM-DD
Service Orders
Service Orders
Service orders (ordens de serviço), including the customer equipment attached to them.Primary key:
Replication: incremental on
idReplication: incremental on
data_entradaFields (52):id- Unique identifier of the service ordercodigo- Sequential number shown to users for this service ordercliente_id- Identifier of the customer, joinable to the customers streamnome_cliente- Name of the customervendedor_id- Identifier of the salesperson, joinable to the employees streamnome_vendedor- Name of the salespersontecnico_id- Identifier of the assigned technician, joinable to the employees streamnome_tecnico- Name of the assigned techniciansituacao_id- Identifier of the service order status, joinable to the matching status streamnome_situacao- Name of the service order status, for example Em aberto or Finalizadocor_situacao- Hex colour the ERP uses to display the statusvalor_total- Total value of the service order, after discounts and freightvalor_produtos- Subtotal of the product line itemsvalor_servicos- Subtotal of the service line itemsvalor_custo- Total cost of the line items, used to derive marginvalor_frete- Freight amount chargeddesconto_valor- Discount applied as an absolute amountdesconto_porcentagem- Discount applied as a percentagetransportadora_id- Identifier of the freight carrier, joinable to the carriers streamnome_transportadora- Name of the freight carriercentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centrenome_canal_venda- Name of the sales channel the document came throughnome_loja- Name of the store that owns the documentaos_cuidados_de- Attention-to name the document is addressed tovalidade- Number of days the document remains validintroducao- Introductory text printed at the top of the documentobservacoes- Notes visible to the customerobservacoes_interna- Internal notes, not shown to the customercondicao_pagamento- Payment terms agreed for the documentforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnome_forma_pagamento- Name of the payment methoddata_primeira_parcela- Due date of the first instalment, as YYYY-MM-DDnumero_parcelas- Number of instalments the payment was split intointervalo_dias- Number of days between instalmentssituacao_financeiro- Whether the document has been posted to the financial ledgersituacao_estoque- Whether the document has moved inventorynota_fiscal_id- Identifier of the product invoice issued for this document, joinable to the product_invoices streamnota_fiscal_servico_id- Identifier of the service invoice issued for this document, joinable to the service_invoices streamexibir_endereco- Whether the customer address is printed on the document: 1 for yes, 0 for nohash- Opaque token used to build the document’s public share linkcadastrado_em- Timestamp the service order was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the service order, as YYYY-MM-DD HH:MM:SSprodutos- Product line items, as a JSON array of objects (each wrapped in a ‘produto’ key) holding the product identifier, name, quantity, unit price and totalservicos- Service line items, as a JSON array of objects (each wrapped in a ‘servico’ key) holding the service identifier, name, quantity, unit price and totalequipamentos- Customer equipment attached to the document, as a JSON array of objects (each wrapped in an ‘equipamento’ key) holding the equipment description, brand, model and serial numberpagamentos- Instalments generated for the document, as a JSON array of objects (each wrapped in a ‘pagamento’ key) holding the due date, amount and payment methodenderecos- Delivery and billing addresses for the document, as a JSON array of objects (each wrapped in an ‘endereco’ key)atributos- Values of the account’s user-defined fields for this document, as a JSON array of objects (each wrapped in an ‘atributo’ key)anexos- Files attached to the document, as a JSON array of objects (each wrapped in an ‘anexo’ key) holding the file name and URLdata_entrada- Date the service order was opened, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keydata_saida- Date the service order was closed and the item returned, as YYYY-MM-DD; empty while the order is still open
Purchases
Purchases
Purchase orders placed with suppliers.Primary key:
Replication: full tableFields (31):
idReplication: full tableFields (31):
id- Unique identifier of the purchasecodigo- Sequential number shown to users for this purchasefornecedor_id- Identifier of the supplier, joinable to the suppliers streamnome_fornecedor- Name of the supplierdata_emissao- Date the purchase was issued, as YYYY-MM-DDsituacao_id- Identifier of the purchase status, joinable to the purchase_statuses streamnome_situacao- Name of the purchase statuscentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centrenumero_nfe- Number of the supplier’s product invoice (NF-e) covering this purchasetransportadora_id- Identifier of the freight carrier, joinable to the carriers streamnome_transportadora- Name of the freight carriervalor_frete- Freight amount on the purchasepagar_frete- Whether the freight is paid by the buyer: 1 for yes, 0 for novalor_produtos- Subtotal of the purchased product line itemsvalor_impostos- Total taxes on the purchasedesconto_valor- Discount applied as an absolute amountdesconto_porcentagem- Discount applied as a percentagevalor_total- Total value of the purchase, after taxes, freight and discountsforma_pagamento- Name of the payment method agreed with the supplierforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnumero_parcelas- Number of instalments the payment was split intointervalo_dias- Number of days between instalmentsdata_primeira_parcela- Due date of the first instalment, as YYYY-MM-DDobservacoes- Notes visible to the supplierobservacoes_interna- Internal notes, not shared with the suppliercadastrado_em- Timestamp the purchase was created, as YYYY-MM-DD HH:MM:SSpagamentos- Instalments generated for the purchase, as a JSON array of objects (each wrapped in a ‘pagamento’ key) holding the due date, amount and payment methodsituacoes- Status history of the purchase, as a JSON array of objects (each wrapped in a ‘situacao’ key) holding the status and when it was appliedprodutos- Purchased product line items, as a JSON array of objects (each wrapped in a ‘produto’ key) holding the product identifier, name, quantity, unit cost and totalcampos_extras- Values of the account’s user-defined purchase fields, as a JSON array of objects
Product Invoices
Product Invoices
NF-e (model 55) product invoices, with issuer, recipient, tax totals and line items.Primary key:
Replication: incremental on
idReplication: incremental on
data_emissaoFields (97):id- Unique identifier of the product invoiceempresa_id- Identifier of the company that issued the documentloja_id- Identifier of the issuing store, joinable to the stores streamnome_loja- Name of the issuing storepedido_id- Identifier of the sale this document was issued for, joinable to the sales streamcompra_id- Identifier of the purchase this document was issued for, joinable to the purchases streamchave- 44-digit access key assigned to the document by SEFAZprotocolo- SEFAZ protocol number returned when the document was authorizedcfop_id- Internal identifier of the CFOP operation codecodigo_cfop- CFOP code classifying the fiscal operationdescricao_cfop- Description of the CFOP operation codenatureza_operacao- Nature of the operation, for example Venda de mercadoriaindicador_pagamento- Payment indicator: 0 for cash, 1 for instalmentsmodelo- Fiscal document model number, 55 for NF-e and 65 for NFC-eserie- Series of the fiscal documentnumero_nf- Sequential number of the fiscal document within its seriesdata_emissao- Date the document was issued, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keyhora_emissao- Time the document was issued, as HH:MM:SStipo_nf- Direction of the document: 0 for inbound, 1 for outboundindicador_destinatario- Recipient’s ICMS taxpayer statuscidade_id- Identifier of the city where the operation took place, joinable to the cities streamcidade_nome- Name of the city where the operation took placecodigo_uf- IBGE numeric code of the state where the operation took placetipo_emissao- Issuance mode: 1 for normal, other values for contingencytipo_ambiente- SEFAZ environment: 1 for production, 2 for homologationfinalidade_nf- Purpose of the document: 1 normal, 2 complementary, 3 adjustment, 4 returnconsumidor_final- Whether the recipient is the final consumer: 1 for yes, 0 for notipo_atendimento- How the sale was served, for example on premises or deliverytipo_documento_emitente- Whether the issuer is identified by CNPJ or CPFcnpj_emitente- Issuer’s company tax ID (CNPJ)cpf_emitente- Issuer’s individual tax ID (CPF)nome_emitente- Issuer’s registered legal namefantasia_emitente- Issuer’s trade namelogradouro_emitente- Street name of the issuer’s addressnumero_emitente- Street number of the issuer’s addresscomplemento_emitente- Address complement of the issuer’s addressbairro_emitente- District of the issuer’s addresscodigo_municipio_emitente- IBGE code of the issuer’s municipalitymunicipio_emitente- Name of the issuer’s municipalityuf_emitente- Two-letter state abbreviation of the issuer’s addresscep_emitente- Postal code (CEP) of the issuer’s addresscodigo_pais_emitente- Country code of the issuer’s address, 1058 for Brazilpais_emitente- Country name of the issuer’s addresstelefone_emitente- Issuer’s phone numberie_emitente- Issuer’s state tax registration (inscrição estadual)iest_emitente- Issuer’s substitute-taxpayer state registrationim_emitente- Issuer’s municipal tax registrationdestinatario_id- Identifier of the recipient customer, joinable to the customers streamdestinatario_nome- Name of the recipient customerdestinatario_fornecedor_id- Identifier of the recipient supplier, joinable to the suppliers streamdestinatario_fornecedor_nome- Name of the recipient supplierdestinatario_tipo_documento- Whether the recipient is identified by CNPJ or CPFdestinatario_cnpj- Recipient’s company tax ID (CNPJ)destinatario_cpf- Recipient’s individual tax ID (CPF)destinatario_id_estrangeiro- Recipient’s foreign identification number, for exportsdestinatario_logradouro- Street name of the recipient’s addressdestinatario_numero- Street number of the recipient’s addressdestinatario_complemento- Address complement of the recipient’s addressdestinatario_bairro- District of the recipient’s addressdestinatario_cidade_id- Identifier of the recipient’s city, joinable to the cities streamdestinatario_municipio_codigo- IBGE code of the recipient’s municipalitydestinatario_municipio_nome- Name of the recipient’s municipalitydestinatario_uf- Two-letter state abbreviation of the recipient’s addressdestinatario_cep- Postal code (CEP) of the recipient’s addressdestinatario_pais_codigo- Country code of the recipient’s address, 1058 for Brazildestinatario_pais_nome- Country name of the recipient’s addressdestinatario_telefone- Recipient’s phone numberdestinatario_ie- Recipient’s state tax registration (inscrição estadual)destinatario_im- Recipient’s municipal tax registrationdestinatario_email- Recipient’s email address the document was sent tovalor_total_nf- Total value of the fiscal documentvalor_produtos- Sum of the product line item values, before freight and discountsvalor_frete- Freight amount on the documentvalor_seguro- Insurance amount on the documentvalor_desconto- Discount amount on the documentvalor_outros- Other accessory expenses on the documentbase_icms- ICMS tax basevalor_icms- ICMS tax amountvalor_fcp- Poverty-reduction fund (FCP) amountbase_icms_st- Tax base for ICMS under tax substitutionvalor_icms_st- ICMS amount under tax substitutionvalor_fcp_st- FCP amount under tax substitutionvalor_fcp_st_retido- FCP amount previously withheld under tax substitutionvalor_imposto_importacao- Import duty amountvalor_ipi- IPI tax amountvalor_ipi_devolvido- IPI amount refunded on returned goodsvalor_pis- PIS contribution amountvalor_cofins- COFINS contribution amountvalor_icms_desonerado- ICMS amount exemptedvalor_fcp_uf_destino- FCP amount due to the destination state, on interstate salesvalor_icms_uf_remetente- ICMS amount due to the origin state, on interstate salesinformacoes_complementares- Additional information printed on the documentsituacao_nf- Status of the document, for example authorized, cancelled or pendingcadastrado_em- Timestamp the product invoice was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the product invoice, as YYYY-MM-DD HH:MM:SSprodutos- Product line items, as a JSON array of objects holding the product identifier and code, name, CFOP, unit, quantity, unit price, NCM and barcodepagamento- Payment details, as a JSON array of objects holding the instalment number, payment method, due date, amount, card brand, acquirer CNPJ and authorization code
Consumer Invoices
Consumer Invoices
NFC-e (model 65) consumer invoices, same shape as NF-e.Primary key:
Replication: incremental on
idReplication: incremental on
data_emissaoFields (97):id- Unique identifier of the consumer invoiceempresa_id- Identifier of the company that issued the documentloja_id- Identifier of the issuing store, joinable to the stores streamnome_loja- Name of the issuing storepedido_id- Identifier of the sale this document was issued for, joinable to the sales streamcompra_id- Identifier of the purchase this document was issued for, joinable to the purchases streamchave- 44-digit access key assigned to the document by SEFAZprotocolo- SEFAZ protocol number returned when the document was authorizedcfop_id- Internal identifier of the CFOP operation codecodigo_cfop- CFOP code classifying the fiscal operationdescricao_cfop- Description of the CFOP operation codenatureza_operacao- Nature of the operation, for example Venda de mercadoriaindicador_pagamento- Payment indicator: 0 for cash, 1 for instalmentsmodelo- Fiscal document model number, 55 for NF-e and 65 for NFC-eserie- Series of the fiscal documentnumero_nf- Sequential number of the fiscal document within its seriesdata_emissao- Date the document was issued, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keyhora_emissao- Time the document was issued, as HH:MM:SStipo_nf- Direction of the document: 0 for inbound, 1 for outboundindicador_destinatario- Recipient’s ICMS taxpayer statuscidade_id- Identifier of the city where the operation took place, joinable to the cities streamcidade_nome- Name of the city where the operation took placecodigo_uf- IBGE numeric code of the state where the operation took placetipo_emissao- Issuance mode: 1 for normal, other values for contingencytipo_ambiente- SEFAZ environment: 1 for production, 2 for homologationfinalidade_nf- Purpose of the document: 1 normal, 2 complementary, 3 adjustment, 4 returnconsumidor_final- Whether the recipient is the final consumer: 1 for yes, 0 for notipo_atendimento- How the sale was served, for example on premises or deliverytipo_documento_emitente- Whether the issuer is identified by CNPJ or CPFcnpj_emitente- Issuer’s company tax ID (CNPJ)cpf_emitente- Issuer’s individual tax ID (CPF)nome_emitente- Issuer’s registered legal namefantasia_emitente- Issuer’s trade namelogradouro_emitente- Street name of the issuer’s addressnumero_emitente- Street number of the issuer’s addresscomplemento_emitente- Address complement of the issuer’s addressbairro_emitente- District of the issuer’s addresscodigo_municipio_emitente- IBGE code of the issuer’s municipalitymunicipio_emitente- Name of the issuer’s municipalityuf_emitente- Two-letter state abbreviation of the issuer’s addresscep_emitente- Postal code (CEP) of the issuer’s addresscodigo_pais_emitente- Country code of the issuer’s address, 1058 for Brazilpais_emitente- Country name of the issuer’s addresstelefone_emitente- Issuer’s phone numberie_emitente- Issuer’s state tax registration (inscrição estadual)iest_emitente- Issuer’s substitute-taxpayer state registrationim_emitente- Issuer’s municipal tax registrationdestinatario_id- Identifier of the recipient customer, joinable to the customers streamdestinatario_nome- Name of the recipient customerdestinatario_fornecedor_id- Identifier of the recipient supplier, joinable to the suppliers streamdestinatario_fornecedor_nome- Name of the recipient supplierdestinatario_tipo_documento- Whether the recipient is identified by CNPJ or CPFdestinatario_cnpj- Recipient’s company tax ID (CNPJ)destinatario_cpf- Recipient’s individual tax ID (CPF)destinatario_id_estrangeiro- Recipient’s foreign identification number, for exportsdestinatario_logradouro- Street name of the recipient’s addressdestinatario_numero- Street number of the recipient’s addressdestinatario_complemento- Address complement of the recipient’s addressdestinatario_bairro- District of the recipient’s addressdestinatario_cidade_id- Identifier of the recipient’s city, joinable to the cities streamdestinatario_municipio_codigo- IBGE code of the recipient’s municipalitydestinatario_municipio_nome- Name of the recipient’s municipalitydestinatario_uf- Two-letter state abbreviation of the recipient’s addressdestinatario_cep- Postal code (CEP) of the recipient’s addressdestinatario_pais_codigo- Country code of the recipient’s address, 1058 for Brazildestinatario_pais_nome- Country name of the recipient’s addressdestinatario_telefone- Recipient’s phone numberdestinatario_ie- Recipient’s state tax registration (inscrição estadual)destinatario_im- Recipient’s municipal tax registrationdestinatario_email- Recipient’s email address the document was sent tovalor_total_nf- Total value of the fiscal documentvalor_produtos- Sum of the product line item values, before freight and discountsvalor_frete- Freight amount on the documentvalor_seguro- Insurance amount on the documentvalor_desconto- Discount amount on the documentvalor_outros- Other accessory expenses on the documentbase_icms- ICMS tax basevalor_icms- ICMS tax amountvalor_fcp- Poverty-reduction fund (FCP) amountbase_icms_st- Tax base for ICMS under tax substitutionvalor_icms_st- ICMS amount under tax substitutionvalor_fcp_st- FCP amount under tax substitutionvalor_fcp_st_retido- FCP amount previously withheld under tax substitutionvalor_imposto_importacao- Import duty amountvalor_ipi- IPI tax amountvalor_ipi_devolvido- IPI amount refunded on returned goodsvalor_pis- PIS contribution amountvalor_cofins- COFINS contribution amountvalor_icms_desonerado- ICMS amount exemptedvalor_fcp_uf_destino- FCP amount due to the destination state, on interstate salesvalor_icms_uf_remetente- ICMS amount due to the origin state, on interstate salesinformacoes_complementares- Additional information printed on the documentsituacao_nf- Status of the document, for example authorized, cancelled or pendingcadastrado_em- Timestamp the consumer invoice was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the consumer invoice, as YYYY-MM-DD HH:MM:SSprodutos- Product line items, as a JSON array of objects holding the product identifier and code, name, CFOP, unit, quantity, unit price, NCM and barcodepagamento- Payment details, as a JSON array of objects holding the instalment number, payment method, due date, amount, card brand, acquirer CNPJ and authorization code
Service Invoices
Service Invoices
NFS-e service invoices, with ISS tax base and withholding details.Primary key:
Replication: incremental on
idReplication: incremental on
data_emissaoFields (121):id- Unique identifier of the service invoiceempresa_id- Identifier of the company that issued the invoiceloja_id- Identifier of the issuing store, joinable to the stores streamnome_loja- Name of the issuing storecontrato_id- Identifier of the contract the invoice was issued againstpedido_id- Identifier of the sale or service order the invoice was issued forcodigo- Internal sequential code of the invoicerps- Number of the provisional service receipt (RPS) the invoice replacednumero- Number assigned to the invoice by the municipalitycodigo_verificacao- Verification code used to validate the invoice on the municipal portalserie- Series of the invoicedata_emissao- Date the invoice was issued, as YYYY-MM-DD; this is the field the API’s data_inicio filter matches and the incremental replication keydata_emissao_ano- Year the invoice was issueddata_emissao_mes- Month the invoice was issuedhora_emissao- Time the invoice was issued, as HH:MM:SScodigo_natureza_operacao- Code for the nature of the operationnome_natureza_operacao- Description of the nature of the operationnatureza_operacao- Nature of the operation, as returned on records using the short field spellingcodigo_incidencia_issqn- Code of the municipality where ISSQN is leviedcidade_incidencia_issqn- Name of the municipality where ISSQN is leviedemitente_cnpj- Issuer’s company tax ID (CNPJ)emitente_inscricao_municipal- Issuer’s municipal tax registrationemit_cnpj- Issuer’s company tax ID (CNPJ), as returned on records using the short field spellingemit_inscricao_municipal- Issuer’s municipal tax registration, as returned on records using the short field spellingdestinatario_id_cliente- Identifier of the recipient customer, joinable to the customers streamdestinatario_nome_cliente- Name of the recipient customerdestinatario_tipo_pessoa- Recipient entity type: PF for an individual, PJ for a companydestinatario_razao_social- Recipient’s registered legal namedestinatario_cnpj- Recipient’s company tax ID (CNPJ)destinatario_cpf- Recipient’s individual tax ID (CPF)destinatario_inscricao_municipal- Recipient’s municipal tax registrationdestinatario_cep- Postal code (CEP) of the recipient’s addressdestinatario_logradouro_endereco- Street name of the recipient’s addressdestinatario_numero_endereco- Street number of the recipient’s addressdestinatario_complemento_endereco- Address complement of the recipient’s addressdestinatario_bairro_endereco- District of the recipient’s addressdestinatario_cidade_id_endereco- Identifier of the recipient’s city, joinable to the cities streamdestinatario_nome_cidade_endereco- Name of the recipient’s citydestinatario_codigo_cidade_endereco- IBGE code of the recipient’s citydestinatario_estado_endereco- Two-letter state abbreviation of the recipient’s addressdest_codigo_siafi- SIAFI code of the recipient’s municipalitydestinatario_telefone- Recipient’s phone numberdestinatario_email- Recipient’s email addressdest_cliente_id- Identifier of the recipient customer, as returned on records using the short field spellingdest_nome_cliente- Name of the recipient customer, as returned on records using the short field spellingdest_tipo_pessoa- Recipient entity type, as returned on records using the short field spellingdest_razao_social- Recipient’s registered legal name, as returned on records using the short field spellingdest_cnpj- Recipient’s CNPJ, as returned on records using the short field spellingdest_cpf- Recipient’s CPF, as returned on records using the short field spellingdest_inscricao_municipal- Recipient’s municipal tax registration, as returned on records using the short field spellingdest_cep- Recipient’s postal code, as returned on records using the short field spellingdest_logradouro- Recipient’s street name, as returned on records using the short field spellingdest_numero- Recipient’s street number, as returned on records using the short field spellingdest_complemento- Recipient’s address complement, as returned on records using the short field spellingdest_bairro- Recipient’s district, as returned on records using the short field spellingdest_cidade_id- Recipient’s city identifier, as returned on records using the short field spellingdest_nome_cidade- Recipient’s city name, as returned on records using the short field spellingdest_codigo_cidade- Recipient’s IBGE city code, as returned on records using the short field spellingdest_estado- Recipient’s state abbreviation, as returned on records using the short field spellingdest_telefone- Recipient’s phone number, as returned on records using the short field spellingdest_email- Recipient’s email address, as returned on records using the short field spellingprestador_cep- Postal code (CEP) of the service provider’s addressprestador_logradouro- Street name of the service provider’s addressprestador_numero- Street number of the service provider’s addressprestador_complemento- Address complement of the service provider’s addressprestador_bairro- District of the service provider’s addressprestador_cidade_id- Identifier of the service provider’s city, joinable to the cities streamprestador_nome_cidade- Name of the service provider’s cityprestador_codigo_cidade- IBGE code of the service provider’s cityprestador_estado- Two-letter state abbreviation of the service provider’s addressprest_cep- Provider’s postal code, as returned on records using the short field spellingprest_logradouro- Provider’s street name, as returned on records using the short field spellingprest_numero- Provider’s street number, as returned on records using the short field spellingprest_complemento- Provider’s address complement, as returned on records using the short field spellingprest_bairro- Provider’s district, as returned on records using the short field spellingprest_cidade_id- Provider’s city identifier, as returned on records using the short field spellingprest_nome_cidade- Provider’s city name, as returned on records using the short field spellingprest_codigo_cidade- Provider’s IBGE city code, as returned on records using the short field spellingprest_estado- Provider’s state abbreviation, as returned on records using the short field spellingdescricao- Description of the service rendered, as printed on the invoiceatividade_id- Internal identifier of the service activitycodigo_atividade- Municipal service code for the activityatividade_descricao- Description of the service activityatividade_codigo_tributacao- Municipal taxation code for the activityatividade_cnae- CNAE code for the activitydescricao_atividade- Description of the service activity, as returned on records using the short field spellingcodigo_tributacao_atividade- Municipal taxation code, as returned on records using the short field spellingcnae_atividade- CNAE code, as returned on records using the short field spellingvalor_servico- Gross value of the service renderedvalor_base_calculo- ISS tax basevalor_iss- ISS tax amountiss_retido- Whether ISS was withheld by the recipient: 1 for yes, 0 for novalor_deducoes- Deductions applied before the ISS tax basevalor_aliquota- ISS rate applied, as a percentagedescontos- Discounts applied to the invoicevalor_total- Net total of the invoice after taxes and discountsconstrucao_civil- Whether the service is civil construction: 1 for yes, 0 for nocodigo_obra- Construction site registration code (CNO), for civil constructioncodigo_art- Technical responsibility note (ART) code, for civil constructionaliquota_cofins- COFINS rate applied, as a percentagealiquota_pis- PIS rate applied, as a percentagealiquota_csll- CSLL rate applied, as a percentagealiquota_ir- Income tax rate applied, as a percentagealiquota_inss- INSS rate applied, as a percentagevalor_cofins- COFINS amountvalor_pis- PIS amountvalor_csll- CSLL amountvalor_ir- Income tax amountvalor_inss- INSS amountcofins_retido- Whether COFINS was withheld: 1 for yes, 0 for nopis_retido- Whether PIS was withheld: 1 for yes, 0 for nocsll_retido- Whether CSLL was withheld: 1 for yes, 0 for noir_retido- Whether income tax was withheld: 1 for yes, 0 for noinss_retido- Whether INSS was withheld: 1 for yes, 0 for nooutras_informacoes- Additional information printed on the invoicesituacao- Status of the invoice, for example issued or cancelledhash- Opaque token used to build the invoice’s public linkusuario_id- Identifier of the ERP user who issued the invoice, joinable to the users streamnome_usuario- Name of the ERP user who issued the invoicecadastrado_em- Timestamp the invoice was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the invoice, as YYYY-MM-DD HH:MM:SS
Payments
Payments
Accounts payable: every payable entry, open and settled.Primary key:
Replication: full tableFields (37):
idReplication: full tableFields (37):
id- Unique identifier of the payable entrycodigo- Sequential number shown to users for this payable entrydescricao- Description of what the payable entry is forvalor- Face amount of the entry, before interest, discounts and feesjuros- Interest or late-payment charges added to the entrydesconto- Discount granted on the entrytaxa_banco- Bank fee charged on the entrytaxa_operadora- Card acquirer fee charged on the entryvalor_total- Net settled amount, after interest, discounts and feesliquidado- Settlement state of the entry: 1 when confirmed, 0 while still opendata_vencimento- Due date of the entry, as YYYY-MM-DDdata_liquidacao- Date the entry was actually settled, as YYYY-MM-DD; empty while it is still open. This is the date the API’s data_inicio filter matches, falling back to the due date for entries that are still opendata_competencia- Accrual date used for accounting purposes, as YYYY-MM-DDplano_contas_id- Identifier of the chart-of-accounts entry, joinable to the chart_of_accounts streamnome_plano_conta- Name of the chart-of-accounts entrycentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centreconta_bancaria_id- Identifier of the bank account, joinable to the bank_accounts streamnome_conta_bancaria- Name of the bank accountforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnome_forma_pagamento- Name of the payment methodentidade- Which kind of payee the entry is settled with, telling you which of the party identifier fields below is populatedcliente_id- Identifier of the customer, when the entry is settled with a customernome_cliente- Name of the customer, when the entry is settled with a customerfornecedor_id- Identifier of the supplier, when the entry is settled with a suppliernome_fornecedor- Name of the supplier, when the entry is settled with a suppliertransportadora_id- Identifier of the carrier, when the entry is settled with a carriernome_transportadora- Name of the carrier, when the entry is settled with a carrierfuncionario_id- Identifier of the employee, when the entry is settled with an employeenome_funcionario- Name of the employee, when the entry is settled with an employeeusuario_id- Identifier of the ERP user who recorded the entry, joinable to the users streamnome_usuario- Name of the ERP user who recorded the entryloja_id- Identifier of the store the entry belongs to, joinable to the stores streamnome_loja- Name of the store the entry belongs tocadastrado_em- Timestamp the payable entry was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the payable entry, as YYYY-MM-DD HH:MM:SSatributos- Values of the account’s user-defined financial fields, as a JSON array of objects (each wrapped in an ‘atributo’ key); the field definitions are in the financial_custom_fields stream
Receipts
Receipts
Accounts receivable: every receivable entry, open and settled.Primary key:
Replication: full tableFields (37):
idReplication: full tableFields (37):
id- Unique identifier of the receivable entrycodigo- Sequential number shown to users for this receivable entrydescricao- Description of what the receivable entry is forvalor- Face amount of the entry, before interest, discounts and feesjuros- Interest or late-payment charges added to the entrydesconto- Discount granted on the entrytaxa_banco- Bank fee charged on the entrytaxa_operadora- Card acquirer fee charged on the entryvalor_total- Net settled amount, after interest, discounts and feesliquidado- Settlement state of the entry: 1 when confirmed, 0 while still opendata_vencimento- Due date of the entry, as YYYY-MM-DDdata_liquidacao- Date the entry was actually settled, as YYYY-MM-DD; empty while it is still open. This is the date the API’s data_inicio filter matches, falling back to the due date for entries that are still opendata_competencia- Accrual date used for accounting purposes, as YYYY-MM-DDplano_contas_id- Identifier of the chart-of-accounts entry, joinable to the chart_of_accounts streamnome_plano_conta- Name of the chart-of-accounts entrycentro_custo_id- Identifier of the cost centre, joinable to the cost_centers streamnome_centro_custo- Name of the cost centreconta_bancaria_id- Identifier of the bank account, joinable to the bank_accounts streamnome_conta_bancaria- Name of the bank accountforma_pagamento_id- Identifier of the payment method, joinable to the payment_methods streamnome_forma_pagamento- Name of the payment methodentidade- Which kind of payer the entry is settled with, telling you which of the party identifier fields below is populatedcliente_id- Identifier of the customer, when the entry is settled with a customernome_cliente- Name of the customer, when the entry is settled with a customerfornecedor_id- Identifier of the supplier, when the entry is settled with a suppliernome_fornecedor- Name of the supplier, when the entry is settled with a suppliertransportadora_id- Identifier of the carrier, when the entry is settled with a carriernome_transportadora- Name of the carrier, when the entry is settled with a carrierfuncionario_id- Identifier of the employee, when the entry is settled with an employeenome_funcionario- Name of the employee, when the entry is settled with an employeeusuario_id- Identifier of the ERP user who recorded the entry, joinable to the users streamnome_usuario- Name of the ERP user who recorded the entryloja_id- Identifier of the store the entry belongs to, joinable to the stores streamnome_loja- Name of the store the entry belongs tocadastrado_em- Timestamp the receivable entry was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the receivable entry, as YYYY-MM-DD HH:MM:SSatributos- Values of the account’s user-defined financial fields, as a JSON array of objects (each wrapped in an ‘atributo’ key); the field definitions are in the financial_custom_fields stream
Payment Methods
Payment Methods
Payment methods, including bank slip and card acquirer configuration.Primary key:
Replication: full tableFields (44):
idReplication: full tableFields (44):
id- Unique identifier of the payment methodnome- Name of the payment method, for example Dinheiro or Cartão de créditotipo- Type of the payment method, for example cash, card or bank slipconta_bancaria_id- Identifier of the bank account entries settle into, joinable to the bank_accounts streamnome_conta_bancaria- Name of the bank account entries settle intomovimentacao- Whether using this method moves the bank account balance: 1 for yes, 0 for noconfirmar_financeiro- Whether entries are settled automatically when created: 1 for yes, 0 for nomaximo_parcelas- Maximum number of instalments allowedintervalo_parcelas- Number of days between instalmentsintervalo_primeira_parcela- Number of days until the first instalment falls duedisponivel_pdv- Whether the method is offered at the point of sale: 1 for yes, 0 for nobandeira_cartao- Card brand, for card payment methodscnpj_credenciadora- Company tax ID (CNPJ) of the card acquirertaxa_banco- Bank fee charged per transaction, as a percentagetaxa_operadora- Card acquirer fee charged per transaction, as a percentageboleto- Whether the method issues a bank slip (boleto): 1 for yes, 0 for nobanco- Bank code used for bank slip issuancecnab- CNAB layout used for the bank remittance filecarteira- Bank portfolio (carteira) code used for bank slipsagencia- Bank branch numberagencia_dv- Check digit of the bank branch numberconta- Bank account numberconta_dv- Check digit of the bank account numbercodigo_cliente- Account holder code assigned by the bankcodigo_cliente_dv- Check digit of the account holder codetaxa_multa_atraso- Late-payment penalty rate applied on bank slips, as a percentagetaxa_mora_atraso- Daily late-payment interest rate applied on bank slips, as a percentagedias_juros- Number of days after the due date before interest starts accruingaceite- Acceptance indicator printed on the bank slipespecie_doc- Document kind code printed on the bank slipprotestar- Whether unpaid bank slips are sent for protest: 1 for yes, 0 for nodias_protesto- Number of days after the due date before an unpaid slip is protestedultimo_boleto- Sequential number of the last bank slip issuedultima_remessa- Sequential number of the last remittance file generatedversao_layout_header- CNAB file header layout versionversao_layout_header_lote- CNAB batch header layout versionambiente- Bank integration environment: production or homologationinstrucao1- First instruction line printed on the bank slipinstrucao2- Second instruction line printed on the bank slipinstrucao3- Third instruction line printed on the bank slipinstrucao4- Fourth instruction line printed on the bank sliplocal_pagamento1- Place-of-payment text printed on the bank slipdemonstrativo1- First statement line printed on the bank slipdemonstrativo2- Second statement line printed on the bank slip
Bank Accounts
Bank Accounts
Bank accounts entries are settled into.Primary key:
Replication: full tableFields (2):
idReplication: full tableFields (2):
id- Unique identifier of the bank accountnome- Name of the bank account as shown in the ERP
Chart of Accounts
Chart of Accounts
The chart of accounts hierarchy.Primary key:
Replication: full tableFields (7):
idReplication: full tableFields (7):
id- Unique identifier of the chart-of-accounts entryconta_mae_id- Identifier of the parent account, empty for a top-level accountnome_conta_mae- Name of the parent accountclassificacao- Hierarchical classification code of the account, for example 1.1.02tipo- Account direction: D for debit (expense), C for credit (revenue)nome_tipo- Human-readable account direction, for example Débito or Créditonome- Name of the account
Cost Centers
Cost Centers
Cost centres used to classify documents and ledger entries.Primary key:
Replication: full tableFields (3):
idReplication: full tableFields (3):
id- Unique identifier of the cost centrenome- Name of the cost centrecadastrado_em- Timestamp the cost centre was created, as YYYY-MM-DD HH:MM:SS
Quote Statuses
Quote Statuses
Status values quotes can take.Primary key:
Replication: full tableFields (3):
idReplication: full tableFields (3):
id- Unique identifier of the status, referenced by situacao_id on quotesnome- Name of the status as shown in the ERPpadrao- Whether this is the default status for new records: 1 for yes, 0 for no
Sale Statuses
Sale Statuses
Status values sales can take, and whether each one posts to finance and inventory.Primary key:
Replication: full tableFields (6):
idReplication: full tableFields (6):
id- Unique identifier of the status, referenced by situacao_id on salesnome- Name of the status as shown in the ERPpadrao- Whether this is the default status for new records: 1 for yes, 0 for nocor- Hex colour the ERP uses to display this statuslancar- Whether reaching this status posts the sale to the financial ledger and inventory: 1 for yes, 0 for noeditar- Whether a sale in this status can still be edited: 1 for yes, 0 for no
Service Order Statuses
Service Order Statuses
Status values service orders can take.Primary key:
Replication: full tableFields (3):
idReplication: full tableFields (3):
id- Unique identifier of the status, referenced by situacao_id on service ordersnome- Name of the status as shown in the ERPpadrao- Whether this is the default status for new records: 1 for yes, 0 for no
Purchase Statuses
Purchase Statuses
Status values purchases can take.Primary key:
Replication: full tableFields (4):
idReplication: full tableFields (4):
id- Unique identifier of the status, referenced by situacao_id on purchasesnome- Name of the status as shown in the ERPpadrao- Whether this is the default status for new records: 1 for yes, 0 for notipo_lancamento- What reaching this status posts, for example inventory, financial entries or both
Registration Custom Fields
Registration Custom Fields
Definitions of the user-defined fields on customers, suppliers and carriers.Primary key:
Replication: full tableFields (6):
idReplication: full tableFields (6):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on customers, suppliers and carriersnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SS
Product Custom Fields
Product Custom Fields
Definitions of the user-defined fields on products.Primary key:
Replication: full tableFields (6):
idReplication: full tableFields (6):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on productsnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SS
Quote Custom Fields
Quote Custom Fields
Definitions of the user-defined fields on quotes.Primary key:
Replication: full tableFields (7):
idReplication: full tableFields (7):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on quotesnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SSexibir_impressao- Whether the field is printed on the document: 1 for yes, 0 for no
Sale Custom Fields
Sale Custom Fields
Definitions of the user-defined fields on sales.Primary key:
Replication: full tableFields (7):
idReplication: full tableFields (7):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on salesnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SSexibir_impressao- Whether the field is printed on the document: 1 for yes, 0 for no
Service Order Custom Fields
Service Order Custom Fields
Definitions of the user-defined fields on service orders.Primary key:
Replication: full tableFields (7):
idReplication: full tableFields (7):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on service ordersnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SSexibir_impressao- Whether the field is printed on the document: 1 for yes, 0 for no
Financial Custom Fields
Financial Custom Fields
Definitions of the user-defined fields on payable and receivable entries.Primary key:
Replication: full tableFields (6):
idReplication: full tableFields (6):
id- Unique identifier of the user-defined field, referenced by atributo_id inside the atributos array on payable and receivable entriesnome- Label of the user-defined fieldtipo- Input type of the field, for example texto, data, check_list or selectobrigatorio- Whether filling the field is mandatory: 1 for yes, 0 for nocadastrado_em- Timestamp the field was created, as YYYY-MM-DD HH:MM:SSmodificado_em- Timestamp of the last change to the field, as YYYY-MM-DD HH:MM:SS
Contact Types
Contact Types
Contact type labels used inside registration contact lists.Primary key:
Replication: full tableFields (2):
idReplication: full tableFields (2):
id- Unique identifier of the contact type, referenced by tipo_id inside the contatos array on party recordsnome- Name of the contact type, for example Financeiro or Comercial
Address Types
Address Types
Address type labels used inside registration address lists.Primary key:
Replication: full tableFields (2):
idReplication: full tableFields (2):
id- Unique identifier of the address type, referenced by tipo_id inside the enderecos array on party recordsnome- Name of the address type, for example Cobrança or Entrega
States
States
Brazilian states, the IBGE reference table.Primary key:
Replication: full tableFields (4):
idReplication: full tableFields (4):
id- Unique identifier of the state in Gestão Clickcodigo- IBGE numeric code of the statenome- Full name of the statesigla- Two-letter abbreviation of the state, for example SP or MG
Cities
Cities
Brazilian municipalities, the IBGE reference table.Primary key:
Replication: full tableFields (3):
idReplication: full tableFields (3):
id- Unique identifier of the city in Gestão Click, referenced by cidade_id across the other streamscodigo- IBGE numeric code of the municipalitynome- Name of the municipality