internal

Create Subscription Checkout

Create a Stripe checkout session for user subscription.

Returns a checkout URL where the user can complete payment.

post/billing/subscription/checkout

Request

  • Base URL: https://api.companydata.dk (the document declares no server; this is the origin it was published from)
  • URL: https://api.companydata.dk/billing/subscription/checkout
  • Auth: HTTP bearer

Request body

ga_client_idstring nullable

GA4 client id from the _ga cookie (analytics attribution)

ga_session_idstring nullable

GA4 session id from the ga<container> cookie (session attribution)

tierstring required

Subscription tier ('pro' or 'team')

billing_intervalstring

'monthly' or 'yearly'

seatsinteger

Total seats (team tier only; 3 included)

promo_codestring nullable

Promotion code to pre-apply to the checkout (e.g. from a campaign link). Unknown or inactive codes are ignored and the checkout falls back to the manual code entry field.

success_urlstring nullable
cancel_urlstring nullable

Response

Successful Response

checkout_urlstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.