Create discount
create_discountCreate a discount by specifying title, value, date range, status, and binding mode. For the exact request shape, call get_operation_schema('CreateDiscount').
Instructions
Create a new discount. Required: title, discount_value ({value, type: PERCENT|VALUE}), discount_dates ({start_date, optional end_date}), status (ACTIVE|INACTIVE) and binding_mode (ALL_VARIANTS|SELECTED_VARIANTS). Call get_operation_schema("CreateDiscount") for the exact request shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discount | Yes | Discount record matching the CreateDiscountRequest schema (see get_operation_schema("CreateDiscount")). Required: title, discount_value, discount_dates, status, binding_mode. |