My Products
Help
Ronald de Jong
CONTRIBUTOR **

Shipment confirmation report uses wrong layout when report is printed using the API endpoint

by Ronald de Jong

When a shipment has been confirmed, it is possible to get the Shipment Confirmation report using the API endpoint https://integration.visma.net/API/controller/api/v1/shipment/{shipmentNbr}/printShipmentConfirmation

However, the report layout that is used to create the confirmation report is not correct in that case. When a customer has a specific shipment confirmation report layout (set in "Mailing settings"), this layout is NOT used when the API endpoint is called to retrieve the shipment confirmation shipment report.

When the shipment confirmation report is printed using Visma.net itself, the correct confirmation report is printed.

5 REPLIES 5

by Sandra Anté

Hi,

Are you using the default report or have you replaced it under the customers "Mailing settings" with a custom report template? As far as we can see, if you have modified the default report, it should print the same report via the UI and via the API.

Kind regards
Sandra

Ronald de Jong
CONTRIBUTOR **

by Ronald de Jong

Hi, 

we have a custom report template under the customers "Mailing settings".
When we print this report via the UI we get a different lay-out as opposed to downloading the PDF via the API.

What information do you need to investigate this further?

Kind regards, Ronald


by Sandra Anté

Hi,

There has been an issue with this previously but it should have been resolved in version 8.27. 
We can confirm on our end that when you are using custom reports they are not printed correctly.

Please contact you local support for further investigation:
https://community.visma.com/t5/Forum-in-Developers-Visma-net/Contacting-Visma-Partner-Service-Visma-... 

Kind regards
Sandra

by Sandra Anté

Hi,

Which authentication method are you using?
Based on your method we can test it out on our end.

If I'm not mistaken, with the VNI authentication, the user that is used to actually print the reports is the inbuilt system user, which has english set as its default language.

Thank you!

Kind regards
Sandra Anté

Ronald de Jong
CONTRIBUTOR **

by Ronald de Jong

Hi Sandra, 

we are using Connect Authentication, not the (old) VNI authentication. 


Kind regards,

Ronald de Jong