billing

Create hosted subscription checkout session

Returns { url } to open Stripe Hosted Checkout for a recurring subscription. Sessions set allow_promotion_codes: true so customers can apply promotion codes on Stripe’s page. Recurring prices are resolved in Stripe by stable lookup_key values (see catalog setup scripts). Owner or admin only.

post/api/v1/billing/checkout

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/billing/checkout
  • Auth: HTTP bearer

Request body

plan'launch' | 'pro' | 'agency' required
cycle'monthly' | 'yearly' required

Response

Stripe Checkout session URL

urlstring uri required

Changes

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