ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/opportunities/[id]/route
GET
Function GET
GET
(
request
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
actions
:
(
{
user
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
}
&
{}
)
[]
;
adv
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
client
:
|
{
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
company
:
{
id
:
string
;
name
:
string
}
|
null
;
createdBy
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
files
:
{
createdAt
:
Date
;
filename
:
string
;
id
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
forecastLines
:
(
{
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
finishedProduct
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
unitOfMeasure
:
|
{
id
:
string
;
name
:
string
;
symbol
:
(...)
|
(...)
}
|
null
;
}
&
{}
)
[]
;
forecasts
:
(
{
lines
:
(
{
currency
:
...
;
finishedProduct
:
...
;
unitOfMeasure
:
...
}
&
{}
)
[]
;
}
&
{}
)
[]
;
keyAccountManager
:
|
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
lead
:
|
{
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
progressReport
:
|
{
pricingModifier
:
|
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
technicalModifier
:
|
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
timeModifier
:
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
}
&
{}
|
null
;
salesOffers
:
{
annualAmount
:
number
|
null
;
annualVolume
:
number
|
null
;
createdAt
:
Date
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
finishedProduct
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
sellingPrice
:
number
;
unitOfMeasure
:
{
code
:
...
;
id
:
...
;
symbol
:
...
}
|
null
;
}
|
null
;
id
:
string
;
index
:
string
|
null
;
number
:
string
;
protoTotalPrice
:
number
;
referenceNumber
:
string
|
null
;
sampleTotalPrice
:
number
;
seriesPriceMultiplier
:
number
|
null
;
seriesPriceTiers
:
{
id
:
string
;
notes
:
string
|
null
;
price
:
number
;
quantity
:
number
;
sequence
:
number
;
}
[]
;
seriesToolPrice
:
number
;
seriesUnitPrice
:
string
|
null
;
stage
:
SalesOfferStage
;
status
:
SalesOfferStatus
;
validityDate
:
Date
|
null
;
version
:
string
|
null
;
}
[]
;
salesOrders
:
{
createdAt
:
Date
;
id
:
string
;
number
:
string
;
status
:
SalesOrderStatus
;
totalAmount
:
number
;
}
[]
;
technician
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
}
&
{}
,
>
,
>
Parameters
request
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
actions
:
(
{
user
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
}
&
{}
)
[]
;
adv
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
client
:
|
{
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
company
:
{
id
:
string
;
name
:
string
}
|
null
;
createdBy
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
files
:
{
createdAt
:
Date
;
filename
:
string
;
id
:
string
;
key
:
string
;
mimetype
:
string
;
size
:
number
;
url
:
string
;
}
[]
;
forecastLines
:
(
{
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
finishedProduct
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
unitOfMeasure
:
|
{
id
:
string
;
name
:
string
;
symbol
:
(...)
|
(...)
}
|
null
;
}
&
{}
)
[]
;
forecasts
:
(
{
lines
:
(
{
currency
:
...
;
finishedProduct
:
...
;
unitOfMeasure
:
...
}
&
{}
)
[]
;
}
&
{}
)
[]
;
keyAccountManager
:
|
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
lead
:
|
{
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
progressReport
:
|
{
pricingModifier
:
|
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
technicalModifier
:
|
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
timeModifier
:
{
email
:
string
;
id
:
string
;
name
:
(...)
|
(...)
}
|
null
;
}
&
{}
|
null
;
salesOffers
:
{
annualAmount
:
number
|
null
;
annualVolume
:
number
|
null
;
createdAt
:
Date
;
currency
:
{
code
:
string
;
id
:
string
;
symbol
:
string
}
|
null
;
finishedProduct
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
sellingPrice
:
number
;
unitOfMeasure
:
{
code
:
...
;
id
:
...
;
symbol
:
...
}
|
null
;
}
|
null
;
id
:
string
;
index
:
string
|
null
;
number
:
string
;
protoTotalPrice
:
number
;
referenceNumber
:
string
|
null
;
sampleTotalPrice
:
number
;
seriesPriceMultiplier
:
number
|
null
;
seriesPriceTiers
:
{
id
:
string
;
notes
:
string
|
null
;
price
:
number
;
quantity
:
number
;
sequence
:
number
;
}
[]
;
seriesToolPrice
:
number
;
seriesUnitPrice
:
string
|
null
;
stage
:
SalesOfferStage
;
status
:
SalesOfferStatus
;
validityDate
:
Date
|
null
;
version
:
string
|
null
;
}
[]
;
salesOrders
:
{
createdAt
:
Date
;
id
:
string
;
number
:
string
;
status
:
SalesOrderStatus
;
totalAmount
:
number
;
}
[]
;
technician
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
}
&
{}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...