get_promo_rule
Retrieve a single promo rule by ID to inspect its full configuration before updating or to confirm existence 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.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"store_id": "<store_id>",
"promo_rule_id": "<promo_rule_id>"
},
"name": "get_promo_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |