get_code_discount
Retrieve a code discount using its GID or the customer-facing code string used at checkout.
Instructions
Get a code discount by its GID (e.g. 'gid://shopify/DiscountCodeNode/123') or by the code string customers enter at checkout.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_code_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | GID of the discount node (e.g. 'gid://shopify/DiscountCodeNode/123'). | |
| code | No | The customer-facing discount code string (e.g. 'SAVE10'). |