Buy plan period
buy_plan_periodBuy one 30-day prepaid period of a memory plan with credit; the plan applies immediately. No renewal. Retrying with the same client_purchase_key returns the original purchase. Requires scope 'orders:write'.
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": {
"offer": "<offer>",
"authorization_id": "<authorization_id>",
"client_purchase_key": "<client_purchase_key>",
"max_price_cents": "<max_price_cents>"
},
"name": "buy_plan_period"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | ||
| idempotency_key | No | Optional. Same key + same arguments within 24 h returns the original result. | |
| max_price_cents | Yes | Refuse rather than charge above this price. | |
| authorization_id | Yes | ||
| client_purchase_key | Yes | Durable key; a retry returns the same purchase. |