Update a Product Variant

Update the attributes of an existing product variant. Common operations include updating prices, adjusting stock quantities, changing SKUs, or modifying attribute values. The fields available for update vary by platform.

The response returns the updated variant in EcartAPI's unified schema.

Note: Refer to the platform-specific endpoint for updatable fields and validation rules.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Available platforms

This endpoint is supported by 13 platforms. Click on each platform to see its specific updatable fields and required parameters.

BigCommerce · eBay v1 · Ecart · Ecwid · Etsy · Jumpseller · PrestaShop · Shopify · Shoplazza · Squarespace · Tienda Nube · Weebly · Wix

Updatable fields vary by platform. Refer to the platform-specific endpoint for supported update fields and validation rules.

Path Params
string
required

The unique identifier of the parent product.

string
required

The unique identifier of the product variant.

Body Params

Variant fields to update. Send only the fields you want to change — omitted fields are not modified. Available fields vary by platform.

string

Updated SKU code for this variant.

number

Updated variant price.

number

Updated compare-at price. Set to null to remove the strikethrough price.

integer

Updated inventory quantity for this variant. For multi-location stores, use the Locations & Inventory endpoint.

number

Updated variant weight.

string

Updated barcode value (EAN, UPC, ISBN, etc.).

attributes
array of objects

Updated attribute name-value pairs for this variant.

attributes
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json