create_contract_discount
Assign a discount configuration to a contract using its name and contract number. Optionally set a custom percentage and validity period.
Instructions
Assign a discount configuration to a contract. The discount is identified by its configuration name and can be customized with a specific percentage and validity period.
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": {
"contractNumber": "<contractNumber>",
"discountConfigName": "<discountConfigName>"
},
"name": "create_contract_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| validTo | No | The end date of the discount validity in YYYY-MM-DD format. | |
| validFrom | No | The start date of the discount validity in YYYY-MM-DD format. | |
| contractNumber | Yes | The unique contract number to assign the discount to. | |
| discountPercent | No | The discount percentage to apply. If omitted, the default from the discount configuration is used. | |
| discountConfigName | Yes | The name of the discount configuration to assign. |