Description
Create one or multiple inventory rules.
Permission bit: "inventory_rules.create"
Topic: Inventory Rules
Arguments
data: [InventoryRuleCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
Inventory rule components (custom JSON format)
Example: "[]"
inventory_strategy: InventoryStrategy
How inventory location should be picked
Whether to allow picking multiple locations per order
Example: true
Name of the inventory rule
Example: "New York Local Tax"
Valid when: name is not empty
Valid when: name's length doesn't exceed 250 characters
prefer_pickup_location: Boolean
Whether to consider customer selected pickup location before anything else
Example: true
Priority of the rule (rule with higher priority is to be evaluated first)
Example: 0
Whether to allow splitting bundle line items across multiple locations
Example: false
Whether to allow splitting individual line items across multiple locations
Example: false
zones: [ZoneCreate!]
Result
Preview (typescript)
Loading module