Create product
create_productAdds a product to the catalog
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Can be decimal, integer, empty or a string. | |
| stock | No | Set to 0 for infinite stock or disabled stock. | |
| status | No | Accepted values: Available, Available but not online, Pre-order, Sold Out, Invisible, Customers only, Price visible for customers, Choose property, Hide status, custom0, custom1, ..., custom9. | |
| category | No | The name of the category in the default language of the webshop. Not applicable for product variations. | |
| image:no | No | Include an image URL to upload product photos. The first image is the main photo, the next four are sub photos. When a product photo already exists, it will be replaced. After uploading, the images will be scaled proportionally according to the webshop settings, thumbnails will be created automatically and the image will be synchronized to multiple file servers. Make sure that each image has a valid URL, a maximum file size of 25MB, a valid extension (.jpg, .jpeg, .png or .gif) and a valid MIME type (image/jpeg, image/jpg, image/png, image/gif). | |
| name:lang | No | Product name. You can set names and descriptions for all languages, even if they are not activated in the webshop. Available languages (ISO 639-1): cs, da, de, el, en, es, fi, fr, it, ja, ko, nl, no, pl, pt, ro, ru, sv, tr, zh. | |
| productID | No | A unique and user defined identifier for the product. | |
| description:lang | No | Product description. Same languages as name. |