Get customers
Tags: #stripe #customers #snippet
Author: Martin Donadieu

Input

Import libraries

1
try:
2
import stripe
3
except:
4
!pip install stripe
5
import stripe
6
import pandas as pd
Copied!

Variables

1
api_key = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"
Copied!

Model

Connect to the API

1
stripe.api_key = api_key
Copied!
1
customers = stripe.Customer.list(limit=30)
Copied!

Output

Get customers

1
pd.DataFrame(customers.get('data'))
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub