Open weekly subscription checkout

Returns a hosted Stripe URL. First-time subscribers pay $2.99 for the first week, then $9.99/week. Prior subscribers pay $9.99/week. All weeks are paid upfront; there is no free trial. The server checks eligibility and applies the introductory coupon automatically. Send introOffer=weekly_first_week_299_v1 when the customer selected the introductory price; an ineligible quote returns 409 instead of charging more. Existing legacy subscriptions open Stripe confirmation to switch the same agreement to weekly; no second subscription is created. Credits arrive only after a signed paid invoice and expire at the next renewal.

post/api/billing/checkout

Request

  • Base URL: https://api.peelaway.io
  • URL: https://api.peelaway.io/api/billing/checkout
  • Auth: one of:
    • API key in cookie better-auth.session_token
    • HTTP bearer

Request body

plan'weekly' required
billingInterval'week'
introOffer'weekly_first_week_299_v1'

Require the advertised introductory price; otherwise return 409

returnTostring

Same-site path to return to after checkout

Response

Hosted checkout URL

Changes

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