Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...