ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/stock/levels/[id]/route
GET
Function GET
GET
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
id
:
string
;
warehouseId
:
string
;
productId
:
string
;
product
:
|
{
category
:
{}
|
null
;
unitOfStock
:
{}
|
null
}
&
{}
|
{
category
:
{}
|
null
;
unitOfMeasure
:
{}
|
null
}
&
{}
|
null
;
warehouse
:
{}
;
productType
:
string
;
currentStock
:
number
;
stats
:
{
currentStock
:
number
;
minStockLevel
:
any
;
maxStockLevel
:
any
;
reorderPoint
:
any
;
totalMovements
:
number
;
lastMovementDate
:
Date
;
averageDailyConsumption
:
number
;
daysOfStock
:
number
;
}
;
alerts
:
string
[]
;
stockStatus
:
string
;
movements
:
(
{
approver
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
finishedProduct
:
|
{
category
:
(...)
|
(...)
;
unitOfMeasure
:
(...)
|
(...)
}
&
{}
|
null
;
location
:
{}
|
null
;
operator
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
rawMaterial
:
|
{
category
:
(...)
|
(...)
;
unitOfStock
:
(...)
|
(...)
}
&
{}
|
null
;
warehouse
:
{}
;
}
&
{}
)
[]
;
}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
id
:
string
;
warehouseId
:
string
;
productId
:
string
;
product
:
|
{
category
:
{}
|
null
;
unitOfStock
:
{}
|
null
}
&
{}
|
{
category
:
{}
|
null
;
unitOfMeasure
:
{}
|
null
}
&
{}
|
null
;
warehouse
:
{}
;
productType
:
string
;
currentStock
:
number
;
stats
:
{
currentStock
:
number
;
minStockLevel
:
any
;
maxStockLevel
:
any
;
reorderPoint
:
any
;
totalMovements
:
number
;
lastMovementDate
:
Date
;
averageDailyConsumption
:
number
;
daysOfStock
:
number
;
}
;
alerts
:
string
[]
;
stockStatus
:
string
;
movements
:
(
{
approver
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
finishedProduct
:
|
{
category
:
(...)
|
(...)
;
unitOfMeasure
:
(...)
|
(...)
}
&
{}
|
null
;
location
:
{}
|
null
;
operator
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
rawMaterial
:
|
{
category
:
(...)
|
(...)
;
unitOfStock
:
(...)
|
(...)
}
&
{}
|
null
;
warehouse
:
{}
;
}
&
{}
)
[]
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...