Creates a new promotion. code is required for single-code coupon promotions;
pass multi_codes: true with number_of_codes to auto-generate a batch.
Rules and actions can be created in the same request by passing arrays of
{ type, preferences, ... } rows. The server reconciles to the desired set:
new rows are built, existing rows (by id) are updated, omitted rows are removed.
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
all, any coupon_code, automatic promotion created with rules and actions