List replenishment params
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/replenishment_params \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/replenishment_params"
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/replenishment_params', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "84b6615d-f061-424c-b564-d150c822bd17",
"window_days": 90,
"service_level": 0.95,
"service_level_source": "default",
"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": 7378,
"has_more": true,
"replenishment_params": [
{
"item": "MAT-00000028",
"location": "1005",
"classification": "lumpy",
"mean_daily_demand": 12.1111,
"demand_std_dev": 46.2276,
"lead_time_days": 38,
"lead_time_source": "supplier_master",
"service_level": 0.95,
"safety_stock": 468.77,
"reorder_point": 928.99,
"on_hand": 0,
"below_reorder_point": true,
"review_period_days": 14,
"order_up_to_level": 1098.55,
"suggested_order_qty": 1099,
"above_max_after_rounding": false,
"min_stock": 0,
"max_stock": null,
"presentation_min": 0,
"order_constraints": {
"min_order_qty": 0,
"order_multiple": 1,
"case_pack": 1
},
"lead_time": {
"days": 38,
"source": "supplier_master",
"supplier_id": "b2e10740-bbed-48db-9eba-7d9fdacf41c3",
"master_days": 38
},
"parameters": {
"inventory.service_level": {
"value": 0.95,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
},
"inventory.review_period_days": {
"value": 14,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
}
}
}
],
"planning": {
"source": "on_request",
"reason": "no_stored_result"
},
"duration_ms": 192,
"notes": [
"Each row plans on the parameters in force for the item at the location (parameters names each value and where it came from: the account's..."
],
"object": "list",
"data": [
{
"item": "MAT-00000028",
"location": "1005",
"classification": "lumpy",
"mean_daily_demand": 12.1111,
"demand_std_dev": 46.2276,
"lead_time_days": 38,
"lead_time_source": "supplier_master",
"service_level": 0.95,
"safety_stock": 468.77,
"reorder_point": 928.99,
"on_hand": 0,
"below_reorder_point": true,
"review_period_days": 14,
"order_up_to_level": 1098.55,
"suggested_order_qty": 1099,
"above_max_after_rounding": false,
"min_stock": 0,
"max_stock": null,
"presentation_min": 0,
"order_constraints": {
"min_order_qty": 0,
"order_multiple": 1,
"case_pack": 1
},
"lead_time": {
"days": 38,
"source": "supplier_master",
"supplier_id": "b2e10740-bbed-48db-9eba-7d9fdacf41c3",
"master_days": 38
},
"parameters": {
"inventory.service_level": {
"value": 0.95,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
},
"inventory.review_period_days": {
"value": 14,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
}
}
}
],
"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 replenishment params
Safety stock, reorder point and on-hand per item and location. Read-only; planning in the answer says whether it is the latest stored result or one made for this request’s settings.
Key scope: read (or execute). Answers the list object (object, data, has_more, next_cursor); the same rows stay under replenishment_params, deprecated.
GET
/
v1
/
inventory
/
replenishment_params
List replenishment params
curl --request GET \
--url https://api.insightchain.ai/v1/inventory/replenishment_params \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/inventory/replenishment_params"
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/replenishment_params', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "84b6615d-f061-424c-b564-d150c822bd17",
"window_days": 90,
"service_level": 0.95,
"service_level_source": "default",
"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": 7378,
"has_more": true,
"replenishment_params": [
{
"item": "MAT-00000028",
"location": "1005",
"classification": "lumpy",
"mean_daily_demand": 12.1111,
"demand_std_dev": 46.2276,
"lead_time_days": 38,
"lead_time_source": "supplier_master",
"service_level": 0.95,
"safety_stock": 468.77,
"reorder_point": 928.99,
"on_hand": 0,
"below_reorder_point": true,
"review_period_days": 14,
"order_up_to_level": 1098.55,
"suggested_order_qty": 1099,
"above_max_after_rounding": false,
"min_stock": 0,
"max_stock": null,
"presentation_min": 0,
"order_constraints": {
"min_order_qty": 0,
"order_multiple": 1,
"case_pack": 1
},
"lead_time": {
"days": 38,
"source": "supplier_master",
"supplier_id": "b2e10740-bbed-48db-9eba-7d9fdacf41c3",
"master_days": 38
},
"parameters": {
"inventory.service_level": {
"value": 0.95,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
},
"inventory.review_period_days": {
"value": 14,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
}
}
}
],
"planning": {
"source": "on_request",
"reason": "no_stored_result"
},
"duration_ms": 192,
"notes": [
"Each row plans on the parameters in force for the item at the location (parameters names each value and where it came from: the account's..."
],
"object": "list",
"data": [
{
"item": "MAT-00000028",
"location": "1005",
"classification": "lumpy",
"mean_daily_demand": 12.1111,
"demand_std_dev": 46.2276,
"lead_time_days": 38,
"lead_time_source": "supplier_master",
"service_level": 0.95,
"safety_stock": 468.77,
"reorder_point": 928.99,
"on_hand": 0,
"below_reorder_point": true,
"review_period_days": 14,
"order_up_to_level": 1098.55,
"suggested_order_qty": 1099,
"above_max_after_rounding": false,
"min_stock": 0,
"max_stock": null,
"presentation_min": 0,
"order_constraints": {
"min_order_qty": 0,
"order_multiple": 1,
"case_pack": 1
},
"lead_time": {
"days": 38,
"source": "supplier_master",
"supplier_id": "b2e10740-bbed-48db-9eba-7d9fdacf41c3",
"master_days": 38
},
"parameters": {
"inventory.service_level": {
"value": 0.95,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
},
"inventory.review_period_days": {
"value": 14,
"origin": "default",
"scope": null,
"setBy": null,
"setAt": null
}
}
}
],
"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