Create PrestaShop Specific Price
ps_create_specific_priceCreate product-level price rules to apply percentage or amount discounts by date range, customer group, country, and minimum quantity.
Instructions
Create a specific price rule (product-level promotion).
⚠️ Requires PS_READONLY=false and POST enabled on the PrestaShop Webservice key.
Args:
id_product: Product ID (required)
reduction: Reduction value (required)
reduction_type: "percentage" or "amount" (required)
from: Start date (ISO YYYY-MM-DD, optional)
to: End date (ISO YYYY-MM-DD, optional)
id_group: Customer group ID (0 = all groups)
id_country: Country ID (0 = all countries)
from_quantity: Minimum quantity for the price to apply (default: 1)
Returns: Created specific price ID.
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": {
"id_product": "<id_product>",
"reduction": "<reduction>",
"reduction_type": "<reduction_type>"
},
"name": "ps_create_specific_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date | |
| from | No | Start date | |
| id_group | No | Customer group ID (0=all) | |
| reduction | Yes | Reduction value | |
| id_country | No | Country ID (0=all) | |
| id_product | Yes | Product ID | |
| from_quantity | No | Minimum quantity | |
| reduction_type | Yes | Type of reduction | |
| confirmation_token | No | Confirmation token |