Update Product Variant
shopify.update_variant
ActionBusiness appsconnection required
Calls the Shopify API with the connection's credentials.
Change the price, sku or stock policy of one Shopify product variant.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Shopify
- Secret shape
- the Shopify Admin API access token
- Config it needs
- shop
- Resolved by
- config.connection_id, else node.connection_id
Configuration
8 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
variant_id Numeric id of the product variant to act on. | string | Yes | — | — | 808950810 |
price New price as a decimal string in the store's currency, e.g. '19.99'. | string | No | — | — | 19.99 |
compare_at_price Crossed-out 'was' price as a decimal string, or empty to clear it. | string | No | — | — | — |
sku New stock keeping unit. | string | No | — | — | — |
barcode New barcode (ISBN, UPC, GTIN). | string | No | — | — | — |
inventory_policy What happens when the variant runs out: 'deny' stops sales, 'continue' allows overselling. | string | No | — | one of "deny", "continue" | — |
taxable Whether tax is charged on this variant. | boolean | No | — | — | — |
variant Raw variant fields for anything not modelled above (weight, options, metafields). Merged last, so it wins on a conflict. | object | No | — | — | — |
- At least one of price, compare_at_price, sku, barcode, inventory_policy, taxable, variant must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"price": "19.99",
"variant_id": "808950810"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
variant The variant, as Shopify returned it. | object | — |
id Numeric id of the variant, as a string. | string | — |
{
"id": "",
"variant": {}
}Notes
- The store and the API version come from the connection: 'shop' (your-store.myshopify.com) and an optional 'api_version' that defaults to 2026-07. Auth is the Admin API access token, sent as X-Shopify-Access-Token.
- Lists page on an opaque cursor from Shopify's Link header, not on page numbers. Pass the 'page_info' a call returns back into the next call while 'has_more' is true; a request carrying page_info may only carry 'limit' and 'fields', so every other filter is ignored once you are paging.
- Shopify rate-limits with a leaky bucket (X-Shopify-Shop-Api-Call-Limit). A 429 fails the step with the bucket state and the Retry-After seconds in the message: put a control.delay in front of the node or lower 'limit'.
- Each write node also accepts the raw resource object for fields it does not model; that object is merged last and wins on a conflict.
- Stock levels are not editable here: use shopify.update_inventory_level or shopify.adjust_inventory_level against the variant's inventory item.
See Update Product Variant run in a workflow.
In a technical demo we add the Shopify connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.