Hi all, I'm trying to create a salesOrder with a o...
# suitetalkapi
j
Hi all, I'm trying to create a salesOrder with a orderStatus="B" (pending fulfillment status) and item.priceLevel="-1". Setting the orderStatus gives me an error message saying that is not a valid value and the value I set for priceLevel does not show up in NetSuite. What is the proper way to set these values via REST API?
b
that sounds correct
your request should look something like
Copy code
{
  "entity": {
    "id": "9"
  },
  "orderStatus": "B",
  "item": {
    "items": [
      {
        "item": {
          "id": "9"
        },
        "price": {
          "id": "-1"
        },
        "rate": 9
      }
    ]
  }
}
try looking at the sales order metadata to make sure you are using the correct ids and format