POST api/SalesOrder/AddSalesOrder
Body parameters
document_id |
Import document Num. |
string |
|
customer_id |
|
string |
|
expected_date |
|
datetime |
|
order_type |
|
string |
|
article_id |
|
string |
|
location_id |
|
string |
|
quantity |
|
decimal |
|
price |
|
decimal |
|
VAT |
|
decimal |
|
unit |
|
string |
|
Request formats
{
"orders": [
{
"order":{
"document_id":"20132/14842",
"customer_id":"000001",
"expected_date":"2020-03-03",
"order_type":"Free text",
"line_items":[
{
"article_id":"123223",
"location_id":"IZD",
"quantity":"5.00",
"price":"14.88",
"VAT_rate":"22",
"unit":"KG"
}
]
}
}]}
Response information
Response formats
Error |
{"status":1,"description":"Incorret JSON structure."}
|
|
|
Error |
{"status":1,"description":"Customer ID does not exist","customers":'000196'} |
|
|
Error |
{"status":1,"description":"Article ID does not exist"} |
|
|
Error |
{"status":1,"description":"Some data is missing. All data is manadatory."} |
|
|
Error |
{"status":1,"description":"Unit code does not exist"} |
|
|
Error |
{"status":1,"descritption":"Location ID does not exist"} |
|
|
Error |
{"status":1,"descritption":"Location ID is not meant for products"} |
|
|
Confirmation response
Success |
{"status":0,"description":"OK"} |
|
|
|
|