NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Billing → Get all accounts

AI-generated

Summary

Retrieve a list of billing accounts from NinjaOne, optionally fetching all pages of results.

Inputs

  • Return All — Boolean to determine whether to return all billing accounts across all pages (true) or just a single page of results (false).
  • Options — Optional additional parameters including custom JSON body overrides, custom HTTP headers, query-string filters, batching settings, debug flag, pagination configuration (mode, parameters, limits, delays), and request timeout.

Output shape

A list of billing account objects as returned by the NinjaOne API endpoint '/v2/billing/accounts'.

If pagination is enabled and Return All is true, multiple requests may be made to retrieve all pages, aggregated into a single output. Debug output is optionally included if enabled. Pagination and batching options control request behavior but do not alter the returned data structure.

Examples

Example 1: Fetch all billing accounts without pagination

Set 'Return All' to false, no additional options set, returns first page of billing accounts.

Example 2: Fetch all billing accounts across all pages

Set 'Return All' to true, configure pagination options as desired to control page size and limit, optionally add filters or custom headers.

Links

Discussion