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 invoices

AI-generated

Summary

Retrieve a list of invoices from the NinjaOne billing API, with options to filter by client, agreement, creation date, and billing period, and control pagination and request details.

Inputs

  • Return All — Set to true to retrieve all invoices across all pages; false to retrieve a single page of results only.
  • Additional Fields — Optionally filter invoices by Client Id, Agreement Id, Created Date From and To (inclusive), and Period From and To (both must be provided together). Dates use yyyy-MM-dd format.
  • Options — Configure custom JSON body (merged with other fields), HTTP headers, query filters, batching parameters (items per batch and interval), debug mode (to include request details in output), pagination settings (pagination mode, page parameter names, cursor/URL paths, maximum pages, request intervals), and request timeout in milliseconds.

Output shape

a list (array) of invoice objects returned from the NinjaOne API

The response shape depends on the NinjaOne API and any filters/pagination applied. Pagination can be controlled by parameters; if return all is true, multiple API calls will be made to fetch all pages. Debug info is optionally included in the output when enabled.

Examples

Example 1: Fetch all invoices for a specific client within a date range

Set 'Return All' to true, specify 'Client Id', 'Created Date From', and 'Created Date To' in Additional Fields.

Links

Discussion