My Products
Help
Anonymous
Not applicable

Setting line number when adding lines to exisitng SalesOrder

by Anonymous

Previously we've been able to specify lineNbr values when inserting new lines to existing SalesOrder via API.

I.e.:

PUT https://integration.visma.net/API/controller/api/v1/salesorder/111111
{"operation":"Insert","inventoryId":{"value":"SomeItemId"},"quantity":{"value":1},"unitPrice":{"value":1000},"discountAmount":{"value":0},"lineNbr":{"value":"2"}}

But now it always assigns lineNbr automatically regardless of whether we specify one in the request or not.

Which one is a correct behavior? 🙂

1 REPLY 1
Accepted solution
Yıldırım
VISMA

by Yıldırım

Hello, 

 

Line Numbers are always auto-increment and assigned by the DB with PUT / POST > Insert operations. 

They're required as a Line pointer in PUT > Update Line  operations.