curl --request GET \
--url https://app.solya.app/api/intelligence/sales-forecasts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.solya.app/api/intelligence/sales-forecasts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.solya.app/api/intelligence/sales-forecasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.solya.app/api/intelligence/sales-forecasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.solya.app/api/intelligence/sales-forecasts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.solya.app/api/intelligence/sales-forecasts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/intelligence/sales-forecasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"algorithm": "prophet-v2",
"confidenceLevel": 0.87,
"forecastDate": "2025-10-01",
"granularity": "WEEK",
"lbQuantity": 8,
"quantity": 12,
"shopId": "shop-uuid-paris",
"sizeTaxonomyId": "size-uuid-m",
"ubQuantity": 16,
"variantId": "var-uuid-001"
},
{
"algorithm": "prophet-v2",
"confidenceLevel": 0.82,
"forecastDate": "2025-10-01",
"granularity": "WEEK",
"lbQuantity": 4,
"quantity": 7,
"shopId": "shop-uuid-lyon",
"sizeTaxonomyId": "size-uuid-l",
"ubQuantity": 11,
"variantId": "var-uuid-002"
}
],
"meta": {
"page": 1,
"pageSize": 20,
"total": 3500
}
}List sales forecasts
Returns a paginated list of sales forecasts with explicit date-range control (forecastDateFrom/forecastDateTo). Use this endpoint for arbitrary date windows, batch queries, or when you already know the exact date bounds. For rolling horizon-relative queries (e.g. ‘next 30 days’), prefer /api/forecasts which derives the window from a horizon parameter automatically. Forecasts are keyed per variant × size × shop × date combination. Supports single-value (variantId/shopId) or comma-separated multi-value (variantIds/shopIds) filters.
curl --request GET \
--url https://app.solya.app/api/intelligence/sales-forecasts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.solya.app/api/intelligence/sales-forecasts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.solya.app/api/intelligence/sales-forecasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.solya.app/api/intelligence/sales-forecasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.solya.app/api/intelligence/sales-forecasts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.solya.app/api/intelligence/sales-forecasts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.solya.app/api/intelligence/sales-forecasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"algorithm": "prophet-v2",
"confidenceLevel": 0.87,
"forecastDate": "2025-10-01",
"granularity": "WEEK",
"lbQuantity": 8,
"quantity": 12,
"shopId": "shop-uuid-paris",
"sizeTaxonomyId": "size-uuid-m",
"ubQuantity": 16,
"variantId": "var-uuid-001"
},
{
"algorithm": "prophet-v2",
"confidenceLevel": 0.82,
"forecastDate": "2025-10-01",
"granularity": "WEEK",
"lbQuantity": 4,
"quantity": 7,
"shopId": "shop-uuid-lyon",
"sizeTaxonomyId": "size-uuid-l",
"ubQuantity": 11,
"variantId": "var-uuid-002"
}
],
"meta": {
"page": 1,
"pageSize": 20,
"total": 3500
}
}Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Page number, 1-indexed (default: 1)
1 <= x <= 9007199254740991Number of items per page, max 100 (default: 20)
1 <= x <= 100Filter by a single variant ID (use variantIds for multiple)
Comma-separated list of variant IDs to filter by (e.g. uuid-1,uuid-2). Ignored when variantId is set.
Filter by size taxonomy ID
Filter by a single shop ID (use shopIds for multiple)
Comma-separated list of shop IDs to filter by (e.g. uuid-1,uuid-2). Ignored when shopId is set.
Forecast time granularity: DAY, WEEK, MONTH, or QUARTER. Note: WEEK granularity may return 0 rows when the data warehouse has not yet computed weekly aggregations for the requested date range.
DAY, WEEK, MONTH, QUARTER Inclusive lower bound on forecast date, ISO-8601 format YYYY-MM-DD (e.g. 2025-09-01)
^\d{4}-\d{2}-\d{2}$Inclusive upper bound on forecast date, ISO-8601 format YYYY-MM-DD (e.g. 2025-12-31)
^\d{4}-\d{2}-\d{2}$
