What can you do with it?
The Stripe API allows you to manage payment processing and subscription billing. You can create and manage customers, set up products and pricing plans, handle subscriptions, track balance transactions, and manage your entire payment infrastructure programmatically.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (create, update, get, list)entity
- The entity type (customer, subscription, product, etc.)id
- Entity ID for specific operations
email
- Customer email addressname
- Customer or product namedescription
- Description for entitiesamount
- Price amount in centscurrency
- Currency code (e.g., “usd”)interval
- Billing interval (month, year)
Tools
Create Customer
Create a new customer in Stripe. Parameters:email
(required) - Customer email addressname
(required) - Customer namedescription
(optional) - Customer description
Update Customer
Update an existing customer’s information in Stripe. Parameters:customer_id
(required) - Customer ID to updatename
(optional) - Updated customer namedescription
(optional) - Updated descriptionemail
(optional) - Updated email address
Get Customer
Retrieve a customer’s details by their unique ID. Parameters:customer_id
(required) - Customer ID to retrieve
List Customers
Retrieve a list of customers. Parameters:limit
(optional) - Number of customers to returnstarting_after
(optional) - Customer ID to start after
Create Subscription
Create a new subscription for an existing customer. Parameters:customer_id
(required) - Customer ID for the subscriptionprice_id
(required) - Price ID for the subscriptiontrial_period_days
(optional) - Trial period in days
List Subscriptions
Retrieve a list of subscriptions. Parameters:customer_id
(optional) - Filter by specific customerstatus
(optional) - Filter by subscription statuslimit
(optional) - Number of subscriptions to return
Create Product
Create a new product in Stripe. Parameters:name
(required) - Product namedescription
(optional) - Product descriptionactive
(optional) - Whether the product is active
Get Product
Retrieve a product’s details by its unique ID. Parameters:product_id
(required) - Product ID to retrieve
List Products
Retrieve a list of products available in Stripe. Parameters:active
(optional) - Filter by active statuslimit
(optional) - Number of products to return
List Balance Transactions
Retrieve a list of balance transactions for the account. Parameters:type
(optional) - Filter by transaction typelimit
(optional) - Number of transactions to returnstarting_after
(optional) - Transaction ID to start after
List Plans
Retrieve a list of pricing plans available in Stripe. Parameters:product_id
(optional) - Filter by specific productactive
(optional) - Filter by active statuslimit
(optional) - Number of plans to return