Issue an individual coupon code
create_coupon_issuanceIssues individual coupon codes from existing ISSUED-distribution coupons for cart recovery, CRM, or personalized delivery; requires a stable idempotency key and does not create discount rules.
Instructions
Create an individual code from an existing coupon configured with ISSUED distribution, typically for cart recovery, CRM, or individualized delivery. This never creates discount rules. Requires COUPON_ISSUE and a stable idempotency key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | ||
| subject | Yes | ||
| metadata | No | ||
| shipping | No | ||
| coupon_id | Yes | Existing Cupom Center coupon configured with ISSUED distribution. | |
| valid_until | No | ||
| idempotency_key | Yes | Stable per-attempt key. Reuse it unchanged after a timeout. | |
| external_reference | Yes | Stable reference for the CRM, recovery, or distribution event. |