promotions_create
Create a promotion that makes a promo code redeemable by customers. Specify name, eligible apps, expiration date, hosting type, promotion type, and discount type.
Instructions
Create a new promotion. PUBLIC IMPACT: promo code becomes redeemable by customers. Required: name, eligibleApps, expirationDate, hostingType, promotionType, discountType.
📖 Spec (POST /catalog/partners/{partnerId}/promotions): https://developer.atlassian.com/platform/marketplace/rest/v1/api-group-promotions/#api-marketplace-catalog-partners-partnerid-promotions-post
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| maxUses | No | Required for shared promotions unless allowUnlimitedUses=true | |
| startDate | No | ISO datetime (YYYY-MM-DDTHH:mm:ssZ). Plain YYYY-MM-DD is auto-padded with T00:00:00Z by this tool. | |
| hostingType | Yes | ||
| discountType | Yes | ||
| eligibleApps | Yes | App keys this promotion applies to | |
| promotionType | Yes | ||
| expirationDate | Yes | ISO datetime (YYYY-MM-DDTHH:mm:ssZ). Plain YYYY-MM-DD is auto-padded with T00:00:00Z by this tool. | |
| customPromoCode | No | Cloud only; will be prefixed with autogen string for shared promos | |
| discountPercent | No | ||
| subscriptionType | No | Cloud only | |
| allowUnlimitedUses | No | ||
| allowedBillingCycles | No | Cloud only |