Stripe
LIVE Source
Overview
Section titled “Overview”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.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| 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. |
Before you connect
Section titled “Before you connect”- 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. - Connect platforms: to replicate a connected account, note its account ID (
acct_…). Use one connector per connected account.
Connect
Section titled “Connect”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. |
Schema
Section titled “Schema”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.
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
email | string | Customer's email address. |
name | string | Customer's full name or business name. |
balance | integer | Credit balance in the smallest currency unit. |
delinquent | boolean | Whether the latest invoice or charge failed. |
currency | string | Three-letter ISO currency code, lower case. |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True 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).
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
amount | integer | Amount in the smallest currency unit (cents for USD). |
amount_refunded | integer | Amount refunded, in the smallest currency unit. |
currency | string | Three-letter ISO currency code, lower case. |
status | string | succeeded, pending or failed. |
paid | boolean | True if the charge succeeded or was authorized. |
refunded | boolean | True if fully refunded. |
customer→ customers.id | string | ID of the customer charged. |
payment_intent→ payment_intents.id | string | ID of the payment intent that created the charge. |
failure_code | string | Error code if the charge failed. |
billing_details | object | Billing name, email, address and phone. |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True 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).
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
amount | integer | Amount to collect, in the smallest currency unit. |
amount_received | integer | Amount collected so far. |
currency | string | Three-letter ISO currency code, lower case. |
status | string | e.g. requires_payment_method, processing, succeeded. |
customer→ customers.id | string | ID of the customer, if any. |
latest_charge | string | ID of the most recent charge. |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True for live mode, false for test mode. |
Main columns only. Other fields the source returns also land as columns.
invoices
One row per invoice.
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
customer→ customers.id | string | ID of the customer billed. |
status | string | draft, open, paid, uncollectible or void. |
total | integer | Total after discounts and taxes, smallest currency unit. |
amount_due | integer | Amount due, smallest currency unit. |
amount_paid | integer | Amount paid, smallest currency unit. |
currency | string | Three-letter ISO currency code, lower case. |
number | string | Human-readable invoice number. |
lines | object | The invoice's line items (first page). |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True for live mode, false for test mode. |
Main columns only. Other fields the source returns also land as columns.
subscriptions
One row per subscription.
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
customer→ customers.id | string | ID of the subscribed customer. |
status | string | e.g. active, trialing, past_due, canceled. |
items | object | Subscription items, each with its price. |
cancel_at_period_end | boolean | Whether it cancels at the end of the period. |
canceled_at | integer | When it was canceled (Unix seconds). |
currency | string | Three-letter ISO currency code, lower case. |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True for live mode, false for test mode. |
Main columns only. Other fields the source returns also land as columns.
products
One row per product.
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
name | string | Product name shown to customers. |
active | boolean | Whether the product can be purchased. |
description | string | Product description. |
updated | integer | When the product last changed (Unix seconds). |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True for live mode, false for test mode. |
Main columns only. Other fields the source returns also land as columns.
prices
One row per price.
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
product→ products.id | string | ID of the product this price is for. |
unit_amount | integer | Price in the smallest currency unit. |
currency | string | Three-letter ISO currency code, lower case. |
type | string | one_time or recurring. |
recurring | object | Billing interval for recurring prices. |
active | boolean | Whether the price can be used for new purchases. |
metadata | object | Your key-value metadata on the object. |
livemode | boolean | True 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).
| Column | Type | Description |
|---|---|---|
idPK | string | Stripe object ID, e.g. ch_…. |
createdcursor | integer | When the object was created (Unix seconds). |
type | string | Event type, e.g. invoice.paid. |
data | object | The object as it was when the event happened. |
api_version | string | Stripe API version the event was rendered with. |
livemode | boolean | True 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 (
customeron a charge) are IDs, not embedded objects. - Column types are inferred from the values in each sync. A field that is
nullin 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.
Sync behavior
Section titled “Sync behavior”- 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.
Common gotchas
Section titled “Common gotchas”- 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.