49.5 is $49.50). unitAmount beside them is
the same price in minor units, the way Stripe stores it.
{product} is the product’s id or its exact name. Writes need a key whose
creator is a workspace admin. Creating a product charges nobody.
The Product object
string
month, year or one_time.string | null
The usage event a metered product bills by.
string
Whether Stripe has the price the catalog shows:
synced, pending (the push
hasn’t finished), out_of_sync (Stripe charges a different amount) or
unknown (Stripe couldn’t be read).integer | null
What Stripe charges, in minor units, when it differs or is known.
Create a product
POST /v1/products
string
required
Up to 200 characters.
string
Up to 2,000 characters.
number
Per unit, in major units.
string
An ISO code such as
usd.string
month, year or one_time. Matched against the options on your Products
object.string
For a metered product: the usage event it bills by.
Change a product
PATCH /v1/products/{product} takes the same fields, all optional. Omitted
fields stay as they are.
Archive a product
POST /v1/products/{product}/archive takes the product off the catalog and
returns {archived: true}. Quotes already made and Stripe subscriptions already
running keep what they had.
Errors
See Errors for the HTTP status each code maps to.