Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

MIT Navodila

:

AddProduct

​​​POST api/master/AddProduct


Authorization


Bearer Token​​




​​Request information


Body parameters


​​Name ​Description ​Type ​Additional info
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

​​Name ​Description ​Type ​Additional information
​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

​​Name Description​ Type​ Additional information​
​Success id
​Success id_MIT ​​
 ​

{ "products":[ { "id":"123247", "id_MIT":"654322" } ] }