201Successful Response
Schema: SuccessEnvelope_CreateCheckoutSessionResponse_
successbooleanmessagestringcodestringdataCreateCheckoutSessionResponse
/api/v1/billing/checkoutCreate a Stripe Checkout session so the user can subscribe.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CheckoutRequest
price_idstringrequiredStripe Price ID for the plan.
success_urlstringrequiredURL to redirect after successful payment.
cancel_urlstringrequiredURL to redirect if checkout is canceled.
Schema: SuccessEnvelope_CreateCheckoutSessionResponse_
successbooleanmessagestringcodestringdataCreateCheckoutSessionResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject