set_order_substitution
Toggles substitution allowance for specified order lines by fetching current state and updating only those that differ. Use to enable or disable substitutions on selected lines.
Instructions
Set whether substitution is allowed for specific order lines. Uses a toggle endpoint: fetches current state and only toggles lines that differ. WARNING: Not idempotent due to toggle semantics. Do NOT retry on timeout — check current state first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Order token | |
| lineIds | Yes | IDs of lines to update | |
| substitution | Yes | Desired substitution state (true = allow, false = disallow) |