I'm trying to insert in sales order through suitescript and I always get an error on 'Location'. here's my request
{
"recordtype" : "salesorder",
"entity" : "142832",
"location" : {
"id":"395"
}
}
and this is the response
{
"error": {
"code": "USER_ERROR",
"message": "Please enter value(s) for: Location"
}
}
and I tried changing the location value for example
"location" : "390"
the result would be
{
"error": {
"code": "INVALID_KEY_OR_REF",
"message": "Invalid location reference key 390 for subsidiary <NULL>."
}
}