Create promocode
create_promocodeSet up discount promo codes for Yandex KIT orders or products by specifying code, title, discount value, dates, and type. Use uppercase Latin letters for codes to match API requirements.
Instructions
Create a new promocode. Required: code, title, discount_value ({value, type: PERCENT|VALUE}), promocode_dates ({start_date, optional end_date}) and type (ORDER|PRODUCTS). Optional: binding_mode, minimum_order_amount, max_usage, max_discount_amount, one_time_use, first_order_only, show_in_pdp. The live API rejects codes containing lowercase letters even though the spec documents no format constraint — use uppercase Latin letters and digits (e.g. WELCOME5). Call get_operation_schema("CreatePromocode") for the exact request shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promocode | Yes | Promocode record matching the CreatePromocodeRequest schema (see get_operation_schema("CreatePromocode")). Required: code, title, discount_value, promocode_dates, type. |