HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions
These docs are for v20.3.44. Click to read the latest docs for v20.3.192.

Discussions

Ask a Question
Back to All

Offset and Count acting strange

When using /api/Organization?limit=100
I get strange results:

    "Offset": 0,
    "Limit": 100,
    "Count": 50,
    "TotalCount": 16206,
    "NextPageLink": null,
    "HasNext": true,
    "NextOffset": 50

So I want to get the next 50 results:
/api/Organization?offset=50&limit=100

    "Offset": 0,
    "Limit": 100,
    "Count": 50,
    "TotalCount": 16206,
    "NextPageLink": null,
    "HasNext": true,
    "NextOffset": 50

Is there a bug here in /api/Organization endpoint?

/api/Party works as expected, but I want to view Organisations and I'm not sure how to filter them with the /api/Party endpoint.