cigchat_shop_discount_codes_update
Update an existing shop discount code by providing its ID and the fields to change, such as discount type, amount, validity period, and usage limits.
Instructions
Update discount code. [PUT /shop/discount-codes/{codeId}/update] Requires the "Manage Team" scope on the token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| type | No | Example: percentage,amount,free_shipping | |
| codeId | Yes | Discount Code Id | |
| min_qty | No | Example: 10 | |
| end_time | No | Example: 2022-12-27 00:00:00 | |
| min_price | No | Example: 100 | |
| start_time | No | Example: 2022-12-25 00:00:00 | |
| min_require | No | Example: none,price,qty | |
| once_per_order | No | Example: 0 | |
| discount_amount | No | Example: 5.05 | |
| has_usage_limit | No | Example: 0 | |
| max_usage_count | No | Example: 1 | |
| one_per_customer | No | Example: 0 | |
| discount_percentage | No | Example: 100 |