ClockNext: create plan
clocknext_create_planCreate a billing plan with entitlement components (WALLET, FLAT, CREDIT, OUTCOME, UNIT) and billing modes (ADVANCE or ARREAR). Use when the dashboard plan builder is not preferred.
Instructions
Create a billing plan. A plan bundles one or more entitlement components: WALLET (prepaid USD balance, debited at raw model cost — NO margin), FLAT (one-off fee), or CREDIT/OUTCOME/UNIT entitlements that reference an existing credit/outcome/unit BY ID — so create those first (clocknext_create_credit / _outcome / _unit) and list them to get ids. Each component has a billingMode: ADVANCE (up-front, needs amount/quantity) or ARREAR (metered). FREE plans must be ADVANCE-only with no FLAT component. PREFER the dashboard plan builder (https://payments.clocknext.com/plans) — it previews what a customer pays; use this tool as the fallback. This creates a real, sellable plan — get the pricing right before you create it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Plan name. | |
| isActive | No | Whether the plan is active/sellable. | |
| components | Yes | At least one entitlement line. CREDIT/OUTCOME/UNIT components reference an existing resource by id — create those first. | |
| description | No | Optional description. | |
| billingCycle | Yes | Billing cadence. FREE plans must be ADVANCE-only with no FLAT component. | |
| carryForward | No | Carry an unused balance into the next cycle. Default true. | |
| currencyCode | No | ISO 4217 (3 letters). Default USD. |