create_coupon_promotion
Creates a coupon for an existing promotion, with options to set code, quantity, and expiration date.
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 |