get_promo_code
Retrieve a promo code's settings and usage stats to verify its status and usage count before a campaign.
Instructions
Retrieve a single promo code by ID with its current settings and usage stats.
Use to check a code's usage_count before a campaign, or confirm a code is enabled. Use list_promo_codes to browse codes for a rule.
Authenticated via API key. Max 10 concurrent requests. Read-only, safe to retry. Returns 404 if any of store_id, promo_rule_id, or promo_code_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID the code is attached to. promo_code_id: Code ID to inspect.
Returns: JSON with id, code, redemption_url, usage_count, enabled, created_at, updated_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes | ||
| promo_code_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |