Admin

Create Enterprise Checkout Link

Create a Stripe Checkout link for enterprise/custom billing.

This generates a shareable checkout URL where:

  • The customer email is pre-filled and locked
  • X days of free trial are shown
  • $Y/month is shown as the recurring price after trial
  • The customer enters their card and subscribes

When the customer completes checkout:

  • The existing handle_checkout_completed webhook fires
  • The plan is activated automatically in the DB
  • If a Stripe trial was set, they won't be charged until trial ends

Optionally, grant_trial_access=true (default) also gives DB-level plan access immediately so the user can start using the service before completing payment.

Flow for the admin:

  1. Create checkout link via this endpoint
  2. Send the URL to the customer (email, Slack, etc.)
  3. Customer clicks link, sees trial + price, enters card
  4. Plan activates automatically
post/admin/create-checkout-link

Request

  • Base URL
    https://api.oxlo.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.oxlo.ai/admin/create-checkout-link
  • Auth
    HTTP bearer

Request body

emailstring email required
plan_idstring required
amount_centsinteger required
trial_daysinteger
plan_display_namestring nullable
grant_trial_accessboolean

Response

Successful Response

checkout_urlstring required
emailstring required
plan_idstring required
amount_displaystring required
trial_daysinteger required
messagestring required
trial_grantedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.