Skip to main content
POST
Create 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

app_id
string
required

ID of the Base44 app.

Body

application/json

Request to create a Stripe price.

product_id
string
required

Stripe product ID to price.

Example:

"prod_T7mK2p9Q4r6S8v"

unit_amount
integer
required

Amount in the currency's smallest unit. For USD, 2500 represents $25.00.

Example:

2500

currency
string
default:usd

Three-letter ISO 4217 currency code. Converted to lowercase before sending to Stripe. Defaults to usd.

Example:

"usd"

recurring_interval
string | null

Billing interval. Use day, week, month, or year. Omit it or send null for a one-time price. Defaults to null.

Example:

"month"

recurring_interval_count
integer
default:1

Number of billing intervals between charges. Used only when a recurring interval is supplied. Defaults to 1.

Example:

1

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.

Example:

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