Create an order routing rule on a channel
Adds a rule to the channel’s routing list. The type is the wire shorthand from GET /order_routing_rules/types (e.g. preferred_location). Omitting position appends the rule at the end of the list. Each rule kind can appear at most once per channel — a duplicate type is rejected with a validation error.
Required scope: write_settings (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Body
Wire shorthand for the rule kind, from the order routing rule types endpoint.
"preferred_location"
1-based priority in the channel's rule list. Omitted on create, the rule goes last; a new position reorders the rest of the list around it.
Values for the rule kind's preference schema.
Response
rule created

