shopify_create_price_rule
Create a Shopify price rule to set up a targeted discount code for a customer segment, with percentage or fixed amount values and optional usage limits.
Instructions
Create a Shopify price rule (the engine behind a discount code). Use to roll out a targeted promotion for a segment after tagging.
Args:
title (required): Internal price-rule title.
value_type (required): One of: percentage, fixed_amount.
value (required): Discount value as a string (e.g. '-15' for 15% off, '-10.00' for $10 off).
starts_at: ISO-8601 start datetime (defaults to now).
ends_at: ISO-8601 end datetime (omit for open-ended).
usage_limit: Maximum total uses across all customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| value_type | No | ||
| value | No | ||
| starts_at | No | ||
| ends_at | No | ||
| usage_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |