shopify_create_price_rule
Create a Shopify price rule to power discount codes, enabling targeted promotions for customer segments after tagging. Set percentage or fixed amount discounts, schedule start/end dates, and limit total uses.
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.
project_id: Authenticated Project UUID.
project_ref: Exact project correlation reference.
connector_account_ref: Project-bound connector account alias.
idempotency_key: Stable business-action identity.
effect: Claimed read or write effect; Spring verifies it.
approval_ref: Approved platform task UUID when resuming a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| value | No | ||
| effect | No | ||
| ends_at | No | ||
| starts_at | No | ||
| project_id | No | ||
| value_type | No | ||
| project_ref | No | ||
| usage_limit | No | ||
| approval_ref | No | ||
| idempotency_key | No | ||
| connector_account_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |