list_promo_codes
Retrieve promo codes attached to a specific promo rule for your Mailchimp e-commerce store. Get codes customers type at checkout, with details like usage count and enabled status.
Instructions
List the redeemable codes attached to a promo rule (e.g. 'SUMMER20', 'VIPONLY').
Codes are what customers type at checkout. They redeem the discount defined by the rule. A single rule can have many codes (e.g. one per customer segment).
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID. Obtain from list_promo_rules. count: Number of codes to return (1-1000, default 20). offset: Pagination offset.
Returns: JSON with store_id, promo_rule_id, total_items, and promo_codes array. Each code: id, code (the string customers type), redemption_url, usage_count, enabled, created_at, updated_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| offset | No | ||
| account | No | ||
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |