create_coupon_promotion
Creates a coupon for a specified promotion. Requires promotion ID and coupon code; optionally set expiration date and quantity.
Instructions
🟡 WRITE · creates data · Promotions · POST /v2/promotions/{pid}/coupons
Create a coupon in a promotion
Creates a coupon for the promotion specified by the provided promotion id. The endpoint response is the created coupon resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Promotion Id | |
| body | No |