Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PriceList requires uppercase for Code? #163

Closed
bmjohanp opened this issue Sep 2, 2021 · 2 comments
Closed

PriceList requires uppercase for Code? #163

bmjohanp opened this issue Sep 2, 2021 · 2 comments

Comments

@bmjohanp
Copy link

bmjohanp commented Sep 2, 2021

This is perhaps more of a Fortnox api issue, but I'm posting it here to get input.

We are seeing strange things regarding price lists when creating them with the .Net SDK. Our findings:

If we create a price list containing lowercase letters in Code property ("Lst1" etc), we can't find it when querying the api. Both creation and querying is done with the .NetSDK. The price list is listed in the portal, so it IS created. Also, the price list can't be deleted in the portal, it returns when logging in again. Can anyone else reproduce this?

Using Code "LST1" when creating the price list works, and it can then be queried, so I guess the code has to be in uppercase? It is not documented anywhere and since it is possible to create with lowercase both in the portal and sdk it is a bit strange.

@richardrandak
Copy link
Collaborator

Hi @JohanPE !
I am glad you are active here and reporting these issues :)
I have reproduced the same by using Postman, so this is not problem in the SDK but some weird behavior on server side. Plus, the impossibility of deleting the lower-case code PriceList entity even through the portal makes it especially annoying.

Please, if this is worth your time, contact the Fortnox support, maybe they can help to explain this. Also, share the findings if you get some :)

@bmjohanp
Copy link
Author

bmjohanp commented Sep 7, 2021

@richardrandak Thank you for taking the time to reproduce this!

I have contacted the Fortnox support about this (and other issues) and tried to explain it, but these kind of api issues are hard to get proper answers for. We go back and forth a few times with the support, but they have limited knowledge of the api. So it gets time consuming and a bit frustrating.

Right now we just handle this issue by making sure we only assign alphanumeric uppercase characters to the Code property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants