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
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).Create a product
POST /v1/products
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.