Skip to main content

New subscription checkout

Enterprise Only

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

Payment Platform Required

This endpoint is only available if a payment platform (Stripe, Paddle, etc.) has been configured in Mixpost. The response will generate a checkout link for creating a subscription through the configured payment platform.

Method: POST

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

Authorization: Bearer <token>

Body:

{
"plan_id": 1,
"cycle": "monthly",
"coupon": null
}
KeyFormatRequiredDescription
plan_idintegerrequiredThe ID of the subscription plan defined in Mixpsot Dashboard
cyclestringrequiredBilling cycle: monthly or yearly
couponstringoptionalCoupon code for discount

Response:

The response format depends on the configured payment platform. Typically includes a checkout URL.

{
"url": "https://checkout.stripe.com/pay/cs_test_..."
}