Group rows before forecasting
Your table is one row per store per day, but you want a forecast per city —
every store in that city summed together. Declare the grouping in
hierarchies, then pick the level you want with selector:
Code
Post it to https://api.retrocast.com/v1-beta/forecast?model=t0-alpha.
model names the forecasting model and is required — without it the
request is rejected with missing field "model".
What each part does:
hierarchiessaysstoresits insidecity.selector: { "city": "any" }asks for one forecast per city. Every store in a city is summed into it.channelappears in neitherhierarchiesnorselector, so it is summed over too —onlineandin_storeare added together.
To get fewer series back, name the values instead of "any":
{ "city": ["Paris"] } returns Paris only, still summed across its stores
and channels.
You don't need to reshape your table or keep a separate rollup table. Send the rows you have and pick the level at request time.
What comes back
One row per (city, time step) — two cities over seven days, so 14 rows, trimmed here to the first two:
Code
identifiers carries only the dimensions that identify a row — here city
alone. store and channel are absent: those rows were summed together, so
there is no single value to report.
The request above sets no quantiles, so the response comes back with a
default spread that includes mean. Set quantiles yourself and you get
exactly the levels you asked for.

