Plan the calls that produce a scenario's parameters
pc_plan_prerequisitesPlan the prerequisites for any Partner Center API call: given a scenario ID, it returns the ordered prerequisite calls and parameters needed to supply IDs ahead of time, without executing anything.
Instructions
Given any scenario, return the ordered calls that produce the ids its path needs, plus the parameters you have to supply yourself. Answers "I want to call this, what do I need first" for every operation in the pack, not just the ones with a hand-written workflow. For a business sequence and its preconditions prefer the curated planners: pc_plan_purchase, pc_plan_subscription_change, pc_plan_order_lifecycle, pc_plan_transfer, pc_plan_csp_onboarding, pc_plan_gdap_onboarding, pc_plan_user_onboarding, pc_plan_user_offboarding, pc_plan_reconciliation. This one only resolves parameters, which is why it works everywhere. Planning only: nothing is executed, no credentials are used, no network call is made.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Scenario id you want to end up calling, e.g. "cancel-subscription" or "get-batch-devices". Discover ids with pc_list_scenarios. An unknown id comes back as ok:false with suggestions. | |
| customerId | No | Optional customer tenant id (GUID). When supplied it is substituted for {customer-id} in every step, and the call that would have produced it is dropped from the plan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the call succeeded and `data` is populated; false when `error` explains why not. | |
| data | No | The result payload. Present only when `ok` is true. | |
| error | No | Human-readable reason the call failed. Present only when `ok` is false. |