list_promo_codes
Retrieve all redeemable promo codes for a specific rule. Returns codes, usage counts, and redemption URLs for customer checkout.
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 |
|---|---|---|---|
| count | No | ||
| offset | No | ||
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |