ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/suppliers/route
POST
Function POST
POST
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
addresses
:
{
city
:
string
|
null
;
country
:
string
|
null
;
id
:
string
;
isDefault
:
boolean
;
name
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
street
:
string
|
null
;
type
:
string
;
}
[]
;
buyer
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
contacts
:
{
email
:
string
|
null
;
firstName
:
string
;
id
:
string
;
isDefault
:
boolean
;
lastName
:
string
;
phone
:
string
|
null
;
position
:
string
|
null
;
}
[]
;
currency
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
}
|
null
;
legalIdentifiers
:
{
country
:
string
|
null
;
id
:
string
;
isActive
:
boolean
;
type
:
string
;
value
:
string
;
}
[]
;
}
&
{}
,
>
,
>
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
addresses
:
{
city
:
string
|
null
;
country
:
string
|
null
;
id
:
string
;
isDefault
:
boolean
;
name
:
string
|
null
;
postalCode
:
string
|
null
;
state
:
string
|
null
;
street
:
string
|
null
;
type
:
string
;
}
[]
;
buyer
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
contacts
:
{
email
:
string
|
null
;
firstName
:
string
;
id
:
string
;
isDefault
:
boolean
;
lastName
:
string
;
phone
:
string
|
null
;
position
:
string
|
null
;
}
[]
;
currency
:
|
{
code
:
string
;
id
:
string
;
name
:
string
;
symbol
:
string
}
|
null
;
legalIdentifiers
:
{
country
:
string
|
null
;
id
:
string
;
isActive
:
boolean
;
type
:
string
;
value
:
string
;
}
[]
;
}
&
{}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...