---
title: "Re-read the flow's pending first payment from Stripe"
method: POST
path: "/onboarding/v3/checkout-session/refresh"
tags: ["Onboarding"]
---

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

`POST /onboarding/v3/checkout-session/refresh`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/onboarding/v3/checkout-session/refresh`
- Auth: HTTP bearer

#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.

## Headers

- `X-Median-App-Surface` 'qa'

## Request body

- OnboardingV3EmptyBody

## Response `200`

Completed flow, or the pending payment state

- OnboardingV3PaymentRefreshApiResponse
  - `success` true, required
  - `data` union, required
    - object
      - `flow` OnboardingV3Flow, required
        - `id` string, uuid, required
        - `companyId` string, uuid, nullable, required
        - `stage` 'auth' | 'price' | 'sales' | 'subscribe' | 'setup' | 'books', required
        - `revenueBand` string, nullable, required
        - `expensesBand` string, nullable, required
        - `accountCount` integer, nullable, required
        - `priceTier` '200' | '500' | 'custom' | 'sales' | 'null', nullable, required
        - `priceMonthlyCents` integer, nullable, required
        - `pricePlanId` 'essential' | 'growth' | 'custom' | 'null', nullable, required
        - `trialDays` integer, required
        - `billingInterval` 'year': Present only when the customer chose annual billing on a custom offer (absent = monthly).
        - `billingTestAccount` true: Present only for an internal test account, which skips Stripe for a non-Stripe comped plan (POST /onboarding/v3/test-account-activation).
        - `taxReturnAddonCents` integer: Present only for a yearly flow carrying an annual offer's Tax Return add-on: the yearly Tax Return line billed with the plan.
        - `billingSource` 'existing_subscription': Present only when the flow's offer is a prepared engagement already billed through an existing Stripe subscription: the app skips the plan screen and Checkout and calls POST /onboarding/v3/existing-subscription-activation.
        - `welcomeCall` object, nullable, required
        - `accountName` string, required
        - `accountEmail` string, email, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
    - object
      - `paymentPending` OnboardingV3PaymentPending, required
        - `state` 'paid' | 'trialing' | 'processing' | 'bank_verification_pending' | 'payment_needed' | 'failed' | 'expired', required: failed = Stripe voided the first invoice with nothing collected while the subscription stayed active; never paid.
        - `payByCardUrl` string, uri, nullable, required: Stripe-hosted invoice page (https on a stripe.com host); only for payment_needed and bank_verification_pending.
        - `verifyBankUrl` string, uri, nullable, required: Stripe-hosted micro-deposit verification page, when Stripe gives one.
        - `arrivalDate` string, date-time, nullable, required

## Other responses

- `400`: Onboarding request body is not valid JSON
- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `413`: Onboarding pricing request exceeds the 4096-byte route limit
- `415`: Onboarding request charset or content encoding is unsupported
- `422`: Validation error
- `503`: Required sandbox provider configuration or service is unavailable

## Changes

- **2026-11-20** `f8238a65b299`: 1 info
  - added the optional property `data/oneOf[subschema #1]/flow/billingSource` to the response with the `200` status
- **2026-11-18** `d077c9d0a177`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/onboarding/v3/checkout-session/refresh/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
