I am using the Api and I can get and order and update the Internal Order Notes and that works. Can also update the Order Status.
Now trying to create a sticky note and update the picked quantity on an Order Line but these values do not get updated.
Is this possible ?
If so what is wrong with my code below ?
var netoStore = GetStoreManager();
var filter = new GetOrderFilter(id);
Order[] order = netoStore.Orders.GetOrder(filter);
Order[] updatedOrder = new Order[] {
new Order {
OrderID = order[0].OrderID,
OrderStatus = "Pick",
StickyNotes = order[0].StickyNotes,
OrderLine = order[0].OrderLine,
InternalOrderNotes = order[0].InternalOrderNotes
}
};
var stickyNote = new StickyNotes();
stickyNote.Title = "Test 1";
stickyNote.Description = "Test description";
updatedOrder[0].StickyNotes.Add(stickyNote);
updatedOrder[0].OrderLine[0].PickQuantity = 50;
updatedOrder[0].OrderLine[0].QuantityShipped = 60;
updatedOrder[0].InternalOrderNotes += "Test 1";
var result = netoStore.Orders.UpdateOrder(updatedOrder);