Skip to main content
Connectors

Orb connector

Set up the Orb connector in Kaivo: authentication, configuration, the 6 BigQuery tables it syncs, and answers to common questions.

Written By Lauri Raivio

Last updated 16 days ago

Kaivo is a fully managed data platform that syncs your Orb data into a Google BigQuery warehouse and keeps it up to date automatically. There is no pipeline to build and no infrastructure to run, so you can spend your time analysing your payment and finance data instead of moving it.

What is the Orb connector

Sync your Orb usage-based billing data into BigQuery with Kaivo to analyse subscriptions, usage, and revenue.

CategoryFinance & Payments
AuthenticationAPI key
SetupSelf-service

Getting started with the Orb connector

  1. Sign up for Kaivo and create a workspace.
  2. Connect your Orb account.
  3. Choose which tables to sync.
  4. Wait for the initial sync to finish.
  5. Query your data in BigQuery or your favourite AI or BI tool.

Authenticating Orb

Authenticate with your Orb API Key.

FieldDescription
Orb API Key

Orb API Key, issued from the Orb admin console.

Configuring the Orb connector

When you set up the connector, you provide:

FieldDescription
Start Date

Any data before this date will not be fetched.

Event Properties Keys (String Values)

Optional. Names of string-valued event properties to extract and attach to the matching ledger entries (for usage enrichment). Leave blank unless you need event metadata in the ledger.

Event Properties Keys (Numeric Values)

Optional. Names of numeric-valued event properties to extract and attach to the matching ledger entries (for usage enrichment). Leave blank unless you need event metadata in the ledger.

Subscription Usage Grouping Key

Optional. Event property key to group Subscription Usage by (one usage series per distinct value).

Orb Plan ID

Optional. Limit Subscription Usage to subscriptions on this Orb Plan ID; leave blank to include all plans.

Tables and columns synced from Orb

Kaivo syncs 6 tables from Orb into a dedicated dataset in your BigQuery warehouse. Click any table to see its columns and types.

ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique ID of the ledger entry
starting_balanceFLOAT64The starting balance before the ledger entry
ending_balanceFLOAT64The ending balance after the ledger entry
amountFLOAT64The amount of credits involved in the ledger entry
block_expiry_dateTIMESTAMPThe date and time when the credit block will expire
created_atTIMESTAMPThe date and time when the ledger entry was created
entry_typeSTRINGThe type of ledger entry (e.g., debit, credit)
new_block_expiry_dateTIMESTAMPThe new expiry date and time of the credit block after the ledger entry
customer_idSTRINGThe ID of the customer associated with the ledger entry
credit_block_per_unit_cost_basisFLOAT64The cost per unit of the credit block
descriptionSTRINGA description of the ledger entry
credit_block_idSTRINGThe ID of the associated credit block
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the customer.
external_customer_idSTRINGThe ID of the customer in an external system.
nameSTRINGThe name of the customer.
emailSTRINGThe email address of the customer.
created_atTIMESTAMPThe date and time when the customer account was created.
payment_providerSTRINGThe payment provider used by the customer.
payment_provider_idSTRINGThe ID of the customer in the payment provider's system.
timezoneSTRINGThe timezone setting of the customer.
shipping_address__citySTRINGThe city of the shipping address.
shipping_address__countrySTRINGThe country of the shipping address.
shipping_address__line1STRINGThe first line in the shipping address.
shipping_address__line2STRINGThe second line in the shipping address if applicable.
shipping_address__postal_codeSTRINGThe postal code of the shipping address.
shipping_address__stateSTRINGThe state or region of the shipping address.
billing_address__citySTRINGThe city of the billing address.
billing_address__countrySTRINGThe country of the billing address.
billing_address__line1STRINGThe first line in the billing address.
billing_address__line2STRINGThe second line in the billing address if applicable.
billing_address__postal_codeSTRINGThe postal code of the billing address.
billing_address__stateSTRINGThe state or region of the billing address.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the invoice.
created_atTIMESTAMPThe date and time when the invoice was created.
invoice_dateTIMESTAMPThe date when the invoice was issued.
due_dateTIMESTAMPThe due date for the payment of the invoice.
invoice_pdfSTRINGThe URL to download the PDF version of the invoice.
subtotalSTRINGThe subtotal amount before applying taxes or discounts.
totalSTRINGThe total amount of the invoice including all charges.
amount_dueSTRINGThe total amount due on the invoice.
statusSTRINGThe current status of the invoice (e.g., pending, paid, voided).
memoSTRINGAny additional notes or comments associated with the invoice.
issue_failed_atTIMESTAMPThe date and time when issuing the invoice failed.
sync_failed_atTIMESTAMPThe date and time when syncing the invoice data failed.
payment_failed_atTIMESTAMPThe date and time when the payment for the invoice failed.
payment_started_atTIMESTAMPThe date and time when the payment process started for the invoice.
voided_atTIMESTAMPThe date and time when the invoice was voided.
paid_atTIMESTAMPThe date and time when the invoice was paid.
issued_atTIMESTAMPThe date and time when the invoice was issued.
hosted_invoice_urlSTRINGThe URL to view the hosted invoice online.
subscription__idSTRINGThe unique identifier of the subscription.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: invoices__line_items

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the line item.
quantityFLOAT64The quantity of the item included in the invoice.
amountSTRINGThe amount for the line item.
nameSTRINGThe name or description of the line item.
start_dateTIMESTAMPThe start date of the service period for the line item.
end_dateTIMESTAMPThe end date of the service period for the line item.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the plan
created_atTIMESTAMPThe timestamp of when the plan was created
descriptionSTRINGA short description of the plan
nameSTRINGThe name of the plan
product__idSTRINGThe unique identifier of the product
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: plans__prices

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the price option
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
quantityFLOAT64Quantity of the billable metric used during the specified timeframe
timeframe_startTIMESTAMPStart timestamp of the timeframe during which the usage data is captured
timeframe_endTIMESTAMPEnd timestamp of the timeframe during which the usage data is captured
billable_metric_nameSTRINGName of the billable metric associated with the subscription usage
billable_metric_idSTRINGUnique identifier for the billable metric associated with the subscription usage
subscription_idSTRINGUnique identifier for the subscription the usage data belongs to
grouping_keySTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRINGThe unique identifier of the subscription.
created_atTIMESTAMPThe date and time when the subscription was created.
customer_idSTRINGThe unique identifier of the customer associated with the subscription.
external_customer_idSTRINGThe external identifier of the customer associated with the subscription.
start_dateTIMESTAMPThe date and time when the subscription is set to start.
end_dateTIMESTAMPThe date and time when the subscription is set to end.
plan_idSTRINGThe unique identifier of the subscription plan assigned to the subscription.
statusSTRINGThe current status of the subscription.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

How the Orb sync works

After the first load, Kaivo keeps your BigQuery warehouse up to date for you. Where Orb supports it, each sync pulls only new and changed records so it stays fast; otherwise it refreshes the whole table. Every record keeps its original ID, so you won't get duplicate rows.

Frequently asked questions

How long does the initial sync take for Orb?

It depends on how much history is in your Orb account. Most initial syncs finish within minutes, while large accounts can take a few hours. After that, syncs only fetch new and changed records, so they're much faster.

Can I sync only some tables or columns?

Yes. You pick which tables to sync when you set up the connection and can change the selection later. Tables you don't select are never copied to your warehouse.

What happens when Orb's schema changes?

New fields are never added automatically. You choose which fields to sync, so data you haven't selected (sensitive personal data, for example) never lands in your warehouse. When a new field appears, it becomes available for you to add. What happens to removed or renamed fields depends on a table's sync mode: full-refresh tables always match what's currently in Orb, so dropped fields disappear, while incremental tables keep their existing columns and history, so an old field stays and newly added fields fill in over time.

How do I handle GDPR or data deletion requests?

Your data lives in your own Kaivo-managed BigQuery warehouse, so the most direct option is to delete or anonymise specific records right in BigQuery. If you delete data in Orb instead, full-refresh tables drop it on the next sync, while incremental tables keep it, so you would remove the row in BigQuery or ask us to run a full refresh. To remove everything, delete the Orb connector in Kaivo and all of its synced data is deleted with it.

Common use cases for Orb data

Recurring revenue

Use subscriptions and invoices to track recurring revenue and churn over time.

Usage billing

Join subscription_usage with credits_ledger_entries to analyse usage-based charges.

Customer view

Use customers and plans to measure lifetime value and plan mix.

Use Orb data in your AI and BI tools

Once Orb data lands in your Kaivo-managed BigQuery warehouse, you can explore it with AI tools or any BI tool that connects to BigQuery. Here's how the most common destinations work with Orb data.

Claude

Use Kaivo's MCP server to give Claude secure, workspace-scoped access to your data. Setup guide →

Power BI

Microsoft's BI tool with a native BigQuery connector. Supports direct query and scheduled refresh. Setup guide →

Data Studio

Free Google BI tool with native BigQuery support. One-click connection to your Kaivo warehouse; great for SMB teams on Google Workspace. Setup guide →

Tableau

The premium analytics standard, with native BigQuery integration. Setup guide →

Google Sheets

Use Connected Sheets to query BigQuery directly from a spreadsheet, with no SQL. Setup guide →

Excel

Connect via Power Query's BigQuery connector. Setup guide →

Metabase

Open-source BI tool with strong BigQuery support. Setup guide →

See our pricing page for Orb connector pricing and plan details.

Was this helpful?

Still need help? Share an idea