Coupons Create
tiendanube_coupons_createCreate a discount coupon in Tiendanube by defining code, discount type (percentage, fixed amount, or shipping), value, dates, usage limits, and product/category scope.
Instructions
Create a discount coupon. HTTP: POST /coupons Required scope: write_coupons API version: 2025-03
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Coupon code text | |
| type | Yes | 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 |