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 → Updates an invoice

AI-generated

Summary

Update an existing invoice by its ID with specified fields such as invoice date, products, billing period, due date, invoice number, and notes, sending a PUT request to the NinjaOne API.

Inputs

  • id (required) — The ID of the invoice to update.
  • additionalFields — Optional fields to update on the invoice, including invoice date, lists of products (catalog, agreement, ticket), billing period start and end dates, invoice note, due date, and invoice number.
  • options — Optional settings including custom JSON body overrides, custom HTTP headers, query filters, batching parameters, debug output, pagination (less relevant for update), and request timeout.

Output shape

a single JSON object reflecting the updated invoice details or API response

The output includes the updated invoice data returned by the NinjaOne API. When debug is enabled, details of the HTTP request and response are included under a debug property.

Examples

Example 1: Update invoice #12345 with a new invoice date and changed products

Set 'Id' to 12345 and in 'Additional Fields' specify 'Invoice Date' as the new date and provide updated 'Products' JSON array.

Example 2: Send a fully custom update request body overriding standard fields

Set 'Id' and provide a JSON object in 'Custom Body' option to fully control the update payload.

Links

Discussion