Create Checkout Session

POST /api/v1/billing/checkout

Create a Stripe Checkout session so the user can subscribe.

Operation ID: create_checkout_session_api_v1_billing_checkout_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

price_id string required

Stripe Price ID for the plan.

success_url string required

URL to redirect after successful payment.

cancel_url string required

URL to redirect if checkout is canceled.

Responses

201 Successful Response

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object