Create Stripe price
<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.
Requires write access to the app. Workspace viewers cannot call this operation.
post/api/apps/{app_id}/payments/stripe/prices
Path parameters
app_idstring required
ID of the Base44 app.
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
Changed in 1 of the 14 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○