Skip to main content
PUT
Update Stripe price

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

price_id
string
required

Stripe price ID in the configured account.

app_id
string
required

ID of the Base44 app.

Body

application/json

Request to update a Stripe price.

active
boolean | null

Whether the price is active. Leave it out to keep the current value. Sending null has the same effect. Defaults to null.

Example:

false

metadata
Metadata · object | null

Metadata to store, as string key-value pairs. Stripe's metadata rules limit it to 50 keys, 40 characters per key, and 500 characters per value. Defaults to null. Leave it out to keep the current value. Sending null has the same effect.

Example:
nickname
string | null

New internal price label. Leave it out to keep the current value. Sending null has the same effect. Defaults to null.

Example:

"Monthly membership"

Response

The operation result.

A price in the Stripe account configured for the app.

id
string
required

Stripe price ID.

Example:

"price_1T7mK2Q4r6S8v9Ab"

product
string
required

Stripe product ID this price belongs to.

Example:

"prod_T7mK2p9Q4r6S8v"

unit_amount
integer | null
required

Amount in the currency's smallest unit, or null for pricing without a fixed integer unit amount.

Example:

2500

currency
string
required

Currency as a lowercase three-letter ISO 4217 code.

Example:

"usd"

active
boolean
required

Whether the price is active.

Example:

true

metadata
Metadata · object
required

Metadata stored on the price.

Example:
recurring
StripeCatalogRecurring · object | null
required

Billing schedule, or null for a one-time price.

Example:
livemode
boolean
required

true when the price is in the live catalog, false when it's in the test catalog.

Example:

false