Create Stripe price
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Creates a one-time or recurring price for the product identified by product_id.
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.
Requires write access to the app. Workspace viewers cannot call this operation.
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.
Request body
Example request
{
"product_id": "prod_T7mK2p9Q4r6S8v",
"unit_amount": 2500,
"currency": "usd",
"recurring_interval": "month",
"recurring_interval_count": 1,
"metadata": {
"tier": "standard"
}
}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
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
added the required property
to the response with the status
- info