Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Stage an update to a product variant as a change request.
curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/variants/variant_01HXYZ' \ -H 'Authorization: Bearer <token>' \ -H 'x-seller-id: <seller_id>' \ -H 'Content-Type: application/json' \ -d '{"sku": "ACME-SHIRT-M-V2", "weight": 200}'
const { product_change } = await client.vendor.products.$id.variants.$variant_id.mutate({ $id: "prod_01HXYZ", $variant_id: "variant_01HXYZ", sku: "ACME-SHIRT-M-V2", weight: 200, })
{ "product_change": { "id": "prodch_01HXYZ", "product_id": "prod_01HXYZ", "status": "pending", "actions": [ { "id": "prodchact_01HXYZ", "action": "VARIANT_UPDATE", "details": { "variant_id": "variant_01HXYZ", "fields": { "sku": "ACME-SHIRT-M-V2" } }, "applied": false } ] } }
VARIANT_UPDATE
202 Accepted
product_change
{"Size": "M"}
Show properties
pending
confirmed
declined
canceled
id
action
details
ordering
applied