get_price_rule
Retrieve a Shopify price rule by its numeric ID to access discount details via the Admin API.
Instructions
Get a code discount by DiscountCodeNode ID. This compatibility tool replaces the older Price Rules workflow.
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": {
"price_rule_id": "<price_rule_id>"
},
"name": "get_price_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price_rule_id | Yes | The numeric Shopify price rule ID. |