to get a personalized navigation.
to get a personalized navigation.
Hello,
I called the API Subaccount and POST it the following JSON object:
lema_3-1715070249750.png
The subaccount was created successfully
lema_4-1715070303913.png
Then I made a change in the description and called the PUT method with the following data:
lema_2-1715069638241.png
No changes are made since I get an IPPException that says nothing to me.
lema_0-1715069215941.png
- What does it mean and how can i solve it?
Hi,
As you can see in the image from the first message, I POSTed an object with the subaccount (with the whitespaces you are wondering). That POST worked fine since a new subaccount was created in visma.
EXPLANATION
We have defined our subaccount like in the image bellow (30 chars in total).
lema_0-1715166338751.png
TESTING
I tried to copy/paste the test subAccountNumber here but the blankspaces dissapeared so please replace the bold text with spaces so that it look like in the next image.
"533(3 spacesHere)228(17spacesHere)0(3spacesHere)" and i Called the GET method and got a response 200.
lema_2-1715166899481.png
I got a 200
lema_3-1715166988191.png
So do you still think is a bad subAccountNumber ??
Hi Iema,
The response message you received from the GET seems a bit odd to me. Have you tried returning GET with subaccountNumber "5332280" ?
- Suzdar
If I test 5332280 I get a 404
lema_3-1715334005778.png
lema_0-1715333732818.png
If I test the correct subaccount with spaces I get a 200
lema_2-1715333974268.png
lema_1-1715333943948.png
Hi Iema,
Can you show me your UI in ScreenId=CS202000&DimensionID=SUBACCOUNT? Also whats the companyID for this company?
Hi Iema,
This is not quite the screenshot I was looking for. ScreenId=CS202000 is the correct one and should look like this Screenshot_98.png
lema_0-1715690405973.png
Replacing blank spaces with zero?? I am not sure about that, how will Visma differentiate, for example, between cost center 2 and 20?
I tried anyway but the call to Update doesn't work either.
Hi Iema,
We need to investigate this in our backend services and to do so we might need some sensitive information. Can you please contact [email protected] (SWE API support) and ref. to this post?
Thanks!
- Suzdar
Hi Iema,
May I ask why your subaccount has a lot of whitespace? this does not look like a valid subaccoutNumber.
- Suzdar
Copyright © 2022 Visma.com. All rights reserved.