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.
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'). |