Create a promotion
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).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
application/json
Available options:
all, any Available options:
coupon_code, automatic Response
promotion created with rules and actions
Spree Admin SDK

