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