Stripe
Connect your Stripe account to query billing data, customer information, and subscription status directly through Sasha.
What You Can Do
- Query customers - Find customer records and details
- Check subscriptions - Status, plans, billing cycles
- Review invoices - Payment history and upcoming charges
- Analyze revenue - MRR, churn, growth metrics
- Track payments - Transaction status and disputes
Prerequisites
- Stripe account with API access
- Restricted API key with read permissions
- Appropriate Stripe role (at minimum, Analyst)
Create a Restricted API Key
- Go to Stripe Dashboard → Developers → API keys
- Click Create restricted key
- Name it (e.g., "Sasha Read-Only")
- Enable read access for:
- Customers
- Subscriptions
- Invoices
- Charges
- Balance
- Click Create key and copy it
Setup
- Navigate to Settings → Tools → Stripe Billing
- Paste your restricted API key
- Click Save
- Click Test Connection
- Click Register to enable Claude access
Example Uses
"How many active subscribers do we have?"
"Show me customers with failed payments this month"
"What's our MRR growth over the last 6 months?"
"Find the subscription details for customer@example.com"
"List invoices over $1,000 from this quarter"
"Which subscription plans are most popular?"
Available Data
| Category | Examples |
|---|---|
| Customers | Email, name, metadata, created date |
| Subscriptions | Status, plan, billing cycle, next invoice |
| Invoices | Amount, status, line items, payment method |
| Charges | Amount, status, refunds, disputes |
| Balance | Available, pending, currency breakdown |
Security Notes
- Use restricted keys with minimal permissions
- API key is encrypted at rest
- Read-only access recommended
- Revoke the key in Stripe to disconnect
Troubleshooting
| Issue | Solution |
|---|---|
| "Invalid API key" | Verify the key in Stripe Dashboard |
| "Permission denied" | Check restricted key permissions |
| "Rate limited" | Wait a moment, Stripe limits API calls |