Update Stripe price
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Updates the price identified by price_id. Changes only the fields you send. Anything you leave out keeps its current value. Sending null has the same effect. The amount, currency, and recurring schedule cannot be changed here.
The response does not include the nickname even when it was updated.
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.
Path parameters
Stripe price ID in the configured account.
Stripe price ID in the configured account.
ID of the Base44 app.
ID of the Base44 app.
Request body
Example request
{
"metadata": {
"tier": "standard"
},
"nickname": "Monthly membership"
}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 18 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○
Of the 18 revisions, 1 has no diff computed.