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_idstringrequired

Stripe Price ID for the plan.

success_urlstringrequired

URL to redirect after successful payment.

cancel_urlstringrequired

URL to redirect if checkout is canceled.

Responses

201Successful Response

successboolean
messagestring
codestring
dataCreateCheckoutSessionResponse

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject