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

Add WebshopArticle to ArticleSearch #267

Open
eriksallberg opened this issue Dec 7, 2022 · 1 comment
Open

Add WebshopArticle to ArticleSearch #267

eriksallberg opened this issue Dec 7, 2022 · 1 comment

Comments

@eriksallberg
Copy link

If it would be possible to add WebshopArticle to ArticleSearch that would reduce the number of calls necessary to get all webshop articles as the number of pages would be lower.

For example, I have a customer with about 1500 articles in their Fortnox account but only 300 of these are webshop articles.

To get all webshop articles now I have to make 15 calls (15 pages with 100 articles in each) instead of 3 if WebshopArticle was available as a filter option.

@richardrandak
Copy link
Collaborator

richardrandak commented Dec 7, 2022

Hello @eriksallberg

  1. Do you know whether such query parameter is actually supported in Fortnox API? I tried https://api.fortnox.se/3/articles?webshoparticle=true but it responded with Ogiltig parameter i anropet.
  2. You can increase the page size (Limit) to 500 (maximum), so only three requests will be necessary to get all 1500 articles.

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