ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/mobile/contacts/fournisseurs/[id]/route
GET
Function GET
GET
(
req
:
NextRequest
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
success
:
boolean
;
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
id
:
string
;
code
:
string
;
name
:
string
;
email
:
string
|
null
;
phone
:
string
|
null
;
website
:
string
|
null
;
type
:
string
;
currency
:
|
{
id
:
string
;
code
:
string
;
symbol
:
string
;
name
:
string
}
|
null
;
stats
:
{
totalCommandes
:
number
;
"totalMatieresPremières"
:
number
;
totalMouvements
:
number
;
totalAchats
:
number
;
commandesParStatut
:
Record
<
string
,
number
>
;
}
;
addresses
:
{
id
:
string
;
type
:
string
;
name
:
string
|
null
;
street
:
string
|
null
;
city
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
country
:
string
|
null
;
isDefault
:
boolean
;
}
[]
;
contacts
:
{
id
:
string
;
firstName
:
string
;
lastName
:
string
;
position
:
string
|
null
;
email
:
string
|
null
;
phone
:
string
|
null
;
mobile
:
string
|
null
;
isDefault
:
boolean
;
isActive
:
boolean
;
notes
:
string
|
null
;
}
[]
;
legalIdentifiers
:
{
id
:
string
;
type
:
string
;
value
:
string
;
country
:
string
|
null
;
isActive
:
boolean
;
}
[]
;
files
:
{
id
:
string
;
filename
:
string
;
url
:
string
;
mimetype
:
string
;
size
:
number
;
category
:
string
|
null
;
createdAt
:
Date
;
}
[]
;
rawMaterials
:
{
id
:
string
;
code
:
string
;
name
:
string
;
cost
:
number
;
minStockLevel
:
number
;
maxStockLevel
:
number
|
null
;
}
[]
;
recentPurchaseOrders
:
{
id
:
string
;
number
:
string
;
orderDate
:
Date
;
expectedDate
:
Date
|
null
;
status
:
string
;
totalAmount
:
number
;
}
[]
;
recentStockMovements
:
{
id
:
string
;
type
:
StockMovementType
;
quantity
:
number
;
date
:
Date
;
reference
:
string
;
}
[]
;
isActive
:
boolean
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
;
timestamp
:
string
;
}
,
>
,
>
GET /api/mobile/contacts/fournisseurs/[id]
Récupère tous les détails d'un fournisseur spécifique
Parameters
req
:
NextRequest
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
success
:
boolean
;
error
:
string
;
message
:
string
}
>
|
NextResponse
<
{
success
:
boolean
;
message
:
string
;
data
:
{
id
:
string
;
code
:
string
;
name
:
string
;
email
:
string
|
null
;
phone
:
string
|
null
;
website
:
string
|
null
;
type
:
string
;
currency
:
|
{
id
:
string
;
code
:
string
;
symbol
:
string
;
name
:
string
}
|
null
;
stats
:
{
totalCommandes
:
number
;
"totalMatieresPremières"
:
number
;
totalMouvements
:
number
;
totalAchats
:
number
;
commandesParStatut
:
Record
<
string
,
number
>
;
}
;
addresses
:
{
id
:
string
;
type
:
string
;
name
:
string
|
null
;
street
:
string
|
null
;
city
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
country
:
string
|
null
;
isDefault
:
boolean
;
}
[]
;
contacts
:
{
id
:
string
;
firstName
:
string
;
lastName
:
string
;
position
:
string
|
null
;
email
:
string
|
null
;
phone
:
string
|
null
;
mobile
:
string
|
null
;
isDefault
:
boolean
;
isActive
:
boolean
;
notes
:
string
|
null
;
}
[]
;
legalIdentifiers
:
{
id
:
string
;
type
:
string
;
value
:
string
;
country
:
string
|
null
;
isActive
:
boolean
;
}
[]
;
files
:
{
id
:
string
;
filename
:
string
;
url
:
string
;
mimetype
:
string
;
size
:
number
;
category
:
string
|
null
;
createdAt
:
Date
;
}
[]
;
rawMaterials
:
{
id
:
string
;
code
:
string
;
name
:
string
;
cost
:
number
;
minStockLevel
:
number
;
maxStockLevel
:
number
|
null
;
}
[]
;
recentPurchaseOrders
:
{
id
:
string
;
number
:
string
;
orderDate
:
Date
;
expectedDate
:
Date
|
null
;
status
:
string
;
totalAmount
:
number
;
}
[]
;
recentStockMovements
:
{
id
:
string
;
type
:
StockMovementType
;
quantity
:
number
;
date
:
Date
;
reference
:
string
;
}
[]
;
isActive
:
boolean
;
createdAt
:
Date
;
updatedAt
:
Date
;
}
;
timestamp
:
string
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...
GET /api/mobile/contacts/fournisseurs/[id]
Récupère tous les détails d'un fournisseur spécifique