offer discount
offer_discountRecords a discount on an invoice as none, percent, or fixed minor units; after sealing, apply changes only through approval with accept_invoice_change.
Instructions
Record a discount the freelancer is putting on the invoice. kind none uses value 0. kind percent takes a whole number from 1 to 100. kind fixed takes a whole number of minor units. After the invoice is sealed, a different discount is refused until accept_invoice_change applies an apply_discount suggestion. Do not invent a discount.
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": {
"invoiceId": "<invoiceId>",
"kind": "<kind>",
"value": "<value>",
"note": "<note>"
},
"name": "offer_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | Yes | ||
| value | Yes | ||
| invoiceId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |