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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"eligibleApps": "<eligibleApps>",
"expirationDate": "<expirationDate>",
"promotionType": "<promotionType>",
"discountType": "<discountType>",
"hostingType": "<hostingType>"
},
"name": "promotions_create"
}
}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 |