Zoho Billing icon

Zoho Billing

Consume Zoho Billing API v1 (Subscriptions, Plans, Addons, Coupons, Invoices)

Plan → Mark As Inactive

AI-generated

Summary

Marks a Zoho Billing plan as inactive by its plan code, sending a POST to /billing/v1/plans/{planCode}/markasinactive within the chosen organization.

Inputs

  • Organization (required) — Zoho organization, chosen from a list loaded from the API (/organizations). Sent as the X-com-zoho-subscriptions-organizationid header.
  • Plan Code (required) — The plan_code of the plan to deactivate. It is inserted into the request URL as-is.

Output shape

One output item per input item, containing the JSON response from Zoho Billing. The response is typically a confirmation message and/or the updated plan object. If Zoho returns an empty body, the item is an empty object.

Runs once for each input item. Items are paired with their input item. API errors are raised as node errors, unless Continue On Fail is enabled, in which case the item contains {error: message}. The request body and query string are empty.

Examples

Example 1: Retire a plan when it is discontinued.

Resource: Plan; Operation: Mark As Inactive; Organization: select your org; Plan Code: 'basic-monthly'.

Example 2: Deactivate plans listed by an upstream node.

Plan Code set to the expression {{ $json.plan_code }} so each incoming item deactivates its own plan.

Links

Discussion