Create promocode
create_promocodeCreate a new promo code with discount value, validity dates, and type. Use uppercase letters and digits for the code, since the API rejects lowercase.
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. |