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.
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 |