Create PrestaShop Product
ps_create_productCreates a new product in PrestaShop using required name, tax-excluded price, and default category, with optional descriptions, SEO fields, reference, and active status.
Instructions
Create a new product.
⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.
Args:
name: Product name (required)
price: Price tax excluded (required)
id_category_default: Default category ID (required)
description: Long description (HTML allowed)
description_short: Short description (HTML allowed)
reference: Product reference code
active: Activate the product (default: true)
meta_title: SEO title
meta_description: SEO meta description
link_rewrite: URL slug (auto-generated from name if not provided)
lang_id: Language ID for multilang fields (default: "1")
Returns: Created product ID and summary.
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": {
"name": "<name>",
"price": "<price>",
"id_category_default": "<id_category_default>"
},
"name": "ps_create_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name | |
| price | Yes | Price tax excluded | |
| active | No | Activate the product | |
| lang_id | No | Language ID | 1 |
| reference | No | Product reference | |
| meta_title | No | SEO title | |
| description | No | Long description (HTML allowed) | |
| link_rewrite | No | URL slug | |
| meta_description | No | SEO meta description | |
| description_short | No | Short description | |
| confirmation_token | No | Confirmation token | |
| id_category_default | Yes | Default category ID |