Onboarding

Finish signup on the Stripe subscription a prepared engagement's client already pays

Changed on

Stripe-backed activation requires one fixed, undiscounted USD recurring price billed once per month or year. Unsupported terms answer 422 ONBOARDING_EXISTING_SUBSCRIPTION_UNSUPPORTED_TERMS. Only USD invoice payments count toward the paid-invoice gate. For an offer whose prepared profile records billing.source existing_subscription. Binds the offer (token, optional; without it the flow's own offer is used), reads that subscription through the billing provider (never writes to Stripe) and requires it to exist and be active or trialing, then provisions the company named from the profile's legal name with the subscription's Stripe customer, records the subscription on median_subscriptions and on the flow (billing mode existing_subscription), binds the prepared profile, redeems the offer, activates the owner, promotes the company to active on the same paid-invoice gate as a live Checkout, and moves the flow to setup. Idempotent once activated. With no billing provider configured, a non-production API accepts the recorded ID and answers subscription.verified false; production answers 503. Errors: 404 for an unknown, voided, expired or inactive offer (checked before anything is written); 403 ONBOARDING_OFFER_EMAIL_MISMATCH when the offer was issued to another address; 403 ONBOARDING_MAILBOX_PROOF_REQUIRED when the user has not proved this mailbox (emailed code or Google); 409 ONBOARDING_COMPANY_BILLING_AUTHORITY_MISMATCH when the signup's company holds another Stripe customer; 422 ONBOARDING_OFFER_NOT_EXISTING_SUBSCRIPTION for an offer billed at Checkout; 422 ONBOARDING_EXISTING_SUBSCRIPTION_NOT_FOUND when Stripe has no such subscription; 409 ONBOARDING_EXISTING_SUBSCRIPTION_NOT_ACTIVE when it is not active or trialing; 409 ONBOARDING_EXISTING_SUBSCRIPTION_CUSTOMER_MISMATCH when it bills another customer than the one Stripe showed when the accountant saved the profile, or ONBOARDING_EXISTING_SUBSCRIPTION_UNCONFIRMED when that save was not checked with Stripe; 409 ONBOARDING_SUBSCRIPTION_EXISTS when the signup already has another subscription; 409 ONBOARDING_EXISTING_SUBSCRIPTION_IN_USE or ONBOARDING_STRIPE_CUSTOMER_IN_USE when that subscription or customer already belongs to another company. 409 ONBOARDING_CHECKOUT_STARTED when the signup already began a standard-price payment setup (refused, never expired). Setup-intent, Checkout and subscribe answer 409 ONBOARDING_EXISTING_SUBSCRIPTION_OFFER for such an offer; nothing on this path writes to Stripe.

post/onboarding/v3/existing-subscription-activation

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

OnboardingV3ExistingSubscriptionActivation required

The offer link token, optional: without it the flow's own offer is used. Carried in the body, never the path.

token, string

Response

The flow at setup and whether Stripe verified the subscription

OnboardingV3ExistingSubscriptionActivationApiResponse required
success, true required
data, object required

Changes