API referenceProducts
Update a product
PATCH
Change the status, prices or stock. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.
storeKeyheader
AuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
productId*stringThe product id or handle
Idempotency-Key?stringMakes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.
Match
^[!-~]+$Length
1 <= length <= 255application/json- body
status?stringValue in
"active""draft""archived"variants?array<>OK
application/json- response
data*curl -X PATCH 'https://starsell.app/api/v1/stores/string/products/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "handle": "string", "status": "active", "kind": "single", "title": "string", "titles": { "property1": "string", "property2": "string" }, "type": "string", "tags": [ "string" ], "source": "own", "currency": "string", "price_minor": 0, "image_url": "string", "images": [ "string" ], "url": "string", "admin_url": "string", "options": [ { "name": "string", "values": [ "string" ] } ], "channels": [ "string" ], "seo": { "title": { "property1": "string", "property2": "string" }, "description": { "property1": "string", "property2": "string" } }, "template_suffix": "string", "variants": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "sku": "string", "price_minor": 0, "compare_at_minor": 0, "stock": 0, "continue_selling": true, "option_values": [ "string" ], "barcode": "string", "weight_grams": 0, "position": 0 } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}