The Stripe connector gives Agix direct access to your Stripe account data. Once authenticated, it can pull your full subscriber list, per-customer payment histories, and customer records into the active sheet. From there, Agix’s AI layer can immediately run analyses — churn-risk scoring, cohort lifetime-value estimates, refund-spike detection — without any data export or copy-paste workflow.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
StripeConnector class
StripeConnector extends BaseConnector and sets its type to "stripe". It implements the three abstract methods from BaseConnector plus three domain-specific pull methods:
Pull methods
| Method | Signature | What it returns |
|---|---|---|
pullSubscriptions | () => Promise<Record<string, unknown>[]> | All subscription records from your Stripe account |
pullPaymentHistory | (customerId: string) => Promise<Record<string, unknown>[]> | The complete payment history for a single customer |
pullCustomers | () => Promise<Record<string, unknown>[]> | All customer objects from your Stripe account |
The sync() method
sync() is the unified entry point used by the Agix scheduler and the sidebar’s one-click sync button. Pass a SyncRequest with connector: "stripe" and set resource to the dataset you want:
SyncResult reports the outcome:
ConnectorConfig for Stripe
TheConnectorConfig passed to connect() holds your Stripe API key inside the credentials map:
rateLimitRps field lets you throttle outgoing requests if your Stripe plan has tight rate limits.
Example use case: daily churn-risk analysis
A common pattern is to schedule a nightly pull of subscription data, write the rows into a dedicated sheet tab, and then prompt the AI to flag customers with elevated churn risk:- The scheduler triggers
sync({ connector: "stripe", resource: "subscriptions" })at midnight. rowsInsertedandrowsUpdatedcounts confirm the sheet is current.- You open the Agix sidebar and type: “Which subscribers have been on a monthly plan for over 12 months with no upgrade? Rank them by churn risk.”
- Agix reads the fresh subscription rows and writes a ranked table with reasoning into the adjacent sheet.
How to connect Stripe
Create a restricted Stripe API key
Log in to dashboard.stripe.com, navigate to
Developers → API keys, and click Create restricted key. Grant
Read access to Customers, Subscriptions, and Charges only.
Copy the key — it starts with
rk_.Open the Agix Integrations panel
In your spreadsheet, open the Agix sidebar and navigate to
Integrations → Stripe.