Sign in

Create price rule

documented

Create a discount price rule.

POST /admin/api/2026-01/price_rules.jsonDiscountsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$shop_domain}}.myshopify.com/admin/api/2026-01/price_rules.json" \
  -X POST \
  -H "X-Shopify-Access-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"price_rule":{"title":"{{$title}}","target_type":"{{$target_type}}","target_selection":"{{$target_selection}}","allocation_method":"{{$allocation_method}}","value_type":"{{$value_type}}","value":"{{$value}}","starts_at":"{{$starts_at}}","ends_at":"{{$ends_at}}","customer_selection":"{{$customer_selection}}"}}'
Create price rule · Shopify · OpenIntegrations