Prioritized Item Inventory for Sales¶
GET /api/sales-prioritized-item-inventory/{item_id}
GET /api/sales-prioritized-item-inventory/{item_id}/{warehouse_id}
Required privilege: Demand / View
Returns prioritized inventory allocation data for a specific item, showing how available stock is assigned across open sales orders. Optionally scoped to a single warehouse.
Path Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
item_id |
integer | Yes | Internal Item Master identifier |
warehouse_id |
integer | No | Internal Warehouse Master identifier - narrows to a single warehouse |
Response¶
{
"data": {
"rows": [
{
"SO List Number": "SO-2024-001",
"Customer Name": "Beta Distributors",
"SO Details Quantity": 200,
"SO Details Ship Date": "2024-03-22",
"SO Details Document Status": "Open",
"Warehouse Number": "WH-01",
"Priority": 1,
"Allocated Quantity": 200,
"Available Inventory": 350
}
]
}
}
| Field | Type | Description |
|---|---|---|
SO List Number |
string | Sales order reference |
Customer Name |
string | Customer name |
SO Details Quantity |
number | Quantity demanded |
SO Details Ship Date |
string | null | Expected ship date |
Priority |
integer | Priority rank (lower = higher priority) |
Allocated Quantity |
number | Inventory allocated to this line |
Available Inventory |
number | Remaining unallocated inventory |