to get a personalized navigation.
to get a personalized navigation.
In SalesOrder v3 it is no longer possible to post an order a with supplied orderId if the order type is configured with automatic numbering. In previous versions it was possible to do this and the API did not use the orderId in those circumstances but in v3 the operation fails.
How can we find out if an order type has automatic numbering? We can't find a link between the order type and the NumberSequence.
If the order types number series have been setup to default be auto-generated, you can in the API use the field "overrideNumberSeries": true.
This way, with the order type, if created from UI it will get an order id generated by the system. And from the API, if the "overrideNumberSeries" is set true and a non-existing "orderId" is provided, the order will be created with the provided order id.
You can see it in the screen "Numbering Sequences", screen id: CS201010
There is two settings, allow manual numbering, which allows also in the user interface and then allow manual numbering on import.
Via API you can also get the settings, although, doesn´t show if manual numbering via import is checked.
Endpoint is: /controller/api/v1/numberSequence
Yes, but the API doesn't say which numbering sequence each order type uses.
The SalesOrdertype endpoint gives very limited information:
Copyright © 2022 Visma.com. All rights reserved.