Onboarding

Re-read the flow's pending first payment from Stripe

Changed on

#4279. Re-reads the flow's recorded subscription under the billing lease and never creates a Checkout session. A subscription that is now active or trialing completes the flow through the same steps as webhook reconciliation and returns the flow; a paid flow returns the flow unchanged. Otherwise returns the payment state, with the Stripe-hosted invoice page (payByCardUrl, only when the founder can pay there) and the micro-deposit verification page and arrival date when Stripe gives them. A flow with no recorded subscription answers 422 ONBOARDING_NO_PENDING_PAYMENT.

post/onboarding/v3/checkout-session/refresh

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Headers

X-Median-App-Surface, 'qa'

Bundle marker selecting the temporary /qa onboarding surface. Optional on this promoted deployment (ONBOARDING_V3_QA_ONLY=false): unmarked requests are served, and a qa value is accepted and ignored. Still required on any deployment running ONBOARDING_V3_QA_ONLY=true, where an unmarked request receives the hidden-resource 404. On neither setting is it a tenant authorization credential.

Request body

OnboardingV3EmptyBody required

Response

Completed flow, or the pending payment state

OnboardingV3PaymentRefreshApiResponse required
success, true required
data, union required

Changes