RE: Set item location via REST API when creating a new sales order.

I am able to set the location for a sales order, but attempting to set a location using internal id via “inventorydetail” does nothing but allow sales order creation and then attempting to use “inventorylocation” causes an error and does not allow sales order to be created. Is there a way to have the items in a sales order default to what the location is in the sales order or a way to set them via REST API sales order creation? Thanks!

When I go in and set the item location manually, if I get the JSON back for sales order with “expandSubResource” I get an “inventorydetail” section in the item json, but it only has a links object which is no help.

Could this be a permissions issue?

jsj Rookie Asked on July 24, 2020 in Items.
Add Comment
9 Answers

Hi Abbot,

This is the error message I receive from Netsuite when putting location in the item like you have above.

An issue occured creating a new sales order in Netsuite : {“type”:”https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1“,”title”:”Invalid value for field location in request body.”,”status”:400,”o:errorCode”:”USER_ERROR”} : 00000401 : order-export-00000401-20200724.json

Rookie Answered on July 24, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.