Update Replenishment Settings
PUT/api/amazon/:integrationInstance/replenishment/settings
Upsert replenishment settings. Omit product_id (or send null) to update the instance-level default; send a product_id to create/update a per-product override.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Fields:
- product_id: optional integer, must exist in products. Null = instance default
- target_days_of_supply: required integer 1-365. Days of FBA coverage to target
- buffer_days: required integer 0-365. Safety buffer added to the planning horizon
- velocity_window_days: required integer 1-365. Trailing sales window used to compute daily velocity
- case_pack_qty: optional integer >= 1. Suggestions round DOWN to whole case packs
- min_shelf_life_days: optional integer >= 0
- blackout_dates: optional array of dates
Authentication: Bearer token.
case_pack_rounding (string, optional) — how suggested quantities round to full cases for products with a case_pack_qty: always_round_down (default — never exceed the target/cap), always_round_up (ship full cases; may overshoot the coverage target but never the origin/supplier stock cap), or round_nearest.
case_pack_rounding accepts: always_round_up, always_round_down, round_nearest, none (send the exact suggested quantity, no case-pack rounding).
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.