My Products
Help
JohanFriedrichsen
CONTRIBUTOR **

Find order type numbering sequence?

by JohanFriedrichsen

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.

4 REPLIES 4
Joni Wolff
VISMA

by Joni Wolff

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.

Theis
CONTRIBUTOR ***

by Theis

Ahh true, sorry I didn´t catch that part in your question.

Theis
CONTRIBUTOR ***

by Theis

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

 

Theis_0-1737358242857.png

Theis_1-1737358493353.png

 

 

JohanFriedrichsen
CONTRIBUTOR **

by JohanFriedrichsen

Yes, but the API doesn't say which numbering sequence each order type uses.

 

The SalesOrdertype endpoint gives very limited information:

JohanFriedrichsen_0-1737378320422.png