Onboarding

Resolve an active custom offer from its opaque capability

Changed on

The bearer capability is carried in the JSON body so it cannot enter request paths, proxy access logs, metric labels, or fetch breadcrumbs. Malformed, unknown, expired, void, redeemed, and invalid-value tokens all return the same standard 404 contract.

post/onboarding/v3/offer/resolve

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

OnboardingV3OfferResolveRequest required

Opaque offer capability submitted in the body. Any unusable string receives the same 404 response as an unknown capability. Omit token to resolve the active offer issued to the signed-in account's email, only when the user proved control of that mailbox (one-time code or Google sign-in); no proof or no such offer receives the same 404.

token, string
billingInterval, 'month' | 'year'

Interval the customer chose; omitted = the offer's default. month is accepted for an annual offer only when allowMonthly is true (422 otherwise).

Response

Active custom-offer price and trial

OnboardingV3OfferApiResponse required
success, true required
data, OnboardingV3Offer required

Changes