Create a delivery method rule
Adds a condition to a delivery method. type is a rule kind from the
delivery method rule types endpoint, and preferences takes the
values its schema declares.
Required scope: write_settings (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Body
A rule kind from the delivery method rule types endpoint.
"excluded_products_rule"
Defaults to true on create.
Values for the rule kind's preference schema.
Products an association-backed rule (excluded_products_rule) applies to. An empty list clears them.
Response
rule created
Rule type. Built-in: item_total_rule, weight_rule, excluded_products_rule, channel_rule, volume_rule, company_rule. Extensions may register more.
Settings of a delivery method rule, shaped by its type (see x-spree-preferences-by-type). A type an extension registers is a plain object, described by the schema its /types entry carries.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7

