mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

discrepancy in orders listing #334

Closed madhums closed 8 months ago

madhums commented 8 months ago

In the dashboard, I can see there are 55 orders in total. However, when I retrieve it through your api, I get only 39.

I've tried setting the limit to 10, then I get 10. But when I set it to 60, I still get 39. I've tried with both curl and mollieClient.orders.page(), same result.

What is going on?! Why don't I get all orders?

madhums commented 8 months ago

I might know why this is. Some of the orders were made from another website profile.

madhums commented 8 months ago

Ok, so I tried using an organisation access token with orders:read permission and still I get 39 items. I'd expect all 55 orders to be returned.

fjbender commented 8 months ago

I would expect the same. Can you inspect the raw HTTP request made to our API to make sure the Org Access Token is used and no profileId is submitted?

madhums commented 8 months ago

I tried again and I had the incorrect access token 🙄 but now with the correct accessToken, I get all the 55 results.