get_promo_rule
Retrieve a promo rule's full configuration by ID. Use to inspect settings before updating or confirm rule exists before attaching new codes.
Instructions
Retrieve a single promo rule by ID with its full configuration.
Use to inspect a rule's current settings before updating, or to confirm a rule exists before attaching new codes. Use list_promo_rules to browse and discover IDs.
Authenticated via API key. Max 10 concurrent requests. Read-only, safe to retry. Returns 404 if store_id or promo_rule_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID to inspect.
Returns: JSON with id, title, description, amount, type, target, enabled, starts_at, ends_at, created_at, updated_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |