> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bondata.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe

> Connect BonData to Stripe for payments, billing, and subscription data

Stripe is a payments platform that businesses use to accept payments, run subscriptions, and manage billing online. With BonData, you can connect to your Stripe account to read, enrich, and sync your payments and billing data within Agent workflows.

## Stripe API Key Setup

BonData connects to Stripe using a secret API key.

### Step 1: Open the API Keys Page

1. Log in to the [Stripe Dashboard](https://dashboard.stripe.com/)
2. In the left navigation, click **Developers**
3. Select the **API keys** tab

### Step 2: Get Your Secret Key

<Tabs>
  <Tab title="Standard Key">
    1. Under **Standard keys**, find the **Secret key**
    2. Click **Reveal** and copy the value (it starts with `sk_live_` for live mode or `sk_test_` for test mode)
  </Tab>

  <Tab title="Restricted Key (Recommended)">
    1. Under **Restricted keys**, click **Create restricted key**
    2. Grant **Read** permission on the resources you want to sync (Customers, Charges, Invoices, and so on)
    3. Click **Create key** and copy the value (it starts with `rk_live_`)
  </Tab>
</Tabs>

<Note>
  Use a restricted key with read-only permissions for the tightest security. Treat any secret key like a password - never share it publicly.
</Note>

### Step 3: Enter Credentials in BonData

1. In BonData, navigate to **Integrations** and select **Stripe**
2. Enter your **Secret API Key**
3. Click **Connect**

## Required Fields

| Field   | Description                                                              |
| ------- | ------------------------------------------------------------------------ |
| API Key | Your Stripe secret key (`sk_live_...`) or restricted key (`rk_live_...`) |

## Available Data

Once connected, BonData can sync the following Stripe objects:

* **Customers** - Customer records and billing details
* **Charges** - Individual charge and payment records
* **Invoices** - Invoices and their line items
* **Subscriptions** - Active and canceled subscriptions
* **Products** - Product catalog entries
* **Prices** - Pricing and billing plans
* **Payouts** - Payouts to your bank account
* **Refunds** - Refund records
* **Disputes** - Chargebacks and disputes
