Migrate grandfathered account to a paid plan
POST
/api/v1/billing/migrate-from-grandfathered
Create a Stripe Checkout session to move from a grandfathered plan to a paid plan.
Request Body:
target_plan: Plan tier to migrate to (self_directedormanaged)success_url: Redirect URL after successful paymentcancel_url: Redirect URL if checkout is canceled
Prerequisites:
- Business must currently be on the
grandfatheredplan tier
Effect:
- Creates a Stripe Checkout session
- On payment completion,
plan_tieris updated to the target plan
Authentication
Bearer token authentication. Pass your DayZero API token in the
Authorization header and the
target business UUID in
x-business-id.
Request body
Schema: GrandfatheredMigrateRequest
-
target_planstring required -
Target plan tier: 'self_directed' or 'managed'.
-
success_urlstring required -
URL to redirect after successful payment.
-
cancel_urlstring required -
URL to redirect if checkout is canceled.
Responses
400 Bad Request - Invalid input
403 Forbidden - Insufficient permissions
422 Validation Error
Schema: HTTPValidationError
-
detailarray · ValidationError ValidationError -
5 fields
-
locarray · string | integer required -
msgstring required -
typestring required -
inputobject -
ctxobject
-