Rest api

Hi all,

I am having some issues with the OrderQty on the POST side of the API

{

  "Company": "TEAGLE",
  "OrderNum": 377201,
  "CustNum": 6971,
  "OrderLine" : 5,
  "OrderQty": "100",
  "LineType": "PART",
  "PartNum": "SC1100"

}

It’s posting it perfectly fine but the response from the metadata is the OrderQty is: 0 but if you patch and update the OrderQty that way it will work fine! Can we not post OrderQty’s?

I have tried removing “” I don’t know any other method.

Kind regards,
Aaron.

Looking at Sales Order Entry, the quantity you enter on the UI is SellingQuantity, try doing a client trace to see what is being sent to the server and then replicate that using REST.

This resolved it.

Hi, thanks for this, it solved our problem too. What sort of speeds are you getting for large orders. Adding orders with 100’s of lines is taking far too long.