Skip to content

Stripe

LIVE Source

PortPilot reads your Stripe account’s core billing objects through the Stripe API and loads one table per object type. New objects are picked up by creation time, and changes to existing objects (an invoice being paid, a subscription cancelled) are picked up from Stripe’s event log, so your tables reflect each object’s latest state.

Works with live and test mode keys, and with Stripe Connect connected accounts.

FeatureSupportedNotes
Incremental sync Yes New objects by creation time; changed objects from Stripe's event log.
Captures deletes No Records deleted in the source stay in the destination.
Custom fields Partly Your metadata key-value pairs, as JSON.
Table selection Yes Choose which tables to sync.
New columns added automatically Yes Columns that appear in the source are added to the destination table.
Re-sync Yes A full refresh re-reads every selected table.
  1. Create a restricted key in the Stripe Dashboard (Developers → API keys → Create restricted key). Give it Read access to: Charges, Customers, Invoices, PaymentIntents, Subscriptions, Products, Prices and Events. A secret key (sk_live_…) also works but grants more than PortPilot needs.
  2. Connect platforms: to replicate a connected account, note its account ID (acct_…). Use one connector per connected account.

In the app, go to Connectors → New connector → Stripe and click Test connection after filling in:

Field Required Default Description
api_key Yes — Restricted (rk_…) or secret (sk_…) key. Stored write-only in the data plane’s secret store.
account_id No — Connected account ID (acct_…). Every request is made as that account.
start_date No all history YYYY-MM-DD. Objects created before this date (UTC) are skipped.

How the tables relate. Each arrow points from a column to the table it references. Only key, reference and cursor columns are shown; the data dictionary below has the rest.

erDiagram
    customers ||--o{ charges : "customer"
    payment_intents ||--o{ charges : "payment_intent"
    customers ||--o{ payment_intents : "customer"
    customers ||--o{ invoices : "customer"
    customers ||--o{ subscriptions : "customer"
    products ||--o{ prices : "product"
    customers {
        string id PK
        integer created "cursor"
    }
    charges {
        string id PK
        integer created "cursor"
        string customer FK
        string payment_intent FK
    }
    payment_intents {
        string id PK
        integer created "cursor"
        string customer FK
    }
    invoices {
        string id PK
        integer created "cursor"
        string customer FK
    }
    subscriptions {
        string id PK
        integer created "cursor"
        string customer FK
    }
    products {
        string id PK
        integer created "cursor"
    }
    prices {
        string id PK
        integer created "cursor"
        string product FK
    }
    events {
        string id PK
        integer created "cursor"
    }

customers

One row per customer.

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
emailstringCustomer's email address.
namestringCustomer's full name or business name.
balanceintegerCredit balance in the smallest currency unit.
delinquentbooleanWhether the latest invoice or charge failed.
currencystringThree-letter ISO currency code, lower case.
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

charges

One row per charge (a payment attempt).

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
amountintegerAmount in the smallest currency unit (cents for USD).
amount_refundedintegerAmount refunded, in the smallest currency unit.
currencystringThree-letter ISO currency code, lower case.
statusstringsucceeded, pending or failed.
paidbooleanTrue if the charge succeeded or was authorized.
refundedbooleanTrue if fully refunded.
customer→ customers.idstringID of the customer charged.
payment_intent→ payment_intents.idstringID of the payment intent that created the charge.
failure_codestringError code if the charge failed.
billing_detailsobjectBilling name, email, address and phone.
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

payment_intents

One row per payment intent (one attempt to collect a payment).

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
amountintegerAmount to collect, in the smallest currency unit.
amount_receivedintegerAmount collected so far.
currencystringThree-letter ISO currency code, lower case.
statusstringe.g. requires_payment_method, processing, succeeded.
customer→ customers.idstringID of the customer, if any.
latest_chargestringID of the most recent charge.
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

invoices

One row per invoice.

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
customer→ customers.idstringID of the customer billed.
statusstringdraft, open, paid, uncollectible or void.
totalintegerTotal after discounts and taxes, smallest currency unit.
amount_dueintegerAmount due, smallest currency unit.
amount_paidintegerAmount paid, smallest currency unit.
currencystringThree-letter ISO currency code, lower case.
numberstringHuman-readable invoice number.
linesobjectThe invoice's line items (first page).
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

subscriptions

One row per subscription.

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
customer→ customers.idstringID of the subscribed customer.
statusstringe.g. active, trialing, past_due, canceled.
itemsobjectSubscription items, each with its price.
cancel_at_period_endbooleanWhether it cancels at the end of the period.
canceled_atintegerWhen it was canceled (Unix seconds).
currencystringThree-letter ISO currency code, lower case.
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

products

One row per product.

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
namestringProduct name shown to customers.
activebooleanWhether the product can be purchased.
descriptionstringProduct description.
updatedintegerWhen the product last changed (Unix seconds).
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

prices

One row per price.

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
product→ products.idstringID of the product this price is for.
unit_amountintegerPrice in the smallest currency unit.
currencystringThree-letter ISO currency code, lower case.
typestringone_time or recurring.
recurringobjectBilling interval for recurring prices.
activebooleanWhether the price can be used for new purchases.
metadataobjectYour key-value metadata on the object.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

events

One row per Stripe event (the account's change log).

Primary key
id
Replication
Incremental, on created
ColumnTypeDescription
idPKstringStripe object ID, e.g. ch_….
createdcursorintegerWhen the object was created (Unix seconds).
typestringEvent type, e.g. invoice.paid.
dataobjectThe object as it was when the event happened.
api_versionstringStripe API version the event was rendered with.
livemodebooleanTrue for live mode, false for test mode.

Main columns only. Other fields the source returns also land as columns.

  • Timestamps (created, canceled_at, …) are Unix epoch seconds, as Stripe returns them.
  • Amounts are integers in the currency’s smallest unit (cents for USD).
  • Expandable references (customer on a charge) are IDs, not embedded objects.
  • Column types are inferred from the values in each sync. A field that is null in every row of the first sync is created as a text column.
  • PortPilot pins the Stripe API version (2026-11-18.endive) on every request, so field shapes change only when PortPilot deliberately upgrades it.
  • First sync: every object of each type (from start_date, if set), 100 per page.
  • Later syncs: objects created since the last sync, plus every object that had an event since the last sync, written as it was at its most recent event. Rows are upserted on id.
  • Event retention: Stripe keeps events for 30 days. If a connector hasn’t synced for about 29 days, the next run re-reads every object of each type once, then returns to incremental syncs.
  • Deletes aren’t replicated. A deleted customer, product or price keeps its last state in your destination.
  • Missing permissions fail the sync. A restricted key without Read on one of the objects above makes that table fail with a permission error. Grant Read on all eight, including Events, which change tracking depends on.
  • Cancelled subscriptions on the first sync. Stripe’s subscription list returns only subscriptions that aren’t cancelled, so subscriptions cancelled before your first sync may be missing. Subscriptions cancelled after it arrive through events.
  • Event-sourced rows can differ slightly. Changed objects are taken from the event payload, rendered in the API version the event was created with, which can differ from the pinned version used for list reads.
  • Test and live are separate. A test-mode key only sees test data. Use separate connectors.
  • Rate limits. Stripe’s read limits are generous, but other integrations on the same key share them. Sustained 429 responses fail the run with rate_limited; it retries on the next schedule.