fba_tier_headroom
Check how close a packed unit is to Amazon FBA size tier, weight and fee thresholds, then see which edge to shrink and by how much to lower fees.
Instructions
Show how close a packaged unit is to every FBA tier, weight and fee-band threshold, and what to shrink to pay less. (fba_analyze is the one-call version with the single best suggestion.)
Inputs: dims = 3 edges of the PACKED unit, any order ("12 x 9 x 3 in", [12, 9, 3] with dims_unit in/cm/mm, or a dict); weight = 1.4 / "1.4 lb" / "22 oz" (a bare number is POUNDS unless weight_unit says otherwise); price = listing price in USD. dims_sigma = 1-sigma error per edge in dims_unit (use sigma_in from fba_measure_package; 0.2 in for a LiDAR scan); weight_sigma_oz = scale error in ounces. margin_in is the safety margin in INCHES (default 0.5) and margin_pct the weight margin in percent (default 3); a threshold is "risky" inside either margin or within 2 sigma and "critical" within 1 sigma. When dimensional weight sets the shipping weight, a weight-band edge is also risky if a margin_in measuring error could cross it. max_shrink_pct caps how much any one edge may shrink (default 15%); min_dims (same form and unit as dims) is the smallest each edge can be because of the contents. ship_date (ISO, default today) picks peak or non-peak fees; units_per_month adds monthly savings.
Returns current tier and fee, thresholds sorted by risk, overall_risk, ranked suggestions (single- and
two-edge shrinks, each with apply_dims_in, new_total_usd, saving_per_unit_usd and per inch, confidence),
tier_drop_suggestions (shrinks that reach a cheaper tier with the safety margin), and weight_suggestions
(unit-weight cuts). Targets include the safety margin. Savings come from the same fee engine as
fba_fee_estimate. detail="summary" (default) adds a short caveats list; "full" adds the assumptions list.
Estimate only; Amazon measures the packed unit itself and its measurement governs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dims | Yes | ||
| price | Yes | ||
| detail | No | summary | |
| weight | Yes | ||
| min_dims | No | ||
| dims_unit | No | ||
| margin_in | No | ||
| ship_date | No | ||
| dims_sigma | No | ||
| margin_pct | No | ||
| weight_unit | No | ||
| max_shrink_pct | No | ||
| units_per_month | No | ||
| weight_sigma_oz | No | ||
| include_weight_options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||