Skip to main content
POST
Create Stripe price

Authorizations

api_key
string
header
required

Personal API key.

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. Use string values accepted by Stripe. Defaults to null. Omitted or null metadata leaves an existing value unchanged on update.

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: