Update product
Changed onUpdates an existing product
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource ID (e.g., "prod_3f9a1c0b7d2e4a6f8b1c3d5e") or slug (e.g., "my-product")
Request body
A product can't be set to active until it has at least one price variant. Create it as draft (or omit — draft is the default), add a price variant via POST /v1/price_variants, then PATCH the product to active.
Markdown shown at the top of the purchase confirmation email for this product, in place of the generic greeting and thank-you. Links, bold and lists render; Crevio styles it. Takes the same variables as a sequence step body ({{customer.first_name}}, {{customer.last_name}}, {{customer.email}}, {{business.name}}, {{product.name}}, {{order.product_names}}, {{tag.name}}, {{form.name}}, {{customer.fields.<key>}}). Empty or null brings back the generic greeting. The confirmation email itself can't be turned off or replaced, because it carries the buyer's access link.
MediaLibrary file ids (e.g. file_abc123) to set as the product gallery; the first is the cover. Replaces the existing gallery — an empty array clears it. Create files via POST /v1/files or POST /v1/images/generate.
Search-engine metadata for the product page, in the same shape it is returned. Omitted keys are left unchanged.
Set of key-value pairs you can attach to the object — store your own system's IDs or grouping labels. Keys max 40 chars (up to 50 keys), values stored as strings max 500 chars. On update, keys merge individually; set a key to null or "" to remove it. Echoed back on reads and in webhook payloads.
Example request
{
"images": [
"file_abc123"
]
}Response
Product updated
Deprecated: a product's page lives wherever its site puts it, so build links from your site's own routes.
Stripe tax code (txcd_XXXXXXXX); null uses the account's default
ID by default, full object when expanded
Changes
- info
added the required property
price_variants/items/cross_sellsto the response with the status - info
added the required property
tax_codeto the response with the status
- info
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
6 more changes in this revision
- warning