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 → Export invoices

AI-generated

Summary

Export invoices by sending their IDs to the NinjaOne API and receive the export data in response.

Inputs

  • Invoice Ids (required) — A JSON array of invoice IDs to export.
  • Options — Optional settings including custom request body (merged with invoice IDs), custom HTTP headers, query string filters, batching parameters (items per batch and interval between batches), debug mode to include request details in output, pagination settings for handling large responses, and request timeout in milliseconds.

Output shape

A JSON object including the API response data for the exported invoices, potentially with debug information if enabled.

Requests are made in batches if batching options are used. Pagination settings do not typically affect this export operation but are present for consistency. Custom body fields override standard fields when both are provided. Errors from the API are returned as operation failure or error output.

Examples

Example 1: Exporting three specific invoices with IDs provided and enabling debug information to troubleshoot the request.

Pass an array of invoice IDs, set debug to true, and optionally add custom headers or modify the request body via options.

Links

Discussion