ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/materials/raw-materials/route
GET
Function GET
GET
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
rawMaterials
:
{
_count
:
{
billOfMaterials
:
number
}
;
barcode
:
string
|
null
;
category
:
{
id
:
string
;
name
:
string
}
|
null
;
code
:
string
;
conversionFactor
:
number
;
cost
:
number
;
createdAt
:
Date
;
description
:
string
|
null
;
height
:
number
|
null
;
id
:
string
;
imageUrl
:
string
|
null
;
internalReference
:
string
|
null
;
isActive
:
boolean
;
length
:
number
|
null
;
materialType
:
string
;
maxStockLevel
:
number
|
null
;
minStockLevel
:
number
;
name
:
string
;
productType
:
string
;
reorderPoint
:
number
;
rollLength
:
number
|
null
;
rollWidth
:
number
|
null
;
sellingPrice
:
number
;
supplier
:
|
{
code
:
string
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
id
:
string
;
name
:
string
;
}
|
null
;
supplierCode
:
string
|
null
;
supplierId
:
string
|
null
;
suppliers
:
{
id
:
string
;
isActive
:
boolean
;
isPreferred
:
boolean
;
moqTiers
:
{
id
:
string
;
leadTime
:
(...)
|
(...)
;
minQuantity
:
number
;
unitPrice
:
number
;
}
[]
;
notes
:
string
|
null
;
priority
:
number
;
supplier
:
{
code
:
string
;
currency
:
{
code
:
...
;
id
:
...
;
symbol
:
...
}
|
null
;
id
:
string
;
name
:
string
;
}
;
supplierCode
:
string
|
null
;
supplierDesignation
:
string
|
null
;
supplierId
:
string
;
}
[]
;
thickness
:
number
|
null
;
unitOfMeasure
:
|
{
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfPurchase
:
|
{
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
updatedAt
:
Date
;
usableLength
:
number
|
null
;
usableWidth
:
number
|
null
;
wastePercentage
:
number
|
null
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
[]
;
total
:
number
;
pagination
:
{
total
:
number
;
page
:
number
;
limit
:
number
;
pages
:
number
}
;
}
,
>
,
>
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
rawMaterials
:
{
_count
:
{
billOfMaterials
:
number
}
;
barcode
:
string
|
null
;
category
:
{
id
:
string
;
name
:
string
}
|
null
;
code
:
string
;
conversionFactor
:
number
;
cost
:
number
;
createdAt
:
Date
;
description
:
string
|
null
;
height
:
number
|
null
;
id
:
string
;
imageUrl
:
string
|
null
;
internalReference
:
string
|
null
;
isActive
:
boolean
;
length
:
number
|
null
;
materialType
:
string
;
maxStockLevel
:
number
|
null
;
minStockLevel
:
number
;
name
:
string
;
productType
:
string
;
reorderPoint
:
number
;
rollLength
:
number
|
null
;
rollWidth
:
number
|
null
;
sellingPrice
:
number
;
supplier
:
|
{
code
:
string
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
id
:
string
;
name
:
string
;
}
|
null
;
supplierCode
:
string
|
null
;
supplierId
:
string
|
null
;
suppliers
:
{
id
:
string
;
isActive
:
boolean
;
isPreferred
:
boolean
;
moqTiers
:
{
id
:
string
;
leadTime
:
(...)
|
(...)
;
minQuantity
:
number
;
unitPrice
:
number
;
}
[]
;
notes
:
string
|
null
;
priority
:
number
;
supplier
:
{
code
:
string
;
currency
:
{
code
:
...
;
id
:
...
;
symbol
:
...
}
|
null
;
id
:
string
;
name
:
string
;
}
;
supplierCode
:
string
|
null
;
supplierDesignation
:
string
|
null
;
supplierId
:
string
;
}
[]
;
thickness
:
number
|
null
;
unitOfMeasure
:
|
{
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfPurchase
:
|
{
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
updatedAt
:
Date
;
usableLength
:
number
|
null
;
usableWidth
:
number
|
null
;
wastePercentage
:
number
|
null
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
[]
;
total
:
number
;
pagination
:
{
total
:
number
;
page
:
number
;
limit
:
number
;
pages
:
number
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...