Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.

Path Parameters

id
integer<int32>
required

The id of the referenced Warehouse.

Query Parameters

fields
enum<string>[]

Specify additional fields of the ReplenishmentPolicy object to be included in the response.

Available options:
basic,
all,
name,
is_active,
sort_order,
merchant_ids,
merchants,
product_profile_ids,
product_profiles,
product_profile_match_mode,
handling_class_ids,
handling_classes,
subject_readable,
location_profile,
demand_period_days,
demand_context_mode,
demand_contexts,
trigger_doi_days,
target_doi_days,
emergency_floor_qty,
doi_basis,
move_in_level,
slot_type_doi_overrides,
qualification_reason,
flagged_sku_count,
skipped_sku_count,
slotting_forbidden_count,
results_rebuild_status,
results_refresh_pending,
created_at,
updated_at
fields:merchants
enum<string>[]

Specify direct fields of selected Merchant objects to include under included.Merchant. Add merchants to the root fields parameter to return the relationship. type and id are always returned. Specify direct fields of an included Merchant object.

Available options:
code,
name,
status,
created_at,
updated_at
fields:product_profiles
enum<string>[]

Specify fields of selected ProductProfile objects to include under included.ProductProfile. Add product_profiles to the root fields parameter to return the relationship. type and id are always returned. Specify fields of an included ProductProfile object.

Available options:
basic,
all,
name,
code,
conditions,
conditions_readable,
matched_count,
classification,
created_at,
updated_at
fields:handling_classes
enum<string>[]

Specify direct fields of selected HandlingClass objects to include under included.HandlingClass. Add handling_classes to the root fields parameter to return the relationship. type and id are always returned. Specify direct fields of an included HandlingClass object.

Available options:
name,
code,
sort_order,
conditions,
conditions_readable,
matched_count,
classification,
created_at,
updated_at
fields:location_profile
enum<string>[]

Specify direct fields of the LocationProfile selected by each Policy. Location Tags and Slot Types remain available from the Profile's own endpoint. Specify direct fields of the included LocationProfile object.

Available options:
name,
description,
status,
member_count,
match,
match_readable,
active_revision,
pending_revision,
used_by,
created_at,
updated_at

Body

application/json

The configuration of a new Replenishment Policy. The warehouse comes from the path, and every derived or index-owned property of ReplenishmentPolicy is rejected if present.

name
string
required

The user-visible Policy name; must be unique within the warehouse.

Required string length: 1 - 255
Example:

"Fast Movers - Forward Pick"

location_profile_id
integer<int32>
required

The id of the Location Profile supplying the target group. It must belong to this warehouse and already have a published revision.

Required range: x >= 1
Example:

3

demand_period_days
integer
required

The Product Velocity window used to derive daily demand. Must equal one of the configured Product Velocity periods.

Required range: 1 <= x <= 65535
Example:

30

trigger_doi_days
number
required

The fallback coverage threshold used when no Slot Type DOI band resolves.

Required range: 0 <= x <= 999999.9999
Example:

7

target_doi_days
number
required

The target coverage used to calculate the required replenishment quantity. Must not be lower than trigger_doi_days; equal values are accepted.

Required range: 0 <= x <= 999999.9999
Example:

21

is_active
boolean
default:false

Whether the Policy participates in Product evaluation. Omitted, a Policy is created inactive and no Replenishment rebuild is requested.

sort_order
integer
default:0

Policy precedence; lower values are evaluated first, with id as the tie-break.

Required range: 0 <= x <= 65535
Example:

10

merchant_ids
integer[] | null

Merchant IDs the Policy selects. null or an empty list means every Merchant.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_ids
integer[]

Product Profile IDs the Policy selects. An empty list means Product Profiles do not restrict the subject.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_match_mode
enum<string>
default:any

How the selected Product Profiles are matched against a Product. The none mode requires at least one Product Profile.

Available options:
any,
all,
none
handling_class_ids
integer[]

Handling Class IDs the Policy selects. Each must be assigned to this warehouse. An empty list means Handling Classes do not restrict the subject.

Maximum array length: 100
Required range: x >= 1
Example:
demand_context_mode
enum<string>
default:all

all keeps the compatible order demand every Policy has always measured; include counts exactly the contexts in demand_contexts and requires at least one.

Available options:
all,
include
demand_contexts
enum<string>[]

The demand contexts an include Policy counts. transfer is internal relocation and replenishment activity rather than customer consumption, so including it can feed replenishment moves back into the demand that sizes them. other is reserved for later demand categories and is not emitted by classifier v1, so a selection of it alone measures no demand.

Maximum array length: 7
Available options:
customer_fulfillment,
bulk_fulfillment,
kitting,
transfer,
external_freight,
other,
unknown
emergency_floor_qty
number
default:0

Critical buffer quantity added to immediate demand when a typed Emergency is active. It does not activate Emergency by itself. Zero adds no buffer.

Required range: 0 <= x <= 99999999.9999Must be a multiple of 0.0001
doi_basis
enum<string>
default:policy

Whether to use only the Policy DOI band or resolve DOI by the resolved Slot Type. The policy basis stores no Slot Type DOI overrides.

Available options:
policy,
slot_type
move_in_level
enum<string>
default:case

The Product Unit Level a task moves in when the Product's override stores no move size: the one product of the SKU's quantity family declared at this level, converted to the SKU's units. It moves whole units when none or several are usable there, the SKU itself is declared at the level, or the conversion is not a quantity the SKU can hold, and plans nothing while the family's quantity BOMs contradict each other and the SKU, or another enabled product of the family, is declared at the level. whole_unit moves whole units of the Product regardless of the declared levels.

Available options:
whole_unit,
inner_pack,
case,
pallet
slot_type_doi_overrides
ReplenishmentPolicySlotDoiOverride · object[]

A list of Policy-specific Slot Type DOI bands used only when doi_basis is slot_type. The list is ignored and cleared when the basis is policy.

Response

The Replenishment Policy was created successfully.

resource
ReplenishmentPolicy · object

A Replenishment Policy configuration for one warehouse. The Policy selects Products by Merchant, Product Profile, and Handling Class, then applies Trigger and Target days-of-inventory thresholds to one Location Profile.

Example:
included
object

Lists of referenced objects included by specifying optional fields. See the selecting fields page for more information.

Example:
meta
object

Additional metadata pertaining to the response.