List new product forecasts
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/new_product_forecasts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/new_product_forecasts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/new_product_forecasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "72accf98-b5bf-431f-b9e5-db7a7fda5551",
"window_days": 90,
"horizon_days": 30,
"data_as_of": null,
"demand_source": {
"source": "order_lines",
"history_complete": false,
"history_as_of": null,
"fallback_reason": "history_not_built"
},
"stale": true,
"count": 100,
"total": 737,
"has_more": true,
"forecasts": [
{
"item": "MAT-00000411",
"description": "Small Leather Goods - Style 00000411",
"category": "SMALL LEATHER GOODS",
"own_history_days": 5,
"method": "like_item_category_mean",
"estimatedDailyRate": 8.4067,
"horizonTotal": 252.2,
"basisCount": 16,
"basisItems": [
"MAT-00000061"
],
"confidence": "medium"
}
],
"duration_ms": 80,
"notes": [
"Estimates for items with under 14 days of their own demand, from the average daily rate of similar items in the same category."
],
"object": "list",
"data": [
{
"item": "MAT-00000411",
"description": "Small Leather Goods - Style 00000411",
"category": "SMALL LEATHER GOODS",
"own_history_days": 5,
"method": "like_item_category_mean",
"estimatedDailyRate": 8.4067,
"horizonTotal": 252.2,
"basisCount": 16,
"basisItems": [
"MAT-00000061"
],
"confidence": "medium"
}
],
"next_cursor": "example-token"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Inventory
List new product forecasts
Cold-start estimates from same-category items.
Key scope: read (or execute). Answers the list object (object, data, has_more, next_cursor); the same rows stay under forecasts, deprecated.
GET
/
v1
/
inventory
/
new_product_forecasts
List new product forecasts
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/new_product_forecasts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/new_product_forecasts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/inventory/new_product_forecasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "72accf98-b5bf-431f-b9e5-db7a7fda5551",
"window_days": 90,
"horizon_days": 30,
"data_as_of": null,
"demand_source": {
"source": "order_lines",
"history_complete": false,
"history_as_of": null,
"fallback_reason": "history_not_built"
},
"stale": true,
"count": 100,
"total": 737,
"has_more": true,
"forecasts": [
{
"item": "MAT-00000411",
"description": "Small Leather Goods - Style 00000411",
"category": "SMALL LEATHER GOODS",
"own_history_days": 5,
"method": "like_item_category_mean",
"estimatedDailyRate": 8.4067,
"horizonTotal": 252.2,
"basisCount": 16,
"basisItems": [
"MAT-00000061"
],
"confidence": "medium"
}
],
"duration_ms": 80,
"notes": [
"Estimates for items with under 14 days of their own demand, from the average daily rate of similar items in the same category."
],
"object": "list",
"data": [
{
"item": "MAT-00000411",
"description": "Small Leather Goods - Style 00000411",
"category": "SMALL LEATHER GOODS",
"own_history_days": 5,
"method": "like_item_category_mean",
"estimatedDailyRate": 8.4067,
"horizonTotal": 252.2,
"basisCount": 16,
"basisItems": [
"MAT-00000061"
],
"confidence": "medium"
}
],
"next_cursor": "example-token"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Query Parameters
Response
OK