manage_x_posting_addon
Buy an X posting add-on. action=buy: plan_code is x_posts_100 ($8/month, 100 extra posts), x_posts_250 ($18/month, 250), or x_posts_500 ($35/month, 500). Call without confirm to see the price. Show that price to the user. Nothing is charged on the preview. Then call again with confirm=true, the preview_id, and expected_addon_status, expected_plan_code, and expected_price_usd from the preview. Confirming returns a Stripe Checkout link. The card is charged only after the user pays on that page. If an add-on is already active, confirming opens the billing page for the workspace owner and does not buy a second plan. Read the allowance with get_x_posting_quota. Owner or admin. billing:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | buy: quote an X posting add-on, then open Checkout after the user agrees. | |
| confirm | No | True only after the user agrees, with the preview_id. | |
| plan_code | No | Which add-on to buy. Not used when one is already active. | |
| preview_id | No | The preview_id from the preview call. | |
| workspace_id | No | Workspace ID from whoami, when the key is not already scoped. | |
| expected_plan_code | No | From the preview. The current plan code, or null when there is none. | |
| expected_price_usd | No | From the preview. The monthly price in dollars, or null. | |
| expected_addon_status | No | From the preview. The add-on status the quote was based on. |