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 → Deactivate agreement

AI-generated

Summary

Deactivate a billing agreement in NinjaOne by sending a PATCH request to the /v2/billing/agreements/{id}/deactivate endpoint, specifying the agreement ID to deactivate.

Inputs

  • id (required) — Numeric ID of the billing agreement to deactivate.
  • options — Optional settings including custom JSON body to merge into the request, custom HTTP headers, query-string filters, batching controls, debug flag, pagination configurations, and timeout duration.

Output shape

a single JSON object representing the API response confirming deactivation status or including debug information if enabled

Response structure depends on NinjaOne API's PATCH /v2/billing/agreements/{id}/deactivate endpoint. If debug is enabled via options, the output includes detailed request information. Pagination options do not apply to this operation as it acts on a single resource by ID.

Links

Discussion