Coupons Update
tiendanube_coupons_updateUpdate an existing coupon in Tiendanube/Nuvemshop by ID, including its code, type, value, active status, dates, usage limits, and eligibility rules.
Instructions
Update a coupon. HTTP: PUT /coupons/{id} Required scope: write_coupons API version: 2025-03
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Coupon ID | |
| code | No | Coupon code text | |
| type | No | Coupon type (percentage | absolute | shipping) | |
| valid | No | Whether the coupon is active | |
| value | No | Percentage or amount as string; omit for 'shipping' coupons | |
| end_date | No | End date (YYYY-MM-DD) | |
| max_uses | No | Maximum total uses | |
| products | No | Product IDs the coupon applies to | |
| min_price | No | Minimum cart subtotal | |
| categories | No | Category IDs the coupon applies to | |
| start_date | No | Start date (YYYY-MM-DD) | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body | |
| includes_shipping | No | Discount also applies to shipping | |
| max_uses_per_client | No | Maximum uses per client | |
| first_consumer_purchase | No | Only for a customer's first purchase | |
| combines_with_other_discounts | No | Can be combined with other discounts |