Skip to main content
Hubla is a Brazilian platform for creators and businesses that sell digital products, memberships, communities and events. This connector reads your Hubla account through the Hubla Public API and brings your product catalog (products, offers, coupons, members and event participants), your sales (invoices, subscriptions, refunds and smart installment plans), your leads (abandoned carts, failed payments and form submissions) and the financial tab (balances, statement, rates and the release forecast).
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.
Paste only the key, without the word Bearer in front of it. Hubla rejects a key sent with Bearer.
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.
The following configurations are available:
  • 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.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.
Tip: The stream can be found more easily by typing its name.
Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.
  • Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
  • Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
  • Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
  • Sync Type: invoices, subscriptions, leads and financial_statement support 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.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, 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.
Once you are ready, click Next to finalize the setup.

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.
For you to be able to see it on your Catalog, you need at least one successful source run.

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

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 ids
  • name - Product name
  • type - Product type: digital, event or combo
  • category - Product category (e.g. education, digitalMarketing, other)
  • status - Product status derived from its current offer: isDraft, isSelling, isWaitlisted, isNotEnabled or isUnavailable
  • is_visible - Whether the product is visible, derived from its current offer
  • description - Product description
  • picture - URL of the product picture
  • event_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)
Slug offers. Primary key: product_id, id. Sync: FULL_TABLE.
  • product_id - Public id of the product the offer belongs to
  • id - Offer id
  • name - Offer name
  • price_type - How the offer is charged: one_time, recurring or membership_fee
  • installments - Maximum number of installments of a one-time offer
  • plans - 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 isUnavailable
  • is_free - Whether the offer is free
  • is_default - Whether this is the product’s default (main) offer
  • is_available_for_affiliates - Whether affiliates may promote the offer
  • is_archived - Whether the offer is archived
  • created_at - When the offer was created
Slug coupons. Primary key: id. Sync: FULL_TABLE.
  • id - Coupon id
  • code - Coupon code
  • state - 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 expires
  • appliable_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 percent
  • max_allowed_total_usages - Maximum number of uses of the coupon; empty means no limit
  • usages_count - Number of times the coupon has been used
  • is_recurrent - Whether the discount also applies to subscription renewals
  • created_at - When the coupon was created
Slug members. Primary key: product_id, id. Sync: FULL_TABLE.
  • product_id - Public id of the product the member has access to
  • id - Hubla user id of the member
  • name - Member name
  • email - Member email
  • phone - Member phone number
  • type - How the member got access: seller, partner, free or buyer
  • status - Access status: active or deactivate
  • is_lifetime - Whether the access never expires
  • removal_at - When the member’s access is (or was) removed
Slug event_participants. Primary key: product_id, id. Sync: FULL_TABLE.
  • product_id - Public id of the event product
  • id - Hubla user id of the participant
  • name - Participant full name
  • email - Participant email
  • phone_number - Participant phone number
  • type - How the participant got access: seller, partner, free or buyer
  • is_lifetime - Whether the participant has lifetime access
  • quantity - Number of tickets the participant acquired
  • activated_at - When the participant’s access was activated
  • removal_at - When the participant’s access is (or was) removed
  • cohort_ids - Ids of the cohorts (ticket types) the participant can access
  • cohorts - 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

Slug invoices. Primary key: id. Sync: INCREMENTAL on created_at.
  • id - Invoice id
  • subscription_id - Id of the subscription the invoice charges
  • subscription_ids - Ids of every subscription a grouped invoice charges
  • grouped_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 payer
  • payer_id - Hubla account id of the payer of the invoice
  • payer_name - Name of the payer of the invoice
  • payer_document - Document (CPF or CNPJ) of the payer of the invoice
  • payer_email - Email of the payer of the invoice
  • payer_phone - Phone number of the payer of the invoice
  • type - Invoice type: sell, renewal, upgrade, installment or standalone
  • status - Invoice status: draft, pending, paid, expired, refunded, in_protest, chargeback or canceled
  • status_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 invoice
  • payment_method - Payment method: credit_card, pix or bank_slip
  • currency - Currency of the invoice (ISO 4217)
  • installments - Number of installments the payment was split into
  • installment - Which installment this invoice is
  • subtotal_cents - Subtotal, in cents of the invoice currency
  • discount_cents - Discount, in cents
  • prorata_cents - Pro-rata amount (plan changes), in cents
  • installment_fee_cents - Installment fee charged to the payer, in cents
  • total_cents - Total charged, in cents
  • items - 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 invoice
  • utm_medium - UTM medium of the checkout session
  • utm_campaign - UTM campaign of the checkout session
  • utm_content - UTM content of the checkout session
  • utm_term - UTM term of the checkout session
  • tracking_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 key
  • due_date - Due date of the invoice
  • paid_at - When the invoice was paid
  • canceled_at - When the invoice was canceled
  • chargeback_at - When the chargeback happened
  • disputed_at - When the payment was disputed
  • refunded_at - When the invoice was refunded
  • refused_at - When the payment was refused
  • expired_at - When the invoice expired unpaid
  • modified_at - When the invoice last changed
  • version - Version of the invoice record, raised by Hubla on every change
Slug subscriptions. Primary key: id. Sync: INCREMENTAL on modified_at.
  • id - Subscription id
  • seller_id - Hubla account id of the seller
  • payer_account_id - Hubla account id of the subscriber
  • type - Subscription type: one_time, recurring, grouped or free
  • status - Subscription status: active, inactive, canceled, incomplete or trial
  • billing_cycle_months - Months between two charges of a recurring subscription
  • credits - Daily credits added to the subscription
  • payment_method - Payment method: credit_card, pix or bank_slip
  • auto_renew - Whether the subscription renews automatically
  • free_trial - Whether the subscription started with a free trial
  • activated_at - When the subscription was activated
  • inactivated_at - When the subscription became inactive
  • canceled_at - When the subscription was canceled
  • last_debit_at - When the subscription was last charged
  • next_due_at - When the next charge is due
  • deactivate_eta - When the subscription is set to be deactivated
  • last_invoice_id - Id of the last invoice of the subscription
  • last_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 created
  • modified_at - When the subscription last changed; the incremental replication key
  • version - Version of the subscription record, raised by Hubla on every change
Slug refunds. Primary key: id. Sync: FULL_TABLE.
  • id - Refund request id
  • invoice_id - Id of the refunded invoice
  • amount - Refund amount, as Hubla reports it
  • currency - Currency of the refund (ISO 4217)
  • status - Refund status: created, pending, rejected, accepted, failed, processing or canceled
  • requester_id - Hubla user id of who asked for the refund (the payer)
  • requester_name - Name of who asked for the refund
  • requester_email - Email of who asked for the refund
  • requester_phone - Phone number of who asked for the refund
  • description - Reason given for the refund
  • feedback - The creator’s answer, such as why the refund was rejected
  • is_auto_accepted - Whether the refund was accepted automatically
  • scheduled_for - When the refund is scheduled to be processed
  • created_at - When the refund was requested
  • updated_at - When the refund last changed
Slug smart_installments. Primary key: id. Sync: FULL_TABLE.
  • id - Smart installment plan id
  • subscription_id - Id of the subscription the plan pays
  • source_invoice_id - Id of the invoice the plan was created from
  • seller_id - Hubla account id of the seller
  • payer_account_id - Hubla account id of the payer
  • payer_id - Hubla account id of the payer of the plan
  • payer_name - Name of the payer of the plan
  • payer_document - Document (CPF or CNPJ) of the payer of the plan
  • payer_email - Email of the payer of the plan
  • payer_phone - Phone number of the payer of the plan
  • installments - Number of installments of the plan
  • installment - Current installment of the plan
  • payment_method - Payment method: credit_card, pix or bank_slip
  • type - Plan type: recovery, direct, bnpl_with_card, bnpl_with_boleto or bnpl_with_pix
  • status - Plan status: created, aborted, on_schedule, off_schedule, canceled or completed
  • status_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 cents
  • items - Products the plan pays for (JSON array of objects with id and name)
  • created_at - When the plan was created
  • next_due_at - When the next installment is due
  • version - Version of the plan record, raised by Hubla on every change
Slug leads. Primary key: id. Sync: INCREMENTAL on created_at.
  • id - Lead id
  • offer_id - Id of the offer the lead is about
  • cause - What created the lead: submit_externo, entered_checkout, carrinho_abandonado, falha_no_pagamento, pagamento_atrasado, assinatura_cancelada, pediu_reembolso, reembolsado or pediu_chargeback
  • full_name - Full name of the person
  • email - Email of the person
  • phone_number - Phone number of the person
  • amount_in_cents - What the person would have paid had the purchase been concluded, in cents
  • event_url - URL of the page where the lead was submitted
  • utm_source - UTM source when the person started the purchase
  • utm_medium - UTM medium
  • utm_campaign - UTM campaign
  • utm_content - UTM content
  • utm_term - UTM term
  • tracking_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 purchase
  • created_at - When the lead was created (UTC); the incremental replication key

Financial

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 now
  • receivable_in_cents - Balance to receive, in cents: sales not released yet
  • transferable_in_cents - Balance in transfer, in cents: withdrawals on their way to the bank account
  • contested_in_cents - Balance in dispute, in cents: held while a chargeback is open
  • reserved_in_cents - Reserved balance, in cents: kept to cover refunds and chargebacks
  • total_in_cents - Sum of the five balances, in cents
Slug financial_statement. Primary key: entry_key. Sync: INCREMENTAL on date.
  • entry_key - Key of the entry: its id, or consolidated:<currency>:<date>:<type> for a consolidated line
  • id - Ledger movement id; empty on a consolidated line
  • type - 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 wallet
  • available_delta_in_cents - How much the entry changed the available balance, in cents
  • currency - Currency of the wallet (ISO 4217)
  • created_at - When the movement was created (UTC); empty on a consolidated line
  • date - Day of the entry in America/Sao_Paulo; the incremental replication key
  • time - Time of the entry in America/Sao_Paulo (HH:mm); empty on a consolidated line
  • release_date - Day the amount is released, in America/Sao_Paulo
  • reference_id - The invoice (sale, renewal, refund, chargeback) or withdrawal the entry belongs to
  • is_consolidated - True for the line that adds up every sale released on one day
  • description_label - Label of an internal transfer, such as a co-production split
  • description_info - Extra explanation of an internal transfer
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 BRL
  • is_configured - Whether the wallet has conditions of its own
  • credit_card_settlement_days - Days after payment until a card sale is released for withdrawal
  • boleto_settlement_days - Days after payment until a boleto sale is released
  • pix_settlement_days - Days after payment until a Pix sale is released
  • commission_percent - Commission charged per sale, in percent
  • transaction_fee_in_cents - Fixed fee charged per sale, in cents
  • feature_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 percent
  • withdrawal_max_per_operation_in_cents - Most a single withdrawal may take, in cents; empty when no limit
  • withdrawal_max_per_operation_overnight_in_cents - Most a single overnight withdrawal may take, in cents; empty when no limit
  • withdrawal_max_per_month_in_cents - Most the withdrawals of a month may add up to, in cents; empty when no limit
  • withdrawal_max_requests_per_day - Most withdrawals that may be requested in a day; empty when no limit
  • withdrawal_max_requests_per_month - Most withdrawals that may be requested in a month; empty when no limit
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 first
  • releases - 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 percent
  • reserve_sales_base_in_cents - Net sales since reserve_sales_since, the base of the reserve, in cents
  • reserve_sales_since - First day the reserve base counts
  • reserve_target_in_cents - Reserve the daily rebalance converges to, in cents
  • reserve_reserved_in_cents - Current reserved balance, in cents
  • reserve_available_in_cents - Current available balance, in cents
  • reserve_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_at until 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.

Troubleshooting