softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
53 stars 65 forks source link

Add WebshopArticle to ArticleSearch #267

Open eriksallberg opened 1 year ago

eriksallberg commented 1 year ago

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 commented 1 year ago

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.