ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/materials/raw-materials/[id]/route
GET
Function GET
GET
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
barcode
:
string
|
null
;
billingPolicy
:
string
;
category
:
{
code
:
string
|
null
;
id
:
string
;
name
:
string
}
|
null
;
categoryId
:
string
|
null
;
code
:
string
;
color
:
string
|
null
;
conversionFactor
:
number
;
cost
:
number
;
costPerUnit
:
string
|
null
;
createdAt
:
Date
;
createdByUserId
:
string
|
null
;
density
:
number
|
null
;
description
:
string
|
null
;
files
:
{
filename
:
string
;
id
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
id
:
string
;
imageKey
:
string
|
null
;
imageUrl
:
string
|
null
;
internalNotes
:
string
|
null
;
internalReference
:
string
|
null
;
isActive
:
boolean
;
length
:
number
|
null
;
maxStockLevel
:
number
|
null
;
minStockLevel
:
number
;
name
:
string
;
productType
:
string
;
reorderPoint
:
number
;
salesTax
:
{
id
:
string
;
name
:
string
;
rate
:
number
}
|
null
;
salesTaxId
:
string
|
null
;
sellingPrice
:
number
;
suppliers
:
{
id
:
string
;
isActive
:
boolean
;
isPreferred
:
boolean
;
moqTiers
:
{
id
:
string
;
leadTime
:
number
|
null
;
minQuantity
:
number
;
unitPrice
:
number
;
}
[]
;
notes
:
string
|
null
;
priority
:
number
;
supplier
:
{
code
:
string
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
id
:
string
;
name
:
string
;
}
;
supplierCode
:
string
|
null
;
supplierDesignation
:
string
|
null
;
supplierId
:
string
;
}
[]
;
tags
:
string
|
null
;
thickness
:
number
|
null
;
unitOfMeasure
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfMeasureId
:
string
|
null
;
unitOfPurchase
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfPurchaseId
:
string
|
null
;
unitOfStock
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfStockId
:
string
|
null
;
updatedAt
:
Date
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
barcode
:
string
|
null
;
billingPolicy
:
string
;
category
:
{
code
:
string
|
null
;
id
:
string
;
name
:
string
}
|
null
;
categoryId
:
string
|
null
;
code
:
string
;
color
:
string
|
null
;
conversionFactor
:
number
;
cost
:
number
;
costPerUnit
:
string
|
null
;
createdAt
:
Date
;
createdByUserId
:
string
|
null
;
density
:
number
|
null
;
description
:
string
|
null
;
files
:
{
filename
:
string
;
id
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
id
:
string
;
imageKey
:
string
|
null
;
imageUrl
:
string
|
null
;
internalNotes
:
string
|
null
;
internalReference
:
string
|
null
;
isActive
:
boolean
;
length
:
number
|
null
;
maxStockLevel
:
number
|
null
;
minStockLevel
:
number
;
name
:
string
;
productType
:
string
;
reorderPoint
:
number
;
salesTax
:
{
id
:
string
;
name
:
string
;
rate
:
number
}
|
null
;
salesTaxId
:
string
|
null
;
sellingPrice
:
number
;
suppliers
:
{
id
:
string
;
isActive
:
boolean
;
isPreferred
:
boolean
;
moqTiers
:
{
id
:
string
;
leadTime
:
number
|
null
;
minQuantity
:
number
;
unitPrice
:
number
;
}
[]
;
notes
:
string
|
null
;
priority
:
number
;
supplier
:
{
code
:
string
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
id
:
string
;
name
:
string
;
}
;
supplierCode
:
string
|
null
;
supplierDesignation
:
string
|
null
;
supplierId
:
string
;
}
[]
;
tags
:
string
|
null
;
thickness
:
number
|
null
;
unitOfMeasure
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfMeasureId
:
string
|
null
;
unitOfPurchase
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfPurchaseId
:
string
|
null
;
unitOfStock
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
|
null
}
|
null
;
unitOfStockId
:
string
|
null
;
updatedAt
:
Date
;
weight
:
number
|
null
;
width
:
number
|
null
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...