Skip to main content

Create workspace subscription

Enterprise Only

This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.

Method: POST

URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/workspaces/{workspaceUuid}/subscription

Authorization: Bearer <token>

Body:

{
"platform_subscription_id": "sub_1234567890",
"platform_plan_id": "price_1234567890",
"status": "active",
"trial_ends_at": null
}
KeyFormatRequiredDescription
platform_subscription_idstringrequiredUnique subscription ID from payment platform
platform_plan_idstringrequiredPlan ID from payment platform
statusstringrequiredSubscription status: active, trialing, past_due, paused, canceled, incomplete
trial_ends_atstringrequired if status is trialingTrial end date (ISO 8601 format)

Response:

{
"success": true
}