set_price_guardrails
Save the price guardrails for your workspace. max_change_pct, min_margin_pct and never_below_cost hold every final price your workspace is given, from compute_price and every other pricing call. band_lower_ratio and band_upper_ratio are only the range the optimizer and elasticity functions search when a call sends no minimum or maximum. This replaces the whole saved set: an omitted field takes its default, so read get_price_guardrails first and send every rule you want to keep. Needs a Last Price credential with routing write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_change_pct | No | Most a final price may move from the current price, up or down, in percent. Null (the default) for no limit. | |
| min_margin_pct | No | Least margin over the unit cost a call sends, in percent of the price. Null (the default) for no minimum. | |
| band_lower_ratio | No | Lowest price the optimizer and elasticity functions search, as a multiple of the current price. Defaults to 0.5. | |
| band_upper_ratio | No | Highest price the optimizer and elasticity functions search, as a multiple of the current price. Defaults to 2. | |
| never_below_cost | No | Never price below the unit cost a call sends. Defaults to true. |