Hi, I am trying to create a system where my maintenance software creates an automatic order object for every bike maintenance I make. I am able to create a customer with REST API, it was an easy task, but to create an order is not working. This is the JSON I try to post to “orders”:
{
"socid":"133",
"type":"0",
"lines":[
{"qty":"1","fk_product":"4102"},
{"qty":"1","fk_product":"5785"}
],
"note_private":"API-order"
}
But instead of creating on order, all I get is this:
array(2) {
["error"]=>
array(2) {
["code"]=>
int(400)
["message"]=>
string(31) "Bad Request: date field missing"
}
["debug"]=>
array(2) {
["source"]=>
string(38) "api_orders.class.php:928 at call stage"
["stages"]=>
array(2) {
["success"]=>
array(5) {
[0]=>
string(3) "get"
[1]=>
string(5) "route"
[2]=>
string(9) "negotiate"
[3]=>
string(12) "authenticate"
[4]=>
string(8) "validate"
}
["failure"]=>
array(2) {
[0]=>
string(4) "call"
[1]=>
string(7) "message"
}
}
}
}
I am using 12.0.1. Does anyone have any idea what might be wrong there?