Skip to content

Stripe

Read your Stripe customers, charges, invoices, subscriptions, products, prices, payment intents and balance.

Connect it in the console under Integrations > Connectors. See Connectors for how connectors work and who can use them.

Create a restricted key in the Stripe Dashboard (Developers > API keys > Create restricted key) with Read access to the resources you want, and nothing else. A secret key (sk_) also works; a publishable key (pk_) does not.

SettingNotes
API keyRequiredA restricted key with read access is best. Stored encrypted and never shown again.
TableFiltersReturns
balanceNoneAvailable and pending balance.
customersemail, starting_afterCustomers.
chargescustomer, payment_intent, starting_afterCharges.
invoicescustomer, status, subscription, starting_afterInvoices.
subscriptionscustomer, status, price, starting_afterSubscriptions (status=all includes canceled).
productsactive, starting_afterProducts.
pricesproduct, active, type, starting_afterPrices.
payment_intentscustomer, starting_afterPayment intents.
balance_transactionstype, payout, starting_afterBalance transactions.
accountsstarting_afterConnected accounts (Stripe Connect platforms only).
Terminal window
curl -s -X POST "https://api.vaif.studio/database/connector/$VAIF_PROJECT_ID/query" \
-H "Authorization: Bearer $VAIF_TOKEN" -H "Content-Type: application/json" \
-d '{"wrapperId":"stripe_fdw","table":"invoices","filters":{"status":"open"},"limit":50}'

$VAIF_TOKEN is a console access token. See Connectors for the routes.

Requests use Stripe API version 2024-06-20, so the columns do not change when your account’s default version does. Pages follow Stripe’s cursors: pass the last row’s id as starting_after.