201Successful Response
Schema: SuccessEnvelope_MigrateFromGrandfatheredResponse_
successbooleanmessagestringcodestringdataMigrateFromGrandfatheredResponse
/api/v1/billing/migrate-from-grandfatheredCreate a Stripe Checkout session to move from a grandfathered plan to a paid plan.
Request Body:
target_plan: Plan tier to migrate to (self_directed or managed)success_url: Redirect URL after successful paymentcancel_url: Redirect URL if checkout is canceledPrerequisites:
grandfathered plan tierEffect:
plan_tier is updated to the target planReturns: Checkout URL and session ID.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: GrandfatheredMigrateRequest
target_planstringrequiredTarget plan tier: 'self_directed' or 'managed'.
success_urlstringrequiredURL to redirect after successful payment.
cancel_urlstringrequiredURL to redirect if checkout is canceled.
billing_intervalstringBilling cadence: 'month' or discounted annual 'year'.
One of: month, year
Schema: SuccessEnvelope_MigrateFromGrandfatheredResponse_
successbooleanmessagestringcodestringdataMigrateFromGrandfatheredResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject