Skip to main content
POST
The Inventory Planning API uses machine learning to forecast demand and optimize stock levels across your inventory.

Request Body

planning_type
string
required
Type of planning to generate. Options:
  • demand_forecast - Predict future demand
  • reorder_optimization - Calculate optimal reorder points
  • seasonal_planning - Plan for seasonal variations
  • abc_analysis - Categorize inventory by value/velocity
sku
string
Specific SKU to plan for. If omitted, plans all inventory items.
location_id
string
Location ID for location-specific planning
time_horizon
object
Planning time horizon
parameters
object
Planning-specific parameters

Response

planning_id
string
Unique identifier for this planning run
planning_type
string
Type of planning performed
generated_at
string
ISO 8601 timestamp of when the plan was generated
items
array
Array of planning results per inventory item
summary
object
Overall planning summary

Planning Types

Demand Forecast

Predicts future demand using historical sales data and machine learning algorithms.

Reorder Optimization

Calculates optimal reorder points and quantities based on demand patterns and costs.

Seasonal Planning

Plans inventory levels for seasonal demand variations.

ABC Analysis

Categorizes inventory based on value and velocity for prioritized management.

Error Handling

Planning operations may fail if:
  • Insufficient historical data (less than 30 days)
  • Invalid parameters or constraints
  • SKU not found
  • Location not authorized

Webhooks

Subscribe to planning events to automate your inventory workflows:
  • inventory.planning.completed - Planning run completed
  • inventory.reorder.required - Item below reorder point
  • inventory.stockout.predicted - Stockout risk detected