unpublish-product
Remove a product from one or more sales channels by publication IDs or exact names, returning its state on every channel and any user errors.
Instructions
Unpublish a product from one or more sales channels, by publicationIds or exact publicationNames (see get-publications). Returns the product's state on every channel afterwards, plus userErrors.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>"
},
"name": "unpublish-product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | Shopify product GID (e.g. gid://shopify/Product/123) | |
| publicationIds | No | Publication GIDs (from get-publications). Provide this OR publicationNames. | |
| publicationNames | No | Sales channel names exactly as returned by get-publications, e.g. ["Online Store", "Point of Sale"]. Provide this OR publicationIds. |