List Stripe prices
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Returns prices from every product in the configured Stripe account, unless narrowed to one product with product_id. A product can have more than one price, such as separate monthly and annual prices for the same plan.
Uses the Stripe account selected by the app's stored credentials. Live keys select the live catalog and test keys select the test catalog. Products and prices belong to that Stripe account, so multiple apps configured with the same account share the same catalog. Check livemode on each returned product or price to see which catalog the call used.
Returns a single batch, with no indication that more results exist. This operation cannot retrieve a complete catalog larger than the requested limit.
Requires read access to the app.
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/payments/stripe/prices
- AuthHTTP bearer
Path parameters
ID of the Base44 app.
Query parameters
Stripe product ID to filter by. Defaults to no product filter.
Filter by active status. Stripe defaults to active-only prices when this is omitted. Pass false to list inactive prices instead.
Maximum number of prices in this batch. Use 1 through 100. Defaults to 100. There is no cursor for another batch.
Response
The operation result.
Example response
[
{
"id": "price_1T7mK2Q4r6S8v9Ab",
"product": "prod_T7mK2p9Q4r6S8v",
"unit_amount": 2500,
"currency": "usd",
"active": true,
"metadata": {
"tier": "standard"
},
"recurring": {
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
}
}
]Changes
- breaking
queryrequest parameteractivelist-of-types was narrowed by removing typesnull - breaking
queryrequest parameterproduct_idlist-of-types was narrowed by removing typesnull - breaking
for the
queryrequest parameteractive, the type changed from no type toboolean - info
for the
queryrequest parameterproduct_id, the type was generalized from no type tostring
- breaking
- info
the security scope
read_onlywas added to the endpoint's security schemePersonalAccessTokenAuth - info
the security scope
full_accesswas removed from the endpoint's security schemePersonalAccessTokenAuth
- info