Adds a new rule to a promotion. The type is the wire shorthand from GET /promotion_rules/types (e.g. currency, item_total, product). Fully-qualified Ruby class names are also accepted for backward compatibility.
Required scope: write_promotions (for API-key authentication).
Documentation Index
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Secret API key for admin access
JWT token for admin user authentication
rule created with preferences