The connector only reads data. It never creates, changes or deletes anything in Hubla.
Configuring Hubla as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Hubla option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
The connector signs in with a Hubla Public API token. In Hubla, open Integrações, click Criar nova integração, open the Tokens de API Pública tab and click Criar token. Copy the key exactly as shown.Hubla serves its Public API only to accounts whose identity verification (KYC) is approved. If the verification is pending, the sync fails with a message saying so; finish it in the Hubla dashboard and the next run reads the data. An account can have at most 5 active tokens.
- API Token: The key of the Hubla Public API token.
- Start Date: Invoices, leads and financial statement entries created before this date are not read.
- Lookback Days (advanced, default 7): Each incremental run reads again this many days before where the previous run stopped, to pick up late changes such as a lead that converted. From 0 to 90.
- Open Invoice Follow Days (advanced, default 90): Draft, pending and disputed invoices are read again on every run until this many days after their creation, so their payment or expiry reaches your table. From 1 to 730.
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:
invoices,subscriptions,leadsandfinancial_statementsupport INCREMENTAL; the other streams are FULL_TABLE.- Incremental: every time the extraction happens, we’ll get only the new and changed data.
- Full table: every time the extraction happens, we’ll get the current state of the data.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Available streams
Amounts are in cents of the record’s currency, as Hubla sends them. Nested values (receivers, prices, plans, status history, tracking cookies) are stored as JSON text.
Fields by stream
Catalog
Products
Products
Slug
products. Primary key: id. Sync: FULL_TABLE.id- Public product id (the id of the product’s main offer)legacy_id- Internal Hubla product id, exposed while Hubla migrates to offer ids as product idsname- Product nametype- Product type: digital, event or combocategory- Product category (e.g. education, digitalMarketing, other)status- Product status derived from its current offer: isDraft, isSelling, isWaitlisted, isNotEnabled or isUnavailableis_visible- Whether the product is visible, derived from its current offerdescription- Product descriptionpicture- URL of the product pictureevent_start_date- Event start date (event products only)event_end_date- Event end date (event products only)event_location- Event venue (JSON object with name, street, number, complement, neighborhood, city, state, country, zipCode, latitude, longitude)created_at- When the product was created (UTC)updated_at- When the product last changed (UTC)
Offers
Offers
Slug
offers. Primary key: product_id, id. Sync: FULL_TABLE.product_id- Public id of the product the offer belongs toid- Offer idname- Offer nameprice_type- How the offer is charged: one_time, recurring or membership_feeinstallments- Maximum number of installments of a one-time offerplans- Plans of a recurring offer (JSON array of objects with id, interval, installments and prices per currency)prices- Prices of a one-time offer (JSON array of objects with currency, price and promotionalPrice, in the currency’s units)currencies- Every currency the offer is priced in (ISO 4217 codes)status- Offer status: isDraft, isSelling, isWaitlisted, isNotEnabled or isUnavailableis_free- Whether the offer is freeis_default- Whether this is the product’s default (main) offeris_available_for_affiliates- Whether affiliates may promote the offeris_archived- Whether the offer is archivedcreated_at- When the offer was created
Coupons
Coupons
Slug
coupons. Primary key: id. Sync: FULL_TABLE.id- Coupon idcode- Coupon codestate- Coupon state: ACTIVE, INACTIVE or EXPIRED (EXPIRED is derived by Hubla once valid_until has passed in America/Sao_Paulo)valid_until- Last day the coupon is valid (through the end of that day, America/Sao_Paulo); empty when it never expiresappliable_to- Offers and plan intervals the coupon applies to (JSON array of objects with offerId and intervals; no offerId means every offer)discount_percent- Discount, in percentmax_allowed_total_usages- Maximum number of uses of the coupon; empty means no limitusages_count- Number of times the coupon has been usedis_recurrent- Whether the discount also applies to subscription renewalscreated_at- When the coupon was created
Members
Members
Slug
members. Primary key: product_id, id. Sync: FULL_TABLE.product_id- Public id of the product the member has access toid- Hubla user id of the membername- Member nameemail- Member emailphone- Member phone numbertype- How the member got access: seller, partner, free or buyerstatus- Access status: active or deactivateis_lifetime- Whether the access never expiresremoval_at- When the member’s access is (or was) removed
Event Participants
Event Participants
Slug
event_participants. Primary key: product_id, id. Sync: FULL_TABLE.product_id- Public id of the event productid- Hubla user id of the participantname- Participant full nameemail- Participant emailphone_number- Participant phone numbertype- How the participant got access: seller, partner, free or buyeris_lifetime- Whether the participant has lifetime accessquantity- Number of tickets the participant acquiredactivated_at- When the participant’s access was activatedremoval_at- When the participant’s access is (or was) removedcohort_ids- Ids of the cohorts (ticket types) the participant can accesscohorts- Cohorts (ticket types) the participant can access (JSON array of objects with id and name)accesses- Tickets owned by the participant (JSON array, one object per ticket with guestName, guestDocument, guestEmail, guestPhone, cohortId, cohortName)
Sales
Invoices
Invoices
Slug
invoices. Primary key: id. Sync: INCREMENTAL on created_at.id- Invoice idsubscription_id- Id of the subscription the invoice chargessubscription_ids- Ids of every subscription a grouped invoice chargesgrouped_id- Id shared by the invoices of one grouped purchase (a combo, an order bump)seller_id- Hubla account id of the seller (the creator who owns the sale)payer_account_id- Hubla account id of the payerpayer_id- Hubla account id of the payer of the invoicepayer_name- Name of the payer of the invoicepayer_document- Document (CPF or CNPJ) of the payer of the invoicepayer_email- Email of the payer of the invoicepayer_phone- Phone number of the payer of the invoicetype- Invoice type: sell, renewal, upgrade, installment or standalonestatus- Invoice status: draft, pending, paid, expired, refunded, in_protest, chargeback or canceledstatus_history- Every status the invoice went through and when (JSON array of objects with status and when)coupon- Code of the coupon applied to the invoicepayment_method- Payment method: credit_card, pix or bank_slipcurrency- Currency of the invoice (ISO 4217)installments- Number of installments the payment was split intoinstallment- Which installment this invoice issubtotal_cents- Subtotal, in cents of the invoice currencydiscount_cents- Discount, in centsprorata_cents- Pro-rata amount (plan changes), in centsinstallment_fee_cents- Installment fee charged to the payer, in centstotal_cents- Total charged, in centsitems- Products sold in the invoice (JSON array of objects with id and name)receivers- How the invoice is split (JSON array of objects with id, name, email, phone, role: platform, seller, partner or affiliate, paysForFees and totalCents)billing_address- Billing address of the payer (JSON object)utm_source- UTM source of the checkout session that created the invoiceutm_medium- UTM medium of the checkout sessionutm_campaign- UTM campaign of the checkout sessionutm_content- UTM content of the checkout sessionutm_term- UTM term of the checkout sessiontracking_cookies- Tracking ids of the checkout session (JSON object with fbp, fbclid, gclid, hbId)created_at- When the invoice was created (UTC); the incremental replication keydue_date- Due date of the invoicepaid_at- When the invoice was paidcanceled_at- When the invoice was canceledchargeback_at- When the chargeback happeneddisputed_at- When the payment was disputedrefunded_at- When the invoice was refundedrefused_at- When the payment was refusedexpired_at- When the invoice expired unpaidmodified_at- When the invoice last changedversion- Version of the invoice record, raised by Hubla on every change
Subscriptions
Subscriptions
Slug
subscriptions. Primary key: id. Sync: INCREMENTAL on modified_at.id- Subscription idseller_id- Hubla account id of the sellerpayer_account_id- Hubla account id of the subscribertype- Subscription type: one_time, recurring, grouped or freestatus- Subscription status: active, inactive, canceled, incomplete or trialbilling_cycle_months- Months between two charges of a recurring subscriptioncredits- Daily credits added to the subscriptionpayment_method- Payment method: credit_card, pix or bank_slipauto_renew- Whether the subscription renews automaticallyfree_trial- Whether the subscription started with a free trialactivated_at- When the subscription was activatedinactivated_at- When the subscription became inactivecanceled_at- When the subscription was canceledlast_debit_at- When the subscription was last chargednext_due_at- When the next charge is duedeactivate_eta- When the subscription is set to be deactivatedlast_invoice_id- Id of the last invoice of the subscriptionlast_invoice- Summary of the last invoice (JSON object with id, type, status, paymentMethod, currency, amount in cents, saleDate, dueDate, createdAt, modifiedAt)created_at- When the subscription was createdmodified_at- When the subscription last changed; the incremental replication keyversion- Version of the subscription record, raised by Hubla on every change
Refunds
Refunds
Slug
refunds. Primary key: id. Sync: FULL_TABLE.id- Refund request idinvoice_id- Id of the refunded invoiceamount- Refund amount, as Hubla reports itcurrency- Currency of the refund (ISO 4217)status- Refund status: created, pending, rejected, accepted, failed, processing or canceledrequester_id- Hubla user id of who asked for the refund (the payer)requester_name- Name of who asked for the refundrequester_email- Email of who asked for the refundrequester_phone- Phone number of who asked for the refunddescription- Reason given for the refundfeedback- The creator’s answer, such as why the refund was rejectedis_auto_accepted- Whether the refund was accepted automaticallyscheduled_for- When the refund is scheduled to be processedcreated_at- When the refund was requestedupdated_at- When the refund last changed
Smart Installments
Smart Installments
Slug
smart_installments. Primary key: id. Sync: FULL_TABLE.id- Smart installment plan idsubscription_id- Id of the subscription the plan payssource_invoice_id- Id of the invoice the plan was created fromseller_id- Hubla account id of the sellerpayer_account_id- Hubla account id of the payerpayer_id- Hubla account id of the payer of the planpayer_name- Name of the payer of the planpayer_document- Document (CPF or CNPJ) of the payer of the planpayer_email- Email of the payer of the planpayer_phone- Phone number of the payer of the planinstallments- Number of installments of the planinstallment- Current installment of the planpayment_method- Payment method: credit_card, pix or bank_sliptype- Plan type: recovery, direct, bnpl_with_card, bnpl_with_boleto or bnpl_with_pixstatus- Plan status: created, aborted, on_schedule, off_schedule, canceled or completedstatus_history- Every status the plan went through and when (JSON array of objects with status and when)total_cents- Total amount of the plan, in centsitems- Products the plan pays for (JSON array of objects with id and name)created_at- When the plan was creatednext_due_at- When the next installment is dueversion- Version of the plan record, raised by Hubla on every change
Leads
Leads
Slug
leads. Primary key: id. Sync: INCREMENTAL on created_at.id- Lead idoffer_id- Id of the offer the lead is aboutcause- What created the lead: submit_externo, entered_checkout, carrinho_abandonado, falha_no_pagamento, pagamento_atrasado, assinatura_cancelada, pediu_reembolso, reembolsado or pediu_chargebackfull_name- Full name of the personemail- Email of the personphone_number- Phone number of the personamount_in_cents- What the person would have paid had the purchase been concluded, in centsevent_url- URL of the page where the lead was submittedutm_source- UTM source when the person started the purchaseutm_medium- UTM mediumutm_campaign- UTM campaignutm_content- UTM contentutm_term- UTM termtracking_cookies- Tracking ids of the session (JSON object with hbId, fbp, fbc, fbclid, gclid, gbraid, ttclid, ttp)converted_at- When the lead converted into a purchasecreated_at- When the lead was created (UTC); the incremental replication key
Financial
Financial Balances
Financial Balances
Slug
financial_balances. Primary key: currency. Sync: FULL_TABLE.currency- Currency of the wallet (ISO 4217)available_in_cents- Available balance, in cents: what can be withdrawn nowreceivable_in_cents- Balance to receive, in cents: sales not released yettransferable_in_cents- Balance in transfer, in cents: withdrawals on their way to the bank accountcontested_in_cents- Balance in dispute, in cents: held while a chargeback is openreserved_in_cents- Reserved balance, in cents: kept to cover refunds and chargebackstotal_in_cents- Sum of the five balances, in cents
Financial Statement
Financial Statement
Slug
financial_statement. Primary key: entry_key. Sync: INCREMENTAL on date.entry_key- Key of the entry: its id, orconsolidated:<currency>:<date>:<type>for a consolidated lineid- Ledger movement id; empty on a consolidated linetype- What originated the entry, as the dashboard labels it (sale, renewal, sale_released, withdrawal_succeeded, refund, chargeback_accepted_after_dispute…)amount_in_cents- Amount in cents, negative when it leaves the walletavailable_delta_in_cents- How much the entry changed the available balance, in centscurrency- Currency of the wallet (ISO 4217)created_at- When the movement was created (UTC); empty on a consolidated linedate- Day of the entry in America/Sao_Paulo; the incremental replication keytime- Time of the entry in America/Sao_Paulo (HH:mm); empty on a consolidated linerelease_date- Day the amount is released, in America/Sao_Pauloreference_id- The invoice (sale, renewal, refund, chargeback) or withdrawal the entry belongs tois_consolidated- True for the line that adds up every sale released on one daydescription_label- Label of an internal transfer, such as a co-production splitdescription_info- Extra explanation of an internal transfer
Financial Rates
Financial Rates
Slug
financial_rates. Primary key: currency. Sync: FULL_TABLE.currency- Currency of the wallet (BRL domestic, USD international)is_international- True for a wallet other than BRLis_configured- Whether the wallet has conditions of its owncredit_card_settlement_days- Days after payment until a card sale is released for withdrawalboleto_settlement_days- Days after payment until a boleto sale is releasedpix_settlement_days- Days after payment until a Pix sale is releasedcommission_percent- Commission charged per sale, in percenttransaction_fee_in_cents- Fixed fee charged per sale, in centsfeature_fees- Extra fees per sale for product features (JSON array of objects with feature and feeInCents)reserve_percent- Share of the last month of sales kept as a security reserve, in percentwithdrawal_max_per_operation_in_cents- Most a single withdrawal may take, in cents; empty when no limitwithdrawal_max_per_operation_overnight_in_cents- Most a single overnight withdrawal may take, in cents; empty when no limitwithdrawal_max_per_month_in_cents- Most the withdrawals of a month may add up to, in cents; empty when no limitwithdrawal_max_requests_per_day- Most withdrawals that may be requested in a day; empty when no limitwithdrawal_max_requests_per_month- Most withdrawals that may be requested in a month; empty when no limit
Financial Forecast
Financial Forecast
Slug
financial_forecast. Primary key: currency. Sync: FULL_TABLE.currency- Currency of the wallet (BRL domestic, USD international)window_start_date- First day of the forecast (today in America/Sao_Paulo)window_end_date- Last day of the forecast, 30 days after the firstreleases- Days with an amount to release, oldest first (JSON array of objects with date and amountInCents: the net amount moving from to-receive to available)reserve_percent- Share of the last month of sales kept in reserve, in percentreserve_sales_base_in_cents- Net sales since reserve_sales_since, the base of the reserve, in centsreserve_sales_since- First day the reserve base countsreserve_target_in_cents- Reserve the daily rebalance converges to, in centsreserve_reserved_in_cents- Current reserved balance, in centsreserve_available_in_cents- Current available balance, in centsreserve_last_rebalanced_at- When the daily rebalance last moved money in or out of the reserve
Data Model
Use Cases for Data Analysis
1. Paid revenue by month
2. Refund and chargeback rate by product
3. Abandoned carts by UTM source
converted_at is only updated while a lead is inside the lookback window. To analyze conversions of older leads, schedule an Additional Full Sync for the source.Implementation Notes
How incremental streams work
- Hubla does not filter records by update date. Each incremental run reads what was created since the previous run (minus the lookback) and, for invoices, also reads again the invoices paid in that period, the older invoices refunded, charged back or disputed recently, and the invoices that were still open (draft, pending or disputed) in the previous run.
- Hubla has no list of subscriptions: the connector reads one by one the subscriptions of the invoices read in the run, plus the recurring subscriptions that are active, in trial or incomplete, or became inactive in the last 90 days. Every run reads those again (about 500 per minute), so accounts with many active subscriptions take longer on every run, and the first run reads every subscription.
- Only subscriptions with an invoice created since the Start Date are read. Free subscriptions without an invoice do not appear.
- Draft and pending invoices are read again on every run until Open Invoice Follow Days after their creation. Disputed invoices are read again until the dispute ends, however old they are. An open invoice that Hubla no longer returns keeps its last status in the table.
- If 10 or more leads are created in the same millisecond for the same offer and cause, the leads table may fail to sync, because the connector cannot confirm that Hubla returned all of them. Contact support if that happens.
- A lead that converts after the lookback keeps its previous
converted_atuntil a Full sync. - The financial statement only goes back to 2023-09-20 and is read in windows of 89 days (America/Sao_Paulo).
API Limits & Performance
- Hubla allows 100 requests per minute for products, offers and coupons together, and 600 per minute for each of the other routes. The limit is per Hubla account and shared with its other integrations; the connector paces itself and waits when Hubla asks it to.
- Lists that change while they are read are read again, so a busy account can take longer to sync.