Jump to content

Pagination in GET /businesses endpoint?


 Share

Recommended Posts

Hello

For Sage Business Cloud API, based on the example of GET /business endpoint on https://developer.sage.com/api/accounting/guides/multi_business/, it shows that the items_per_page is 2147483647

Is that the default number of businesses that would be returned without any pagination parameters in the request? If not - are there pagination parameters available for the GET /businesses endpoint?

 

Thanks

Edited by Product Demo
Link to comment
Share on other sites

Hi, thanks for the question.

The businesses endpoint always returns all businesses available to the authorised user. As such, the need for pagination is not required.
The engineering team responsible for the implementation of the endpoint wanted to maintain the same pagination formats as the other endpoints meaning they had to choose a number which would never be reached as the default. 

This is the only exception to the default items_per_page values of 20.

Thanks

Mark

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...