SbPublicApiSalesForecastBatchRequest

snowbee.publicapi.SbPublicApiSalesForecastBatchRequest

A batch of sales forecasts from one planning run

batchIndexoptional

1-based position of this batch within the run. Set together with batchTotal or not at all.

  • Format: int32
Example12
batchTotaloptional

Number of batches in the run

  • Format: int32
Example140
extoptional

Partner-owned fields. Never interpreted by Snowbee.

Show dictionary values

Each dictionary key maps to .

generatedAtrequired

Timestamp of the planning run that produced every item in the batch. Identical for all batches of one run; a later run must have a later value.

  • Format: ISO 8681 timestamp
Example"2026-08-28T03:12:00Z"
itemCountrequired

Must equal the length of items

  • Format: int32
Example5000
itemsrequired
Show item fields

Sales forecast for one store and SKU. The item replaces the whole forecast held for that store and SKU.

ecomStoreNumberoptional

Ecom store number. Exactly one of retailStoreNumber and ecomStoreNumber must be set.

Example"9001"
extoptional

Partner-owned fields. Never interpreted by Snowbee.

Show dictionary values

Each dictionary key maps to .

horizonEndDaterequired

Last forecast day, an ISO 8601 calendar date. Must equal horizonStartDate plus quantities.length - 1 days; catches horizons of the wrong length.

  • Format: date
Example"2026-09-30"
horizonStartDaterequired

First forecast day, an ISO 8601 calendar date. No earlier than 7 days ago.

  • Format: date
Example"2026-09-01"
quantitiesrequired

Expected gross sales quantity per day from horizonStartDate to horizonEndDate inclusive, as decimal strings with at most 4 decimals. quantities[i] is the forecast for horizonStartDate plus i days.

Example["4.7","3.1","0","5.25"]
retailStoreNumberoptional

Retail store number. Exactly one of retailStoreNumber and ecomStoreNumber must be set.

Example"1001"
skuNumberrequired
Example"10025"
View raw schema
{
  "type": "object",
  "description": "A batch of sales forecasts from one planning run",
  "properties": {
    "batchIndex": {
      "type": [
        "null",
        "integer"
      ],
      "format": "int32",
      "description": "1-based position of this batch within the run. Set together with batchTotal or not at all.",
      "example": "12",
      "title": "Int"
    },
    "batchTotal": {
      "type": [
        "null",
        "integer"
      ],
      "format": "int32",
      "description": "Number of batches in the run",
      "example": "140",
      "title": "Int"
    },
    "ext": {
      "type": [
        "null",
        "object"
      ],
      "additionalProperties": {
        "type": "object",
        "title": "Any"
      },
      "description": "Partner-owned fields. Never interpreted by Snowbee.",
      "title": "Map<String,Any>"
    },
    "generatedAt": {
      "type": "string",
      "format": "ISO 8681 timestamp",
      "description": "Timestamp of the planning run that produced every item in the batch. Identical for all batches of one run; a later run must have a later value.",
      "example": "2026-08-28T03:12:00Z",
      "title": "ISO8681"
    },
    "itemCount": {
      "type": "integer",
      "format": "int32",
      "description": "Must equal the length of items",
      "example": "5000",
      "title": "Int"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/snowbee.publicapi.SbPublicApiSalesForecastItem"
      },
      "title": "List<SbPublicApiSalesForecastItem>"
    }
  },
  "required": [
    "generatedAt",
    "itemCount",
    "items"
  ],
  "title": "SbPublicApiSalesForecastBatchRequest"
}