Skip to main content

Set Route Lead Time

PUT 

/api/amazon/:integrationInstance/fba-route-lead-times

Set a manual lead-time override for one route row, optionally make that route the region's primary route, and/or switch the account's "plan with p80" toggle.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Body fields:

  • region_code (string, required unless only plan_with_p80 is sent): an FBA region of the account (country code, or EU)
  • route_type (required with region_code): supplier | own_warehouse | third_party_warehouse | awd
  • source_id (nullable, integer): supplier id (supplier route) or warehouse id; null = the all-sources row. Must exist (422 Supplier not found / Warehouse not found)
  • manual_days (optional, nullable, integer 1–365): the override; null clears it; omit to leave it unchanged. On the all-sources row (source_id null) it applies only to sources of the route with no measurement (3+ samples) or override of their own
  • make_primary (optional, boolean): make this route the region's primary route (used by days-of-cover floors and FBA replenishment)
  • plan_with_p80 (optional, boolean): plan with the 80th percentile instead of the median for every route of the account

Returns the updated row (null data when only plan_with_p80 was sent) and the account's current meta (plan_with_p80, primary_routes).

Requires the fba_stock_floors.update permission.

Authentication: Bearer token.

The FBA minimums of the affected region (every region when plan_with_p80 changes) are re-evaluated immediately, without sending alerts.

Request​

Responses​

OK

Response Headers
    Content-Type