Create a price
Creates a new price attached to a product. The unit_amount and currency are
immutable after creation. Supply recurring to create a recurring price; omit it
for a one-time price. Set make_default: true to atomically designate this price
as the product’s default at creation time.
Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
A unique key that makes retries safe: the same key with the same request body returns the original response instead of repeating the operation.
255Body
The product this price belongs to (prod_…).
Billing amount in minor units (e.g. cents for USD).
Three-letter ISO currency code (e.g. USD).
Price type. Inferred from whether recurring is present when omitted.
one_time, recurring Display label for this price variant.
Custom key-value metadata. Max 50 keys; keys up to 40 characters; values up to 500 characters.
If true, atomically set this price as the product's default after creation.
Cadence for recurring prices. Omit for one-time prices.
Response
The created price.
Price id (price_…).
price Parent product (prod_…).
Billing amount in minor units.
Three-letter ISO currency code.
Price type.
one_time, recurring Display label for this price variant.
true for live mode, false for test mode.
Unix epoch seconds.
Unix epoch seconds.
Cadence for recurring prices; null for one-time prices.

