Update product (offer) availability by id
toggle_product_availabilityUpdate a product's availability to mark it as purchasable or unavailable. Provide the product ID and availability value to enable or disable buying.
Instructions
Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.
Updates a product (offer) availability
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": {
"product_id": "<product_id>"
},
"name": "toggle_product_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Exact private shop profile label; not a provider identity or authorization proof. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete current native JSON body; cannot mix with native body flags or payload_file. | |
| available | No | ||
| product_id | Yes | Native productId | |
| payload_file | No | Absolute regular non-symlink native JSON body file, at most1MiB. Cannot mix with payload or body flags. |