My Products
Help

Branch redirect HTML does not seem to be working

by ReinderReinders (Updated ‎04-04-2023 14:45 by ReinderReinders VISMA )

- Performed an API call to the /controller/api/v1/branch/{branchNumber} endpoint using the Swagger UI (Service API) with a valid number

- The response is HTML with a redirect in it: (not a 404 so a Branch is found)

ReinderReinders_0-1680612129404.png

- Put the HTML into a HTML document and opened it.

- The redirect opens the Main page of Visma.net ERP, but does not correctly route to the Branch page?

ReinderReinders_1-1680612278341.png

 

I am not sure if this was intended, but I would expect it to open the Branch page.

3 REPLIES 3

by ReinderReinders

ohh this is cute, you get the redirect if you enter the full Number field with whitespaces "1A   " and a regular response if you use "1A":

ReinderReinders_1-1680613007909.png

Nice hidden feature

by Magnus Johnsen

Hi,

Interesting, we are not able to reproduce the issue, on our end it looks like this:
2023-04-04 14_51_46-Visma.net Integrations Documentation - Brave.png

Could you also try with a branch you know doesn't exist?

Nonexistent branch returns a 404:

ReinderReinders_0-1680612928815.png