Initiate a subscription upgrade or creation for your organization. This generates a checkout session for a recurring billing plan.
Request
The unique identifier of the organization.
The name of the target plan. Valid options include pro and enterprise. Note that upgrading to enterprise requires contacting the sales team.
Response
The URL to redirect the user to complete their subscription via Dodo Payments.
The unique identifier of the checkout session.
The monthly price of the requested plan.
{
"checkout_url": "https://checkout.dodopayments.com/pay/cs_def456",
"session_id": "cs_def456",
"plan": "pro",
"price": 79.0
}