create_discount_code
Set a customer-facing discount code for a price rule. Assigns a code like 'SAVE10' to an existing price rule ID.
Instructions
Set the customer-facing code for a basic GraphQL code discount node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price_rule_id | Yes | The price rule ID this code belongs to. | |
| code | Yes | The discount code string that customers enter at checkout (e.g. 'SAVE10'). |