Create or update discount
loyverse_upsert_discountCreate a discount or update an existing one by its ID, setting the discount type, amount or percent, and store availability for Loyverse POS.
Instructions
Create a discount, or update one by passing its 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": {
"name": "<name>",
"type": "<type>"
},
"name": "loyverse_upsert_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Omit to create. | |
| name | Yes | ||
| type | Yes | ||
| stores | No | ||
| discount_amount | No | For the amount types. | |
| discount_percent | No | For the percent types. | |
| restricted_access | No |