Create subscription
pmitz_create_subscriptionCreates a subscription and assigns a plan per product. Fails with a conflict if the subscription ID already exists. Acts on one Pmitz sandbox.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sandbox": "<sandbox>",
"subscriptionId": "<subscriptionId>",
"status": "<status>",
"plans": "<plans>"
},
"name": "pmitz_create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plans | Yes | Plan ID per product ID, for example {"reports": "free"}. | |
| status | Yes | Initial status, usually ACTIVE. | |
| sandbox | Yes | The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…. | |
| expirationDate | No | Optional ISO date-time with an offset, for example 2027-01-31T00:00:00Z. | |
| subscriptionId | Yes | New subscription ID. |