Create discount
create_discountCreate a fixed or percentage discount code for a Lemon Squeezy store, with optional scheduling, duration, and redemption limits.
Instructions
Create a discount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| name | No | ||
| amount | No | ||
| account | No | Exact private profile label. Does not prove store ownership; mode applies to the main API key only. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete native JSON object body. JSON:API uses data/type/id/attributes/relationships. No mixing with body flags or payload_file. License credential is private configuration, never body input. | |
| duration | No | ||
| store_id | No | ||
| starts_at | No | ||
| test_mode | No | ||
| expires_at | No | ||
| amount_type | No | ||
| payload_file | No | Absolute regular non-symlink native JSON body file at most 1 MiB; cannot mix with payload or body flags. | |
| variants_ids | No | ||
| max_redemptions | No | ||
| duration_in_months | No | ||
| is_limited_redemptions | No | ||
| is_limited_to_products | No |