Skip to main content

Overview

Demand history import stores weekly actual and forecast values used by planning workflows. Records are grouped by SKU, location, week start, and channel.

Quick Start

  1. Build records[] with weekly demand rows.
  2. POST to /api/import/demand-history.
  3. Poll /api/import/status/[jobId].

Field Reference

Validation Rules

  • records[] must be present and non-empty.
  • Each row must include skuId, locationId, and weekStarting.
  • Existing forecast rows are updated for matching model key (weekStarting + channel).

Common Errors