POST api/master/AddProduct
Body parameters
id |
|
string |
|
name |
|
string |
|
TAX |
|
string |
|
price |
|
decimal |
|
Request formats
{
"products":[
{
"id":"123247",
"name":"Artikel 123458",
"TAX":"22",
"price":"100.23"
}
]
}
Response information
Error formats
Error |
{"status":"1","description":"Invalid JSON"}
|
|
|
Error |
{"status":"1","description":"id 123247 - the Article with this id already exists." } |
|
|
Error |
{"status":"1","description":"SQL ERROR insert into VSI_ARTIKLI"} |
|
|
Error |
{"status":"1","description":"SQL ERROR insert into VSI_ARTDOD"} |
|
|
Confirmation response
Success |
id |
|
|
Success |
id_MIT |
|
|
{
"products":[
{
"id":"123247",
"id_MIT":"654322"
}
]
}
|
|
|
|