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

Request Body

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
string
Specific SKU to plan for. If omitted, plans all inventory items.
string
Location ID for location-specific planning
object
Planning time horizon
object
Planning-specific parameters

Response

string
Unique identifier for this planning run
string
Type of planning performed
string
ISO 8601 timestamp of when the plan was generated
array
Array of planning results per inventory item
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