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

# Stripe

> Payments data from a Stripe account: charges, customers, payment intents, invoices, subscriptions and the balance.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/stripe.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=bf4da28f1bafacb4efb6ce6dcb94d142)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`STRIPE_SECRET_KEY`

Endpoints

10

Auth

Key in header

[Vendor docs](https://docs.stripe.com/api)

&#x20;·&#x20;

[Pricing](https://stripe.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `STRIPE_SECRET_KEY` | required | a Stripe secret key (sk\_test\_/sk\_live\_) or, better, a restricted key (rk\_live\_) with read permissions only (Dashboard > Developers > API keys). Sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Amounts are integers in the currency's smallest unit (cents for USD: 1099 = \$10.99); timestamps are Unix seconds.
* List endpoints page with cursors: pass the last object's id as starting\_after (has\_more says whether to continue); limit is 1-100, default 10.
* Search endpoints page with the next\_page value from the previous response as page, not starting\_after. Search data can lag writes by up to a minute (an hour during outages) and is not available to merchants in India.
* A test key (sk\_test\_) only sees sandbox data; live data needs a live or restricted key. Prefer a read-only restricted key for this catalog.
* Responses follow the account's API version unless a Stripe-Version header is sent; field shapes can differ between versions.
* Refunds, payouts, customer updates and other writes are not in this entry.

## Endpoints

GET

Get account balance

Available and pending funds per currency.

[Open](#stripe-balance-get)

GET

List balance transactions

Every movement of funds (charges, refunds, fees, payouts), newest first.

[Open](#stripe-balance-transactions-list)

GET

List charges

Charges, newest first, optionally for one customer or payment intent.

[Open](#stripe-charges-list)

GET

Search charges

Charges matching a Stripe Search Query Language expression.

[Open](#stripe-charges-search)

GET

List customers

Customers, newest first, optionally by exact email.

[Open](#stripe-customers-list)

GET

Get a customer

One customer object by id.

[Open](#stripe-customers-get)

GET

Search customers

Customers matching a Search Query Language expression (name, email, metadata, ...).

[Open](#stripe-customers-search)

GET

List payment intents

PaymentIntents, newest first, optionally for one customer.

[Open](#stripe-payment-intents-list)

GET

List invoices

Invoices, newest first, by customer, subscription or status.

[Open](#stripe-invoices-list)

GET

List subscriptions

Subscriptions by customer, price or status.

[Open](#stripe-subscriptions-list)

### Get account balance

GET

`/balance`

`stripe.balance.get`

Available and pending funds per currency.

Input

No inputs.

[Vendor docs](https://docs.stripe.com/api/balance/balance_retrieve)

```python Python theme={null}
router.call_data_api("stripe.balance.get")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.balance.get")
```

### List balance transactions

GET

`/balance_transactions`

`stripe.balance_transactions.list`

Every movement of funds (charges, refunds, fees, payouts), newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only transactions created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only transactions created before this Unix time.
      </td>
    </tr>

    <tr><td>`currency`</td><td>string</td><td>query</td><td>Three-letter ISO currency code, lowercase. Example `usd`</td></tr>

    <tr>
      <td>
        `payout`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only transactions paid out in this payout id.
      </td>
    </tr>

    <tr>
      <td>
        `source`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only transactions for this source object id (a charge, say).
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>Only transactions of this type, e.g. charge, refund, payout. Example `charge`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/balance_transactions/list)

```python Python theme={null}
router.call_data_api("stripe.balance_transactions.list", {'currency': 'usd', 'type': 'charge'})
```

```text MCP theme={null}
call_data_api(endpoint="stripe.balance_transactions.list", params={"currency": "usd", "type": "charge"})
```

### List charges

GET

`/charges`

`stripe.charges.list`

Charges, newest first, optionally for one customer or payment intent.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only charges for this customer id (cus\_...).
      </td>
    </tr>

    <tr>
      <td>
        `payment_intent`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only charges created by this PaymentIntent id (pi\_...).
      </td>
    </tr>

    <tr>
      <td>
        `transfer_group`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only charges for this transfer group.
      </td>
    </tr>

    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only charges created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only charges created before this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/charges/list)

```python Python theme={null}
router.call_data_api("stripe.charges.list")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.charges.list")
```

> [!NOTE]
>
> * An unknown customer id is an error, not an empty list.

### Search charges

GET

`/charges/search`

`stripe.charges.search`

Charges matching a Stripe Search Query Language expression.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A Search Query Language expression over the charge query fields (docs.stripe.com/search).
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The next\_page value from the previous response; leave out on the first call.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/charges/search)

### List customers

GET

`/customers`

`stripe.customers.list`

Customers, newest first, optionally by exact email.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `email`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exact, case-sensitive email to filter by.
      </td>
    </tr>

    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only customers created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only customers created before this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/customers/list)

```python Python theme={null}
router.call_data_api("stripe.customers.list")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.customers.list")
```

### Get a customer

GET

`/customers/{id}`

`stripe.customers.get`

One customer object by id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Customer id. Example `cus_NeGfPRiPKxeBi1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/customers/retrieve)

```python Python theme={null}
router.call_data_api("stripe.customers.get", {'id': 'cus_NeGfPRiPKxeBi1'})
```

```text MCP theme={null}
call_data_api(endpoint="stripe.customers.get", params={"id": "cus_NeGfPRiPKxeBi1"})
```

> [!NOTE]
>
> * A deleted customer comes back with deleted: true and few other fields.

### Search customers

GET

`/customers/search`

`stripe.customers.search`

Customers matching a Search Query Language expression (name, email, metadata, ...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>A Search Query Language expression over the customer query fields. Example `name:'Jane Doe' AND metadata['foo']:'bar'`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The next\_page value from the previous response; leave out on the first call.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/customers/search)

```python Python theme={null}
router.call_data_api("stripe.customers.search", {'query': "name:'Jane Doe' AND metadata['foo']:'bar'"})
```

```text MCP theme={null}
call_data_api(endpoint="stripe.customers.search", params={"query": "name:'Jane Doe' AND metadata['foo']:'bar'"})
```

### List payment intents

GET

`/payment_intents`

`stripe.payment_intents.list`

PaymentIntents, newest first, optionally for one customer.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only payment intents for this customer id.
      </td>
    </tr>

    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only payment intents created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only payment intents created before this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/payment_intents/list)

```python Python theme={null}
router.call_data_api("stripe.payment_intents.list")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.payment_intents.list")
```

### List invoices

GET

`/invoices`

`stripe.invoices.list`

Invoices, newest first, by customer, subscription or status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only invoices for this customer id.
      </td>
    </tr>

    <tr>
      <td>
        `subscription`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only invoices for this subscription id.
      </td>
    </tr>

    <tr>
      <td>
        `status`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `draft`

        ,&#x20;

        `open`

        ,&#x20;

        `paid`

        ,&#x20;

        `uncollectible`

        ,&#x20;

        `void`
      </td>
    </tr>

    <tr>
      <td>
        `collection_method`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `charge_automatically`

        ,&#x20;

        `send_invoice`
      </td>
    </tr>

    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only invoices created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only invoices created before this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/invoices/list)

```python Python theme={null}
router.call_data_api("stripe.invoices.list")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.invoices.list")
```

### List subscriptions

GET

`/subscriptions`

`stripe.subscriptions.list`

Subscriptions by customer, price or status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `customer`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only subscriptions for this customer id.
      </td>
    </tr>

    <tr>
      <td>
        `price`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only subscriptions that contain this price id.
      </td>
    </tr>

    <tr><td>`status`</td><td>string</td><td>query</td><td>Unset returns every subscription that is not canceled; all returns every status; ended returns canceled and incomplete\_expired ones. One of `active`, `all`, `canceled`, `ended`, `incomplete`, `incomplete_expired`, `past_due`, `paused`, `trialing`, `unpaid`</td></tr>

    <tr>
      <td>
        `collection_method`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `charge_automatically`

        ,&#x20;

        `send_invoice`
      </td>
    </tr>

    <tr>
      <td>
        `created_gte`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only subscriptions created at or after this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `created_lt`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only subscriptions created before this Unix time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        1-100, default 10.
      </td>
    </tr>

    <tr>
      <td>
        `starting_after`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the last object on the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `ending_before`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor: the id of the first object on the next page, to page backwards.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.stripe.com/api/subscriptions/list)

```python Python theme={null}
router.call_data_api("stripe.subscriptions.list")
```

```text MCP theme={null}
call_data_api(endpoint="stripe.subscriptions.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.