list_promo_codes
List the redeemable codes assigned to a Mailchimp promo rule, returning each code string, usage count, and redemption URL.
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).
Authenticated via API key. Max 10 concurrent requests. Read-only, safe to retry.
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 |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes | ||
| count | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |