Upsert product
upsert_productCreate or update a product in e-conomic by its product number, specifying fields like name, price, barcode, and department to maintain accurate product data.
Instructions
Create or update a product by productNumber.
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": {
"productNumber": "<productNumber>",
"name": "<name>"
},
"name": "upsert_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product name | |
| barCode | No | Barcode | |
| costPrice | No | Cost price | |
| salesPrice | No | Sales price | |
| unitNumber | No | Unit number | |
| productNumber | Yes | Product number | |
| departmentNumber | No | Department number | |
| productGroupNumber | No | Product group number (required when creating) |