Skip to main content

Airbyte Stripe Connector for AI platforms

Project description

Stripe

The Stripe agent connector is a Python package that equips AI agents to interact with Stripe through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Stripe is a payment processing platform that enables businesses to accept payments, manage subscriptions, and handle financial transactions. This connector provides access to customers for payment analytics and customer management.

Example questions

The Stripe connector is optimized to handle prompts like these.

  • List customers created in the last 7 days
  • Show me details for a recent customer
  • List recent charges
  • Show me details for a recent charge
  • List recent invoices
  • List active subscriptions
  • Show me my top 10 customers by total revenue this month
  • List all customers who have spent over $5,000 in the last quarter
  • Analyze payment trends for my Stripe customers
  • Identify which customers have the most consistent subscription payments
  • Give me insights into my customer retention rates
  • Summarize the payment history for {customer}
  • Compare customer spending patterns from last month to this month
  • Show me details about my highest-value Stripe customers
  • What are the key financial insights from my customer base?
  • Break down my customers by their average transaction value

Unsupported questions

The Stripe connector isn't currently able to handle prompts like these.

  • Create a new customer profile in Stripe
  • Update the billing information for {customer}
  • Delete a customer record
  • Send a payment reminder to {customer}
  • Schedule an automatic invoice for {company}

Installation

uv pip install airbyte-agent-stripe

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_stripe import StripeConnector
from airbyte_agent_stripe.models import StripeAuthConfig

connector = StripeConnector(
    auth_config=StripeAuthConfig(
        api_key="<Your Stripe API Key (starts with sk_test_ or sk_live_)>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@StripeConnector.tool_utils
async def stripe_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_stripe import StripeConnector, AirbyteAuthConfig

connector = StripeConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@StripeConnector.tool_utils
async def stripe_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Customers List, Create, Get, Update, Delete, API Search, Search
Invoices List, Get, API Search, Search
Charges List, Get, API Search, Search
Subscriptions List, Get, API Search, Search
Refunds List, Create, Get, Search
Products List, Create, Get, Update, Delete, API Search
Balance Get
Balance Transactions List, Get
Payment Intents List, Get, API Search
Disputes List, Get
Payouts List, Get

Authentication

For all authentication options, see the connector's authentication documentation.

Stripe API docs

See the official Stripe API reference.

Version information

  • Package version: 0.5.120
  • Connector version: 0.1.12
  • Generated with Connector SDK commit SHA: bbb4625615c5a514170db99dfb0a413153726447
  • Changelog: View changelog

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_stripe-0.5.120.tar.gz (300.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_stripe-0.5.120-py3-none-any.whl (317.6 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_stripe-0.5.120.tar.gz.

File metadata

  • Download URL: airbyte_agent_stripe-0.5.120.tar.gz
  • Upload date:
  • Size: 300.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_stripe-0.5.120.tar.gz
Algorithm Hash digest
SHA256 11f079cb16636e345f3f281a5d138c3edfdfc27919824945f0d3df57df199b1c
MD5 6ec1cbbd18aabd67ac5591b44b3df7bc
BLAKE2b-256 5ffab9688899c3383133290311a87f56de0e4ec84f1d13541229c69ab89adb89

See more details on using hashes here.

File details

Details for the file airbyte_agent_stripe-0.5.120-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_stripe-0.5.120-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ded0d472a8ac734737b55000f4c88d863c1cc581c879d218f280d1c5b0499e
MD5 11f501e048f2eed1c690cf7881a5d04e
BLAKE2b-256 5ba910a789657d0e7fc18d8d61769f64486e97cc406b7a4171d5a444c541a30c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page