Credits & Payments
List Payment Plans
Retrieve all available credit subscription plans from Stripe
GET
This endpoint returns a list of all available credit subscription plans that can be purchased. Plans are fetched directly from Stripe and include pricing, features, and credit amounts.
Authentication
This endpoint is publicly accessible and does not require authentication. It
returns the same plan information to all users.
Request
This endpoint does not require any request parameters.Response
The response is an array of subscription plan objects, sorted by credit amount in ascending order (lowest to highest).The response body is a JSON array of subscription plan objects (not wrapped in an object).
Plan Configuration
Plans are configured in Stripe with the following requirements:| Stripe Field | Requirement |
|---|---|
metadata.type | Must be set to credits to be included in results |
metadata.credits | Number of credits included in the plan |
default_price | Active price for the product |
marketing_features | Optional list of features to display |
Supported Currencies
| Currency Code | Symbol |
|---|---|
| EUR | € |
| USD | $ |
| GBP | £ |
| CHF | CHF |
Error Codes
| Status Code | Error Code | Description |
|---|---|---|
500 | INTERNAL_ERROR | Server error while fetching plans from Stripe |
Notes
- Plans are fetched in real-time from Stripe, ensuring pricing is always current
- Only active products with
metadata.type = "credits"are returned - Plans are automatically sorted by credit amount (lowest to highest)
- If a product has no active price, an error will be thrown
- The response is an empty array if no credit products are configured in Stripe