My Products
Help
Timo_O
CONTRIBUTOR ***

nextGen-Api: Posting Salesorder, fields 'shipVia and 'shipTermsId'

by Timo_O (Updated ‎27-10-2022 13:28 by Yıldırım VISMA )
Status: New

Hi,

 

when adding a new SalesOrder via https://salesorder.visma.net/api/v3/SalesOrders (without giving the fields 'shipVia' and 'shipTermsID' in request)  these field values become empty in the new Order.

I expected that these fields would get default values from the orders Customers Location (fields 'CCarrierID', 'CShipTermsID').

 

If I do add SalesOrder from UI  or via API  https://integration.visma.net/API/controller/api/v2/salesorder these fields are filled with values from the Customers Location.

 

Is it possible to get nextGenApi work in the same way as version V2?

 

Or is it possible to give fields  'shipVia and 'shipTermsId' in the request body in nextGen?

Did not find these fields in the nextGen SalesOrders Swagger documentation.

 

Regards, Timo

3 Comments
erik-kle
PARTNER
by erik-kle

Both shipVia and shipTermsId are crucial for many of our webshop integrations. Will this be available in the NewSalesOrderCommand before closing of v2?

Timo_O
CONTRIBUTOR ***
by Timo_O

Hi,

shipViaId and shipTermsId default values fields seems to be filled with values from the Customers Location now.

These filelds seems to be visible in swagger documentation now, but they do not move into new SalesOrder.

Joni Wolff
PARTNER
by Joni Wolff (Updated ‎05-04-2023 13:29 by Joni Wolff PARTNER )

Hi

The Ship via and Shipping terms are available now. Can be found under shipping:

 "shipping": {
        "shipViaId""DHL",
        "termsId""DAT"
  }
 
If not provided, and customer location has default values, the fields will be set with the default values.