create_promo_rule
Create a discount rule in a Mailchimp store, specifying amount, type (fixed or percentage), and target (per item, total, or shipping). Attach promo codes separately.
Instructions
Create a promo rule (discount mechanic) in a store. Attach codes to it afterwards via create_promo_code.
promo_rule_id is client-supplied. Common patterns: amount=20 + type='percentage' + target='total' for '20% off entire order'; amount=5 + type='fixed' + target='shipping' for '$5 off shipping'.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes.
Args: store_id: E-commerce store ID. promo_rule_id: Client-supplied unique ID for the rule. description: Internal description shown in Mailchimp UI. amount: Discount value. For type='percentage', a value between 0 and 100. type: 'fixed' for absolute amount or 'percentage' for percent off. target: 'per_item' (each item), 'total' (whole order), or 'shipping' (shipping cost only). enabled: Whether the rule is active. Default true. title: Optional public title. starts_at: Optional ISO 8601 start datetime (rule inactive before this). ends_at: Optional ISO 8601 end datetime (rule inactive after this).
Returns: JSON with id, title, description, amount, type, target, enabled, created_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes | ||
| description | Yes | ||
| amount | Yes | ||
| type | Yes | ||
| target | Yes | ||
| enabled | No | ||
| title | No | ||
| starts_at | No | ||
| ends_at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |