
Configuring Base de Clientes as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Base de Clientes option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need to provide your Base de Clientes API credentials so Nekt can access your data. The following configurations are available:- Auth Token: (Required) Bearer token for the Base de Clientes API. Obtain it from suporte@clientbase.com.br. This token authenticates all API requests.
-
Start Date: (Optional) Initial date for incremental sync. Used on the first run when there is no bookmark. Example:
2020-01-01T00:00:00Z. Streams with incremental sync (billings, banks, recurrences, receivables, transfers, contracts, announcement_portals) will filter records byupdated_atgreater than this date on the first extraction.
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 or updated data. Supported for banks, billings, contracts, receivables, recurrences, transfers, and announcement_portals (they use
updated_atas replication key). - Full table: Every time the extraction happens, we’ll get the current state of the data. Used for bank_accounts, customers, customer_groups, custom_fields, merchant_users, and reports.
- Incremental: Every time the extraction happens, we’ll get only the new or updated data. Supported for banks, billings, contracts, receivables, recurrences, transfers, and announcement_portals (they use
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.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Below you’ll find all available data streams from Base de Clientes and their corresponding fields:Banks
Banks
List of banks available in Base de Clientes (incremental by updated_at).Key Fields:
uuid- UUID do bancocompe- Código COMPEispb- Código ISPBdocument- CNPJ do bancoshort_name- Nome curto do banconame- Razão social do bancourl- URL do bancomerchant_uuid- UUID do merchantcreated_at,updated_at- Datas de criação e atualização
Bank Accounts
Bank Accounts
Bank accounts of the authenticated merchant.Key Fields:
uuid- UUID da conta bancáriaagency,agency_dv- Agência e dígito verificadoraccount,account_dv- Número da conta e dígitoaccount_type- Tipo da conta (ex: checking)active- Se a conta está ativamerchant_uuid- UUID do merchantbank- Objeto com dados do banco (uuid, compe, ispb, name, etc.)created_at,updated_at- Datas
Billings
Billings
Invoices of the merchant (incremental by updated_at).Key Fields:
uuid,merchant_uuid,customer_uuid- Identificadoresamount_billed,amount_paid,discount_amount,interest_fine,interest_fee- Valores (string)status- Status da fatura (ex: paid)due_date,date_paid,expiration_date,competence_date,issue_date- Dataspayment_type,discount_policy,interest_policy- Políticasrecurrence_cycle,installment_cycle- Ciclosdirty,antecipated,issued,viewed,can_issue- Flagsdiscounts- Array de descontos (uuid, type, value, amount, policy, days, etc.)tags- Array de tags (objetos com uuid, name, color, etc.)billing_items- Array de itens (uuid, description, quantity, unit_price, amount, product, etc.)payments- Array de pagamentoscustomer,merchant- Objetos aninhadoscancellation_reason,metadata,nfse- Objetos adicionais
Contracts
Contracts
Contracts of the merchant (incremental by updated_at).Key Fields:
id,uuid- Identificadorestitle,description,message,content- Textosstart_date,end_date,expiration_date- Datasdays_notice- Dias de aviso préviosigned_at- Data de assinaturastatus- Status (ex: current, waiting_signatures)merchant_id,customer_id,contract_model_id- IDs de relacionamentocustomer- Objeto com dados do clientecreated_at,updated_at- Datas
Customers
Customers
Customers of the merchant.Key Fields:
uuid,merchant_uuid,customer_uuid- Identificadoresname,nickname,document,email,phone- Dados de contatostatus,source- Status e origememail_block,category,category_dirty- Configuraçõesmetadata,custom_fields,customer_fields- JSON stringsdocuments,tags,contracts,customer_info,archive_reasons- JSON stringsaddresses- Array de endereços (uuid, street, number, city, state, postal_code, etc.)customer_groups- Array de grupos (uuid, name, group_color, active, icon, etc.)created_at,updated_at- Datas
Customer Groups
Customer Groups
Customer groups of the merchant.Key Fields:
id,uuid- Identificadoresname,active,icon,group_color- Dados do grupomerchant_uuid- UUID do merchantcustomers- Array de clientes do grupocreated_at,updated_at- Datas
Custom Fields
Custom Fields
Custom fields configuration of the merchant.Key Fields:
uuid- UUID do custom fieldfield_type- Tipo do campo (ex: short_text, radio)field_configuration- Configuração do campo (JSON string)
Merchant Users
Merchant Users
Users of the merchant.Key Fields:
uuid,merchant_uuid- Identificadoresname,email,phone- Dados de contatostatus,role- Status e papel (ex: admin)google_access_token,google_sub- Integração Googleshortcuts,notification_preferences- JSON stringsshow_nps,show_notification_product_updates- Preferênciasvirtual_assistant_notification_enabled,virtual_assistant_phone- Assistente virtualcreated_at,updated_at- Datas
Receivables
Receivables
Receivables (recebíveis) of the merchant (incremental by updated_at).Key Fields:
uuid,billing_uuid,payment_uuid,transfer_uuid,customer_uuid,recurrence_uuid,merchant_uuid- Identificadoresamount,gross_amount- Valores (string)status- Status (ex: paid)date_paid,expected_on- Datasinstallment- Dados da parcela (JSON string)billing- Objeto com fatura associada (inclui customer, payments)created_at,updated_at- Datas
Recurrences
Recurrences
Recurring billing definitions (incremental by updated_at).Key Fields:
uuid,customer_uuid,merchant_uuid- Identificadoresstatus,frequency,frequency_type,frequency_number- Configuraçãototal_cycles,current_cycle,due_day- Ciclosfirst_due_date- Primeira data de vencimentoamount,discount_amount,interest_fine,interest_fee- Valores (string)payment_type,discount_policy,interest_policy- Políticascredit_card_recurring,nfse_scheduled- Flagsdiscounts,tags,billing_items,billings,recurrence_cards- Arrays (JSON strings)bonus,installment_plan,cancellation_reason- Objetos/stringscustomer- Objeto com dados do clientecreated_at,updated_at- Datas
Reports
Reports
Reports generated by the merchant.Key Fields:
uuid,merchant_uuid- Identificadoresmodel- Modelo do relatório (ex: billing)filters,filters_to_show- Filtros (JSON strings)status- Status (ex: completed, generated)downloaded- Se foi baixadocreated_at,updated_at- Datas
Transfers
Transfers
Bank transfers of the merchant (incremental by updated_at).Key Fields:
uuid,bank_account_uuid,merchant_uuid- Identificadoresamount,child_amount- Valores (string)description,status- Descrição e statustransfer_date- Data da transferênciatransfer_type,transferable_type- Tipostransfer_position- Posição da transferênciareport_url- URL do relatóriocreated_at,updated_at- Datas
Announcement Portals
Announcement Portals
Announcements from the portal (comunicados) (incremental by updated_at).Key Fields:
uuid,merchant_uuid- Identificadoresannouncement_type,title,message- Conteúdodocument_file- Arquivo anexo (JSON string)customers- Array de clientes que visualizaram (JSON strings)customer_groups- Grupos de clientes (JSON strings)created_at,updated_at- Datas
Data Model
The following diagram illustrates the main relationships between Base de Clientes streams. Merchant is the central entity; customers and merchant_users belong to it. Billings and recurrences link to customers. Receivables tie billings to transfers. Bank accounts and banks support transfers. Contracts associate customers with contract models. Customer groups group customers. Reports and announcement_portals are merchant-scoped.Implementation Notes
Authentication
- The tap uses Bearer token authentication. The
auth_tokenis sent in theAuthorizationheader for all API requests.
Incremental Sync
- Streams with
replication_key = "updated_at"support incremental sync. On the first run (no bookmark), the tap usesstart_datefrom config to filter records. On subsequent runs, the bookmark from state is used.
Numeric Fields as Strings
- Several amount and value fields (
amount_billed,amount_paid,amount, etc.) are stored as strings in the schema because the API can return them as strings or numbers. UseCAST(column AS DOUBLE)or equivalent in SQL for aggregations.
JSON String Fields
- Fields like
metadata,custom_fields,tags,billing_items,product,paymentable, and similar are serialized as JSON strings for compatibility with the data lake. UseJSON_EXTRACTor equivalent to parse them in queries.