Skip to main content
POST
Create Stripe product

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 product.

name
string
required

Product name.

Example:

"Studio membership"

description
string | null

Product description. Defaults to null.

Example:

"Access to weekly classes."

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 product in the Stripe account configured for the app.

id
string
required

Stripe product ID.

Example:

"prod_T7mK2p9Q4r6S8v"

name
string
required

Product name.

Example:

"Studio membership"

description
string | null
required

Product description, or null when none is set.

Example:

"Access to weekly classes."

active
boolean
required

Whether the product is active.

Example:

true

images
string[]
required

Product image URLs. Neither Create nor Update Stripe product takes an images field, so this stays empty unless you add images directly in the Stripe dashboard for the account these credentials point to.

Example:
metadata
Metadata · object
required

Metadata stored on the product.

Example:
livemode
boolean
required

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

Example:

false