Stripe
This page provides information on how to connect to Stripe. It enables users to perform actions such as creating customers, managing subscriptions, handling products, and accessing balance transactions.
Connect Stripe
To connect to Stripe, you need to authenticate using your Stripe API key. This authentication provides secure access to your Stripe account and resources.
API Key Authentication
To authenticate with Stripe, you need to provide your Stripe secret API key:
- Log in to your Stripe Dashboard at dashboard.stripe.com
- Navigate to Developers → API keys
- Under "Secret key," click "Reveal test key" or "Reveal live key" depending on your environment
- Test mode: Use test keys for development and testing (prefixed with
sk_test_) - Live mode: Use live keys for production (prefixed with
sk_live_)
- Test mode: Use test keys for development and testing (prefixed with
- Copy the key and paste it in the Appsmith Stripe datasource configuration
Consider using restricted API keys with limited permissions for specific use cases
Query Stripe
The following section provides a reference guide describing available commands and their parameters for interacting with Stripe.
Create Customer
Creates a new customer in your Stripe account. This command allows you to define customer details such as email, name, and description, and returns the created customer's information including their unique ID for future reference.
Email Create Customer string
The customer's email address. This is used for communication and helps identify the customer in the Stripe Dashboard.
Email addresses should be valid and properly formatted. Stripe will not validate the email format, but providing a valid email ensures you can contact the customer later.
Example:
customer@example.com
Name string
The customer's full name or business name. This helps identify the customer in the Stripe Dashboard and on invoices.
Example:
John Smith
Description string
Additional information about the customer. This field is for your internal use and is not visible to the customer.
Use this field to store notes or additional context about the customer relationship.
Example:
Enterprise client - Signed up during Q2 promotion