Create discount
loyverse_create_discountCreate a new discount in your Loyverse store. Send discount fields per the API; if a 400 error occurs, adjust fields and retry.
Instructions
Create a new discount in Loyverse (POST /discounts). Field names follow the Loyverse API v1.0 (developer.loyverse.com/docs). If a call fails with a 400, the error message from Loyverse is returned verbatim — adjust the fields and retry.
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": {
"body": "<body>"
},
"name": "loyverse_create_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The discount fields, per the Loyverse API schema. |