---
title: "Create or resume the flow-bound Stripe test SetupIntent"
method: POST
path: "/onboarding/v3/setup-intent"
tags: ["Onboarding"]
---

# Create or resume the flow-bound Stripe test SetupIntent

`POST /onboarding/v3/setup-intent`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/onboarding/v3/setup-intent`
- Auth: HTTP bearer

## Headers

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

## Request body

- OnboardingV3EmptyBody

## Response `200`

Test publishable key and Payment Element client secret

- OnboardingV3SetupIntentApiResponse
  - `success` true, required
  - `data` OnboardingV3SetupIntent, required
    - `clientSecret` string, required
    - `publishableKey` string, 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

---

[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/20090ea32b0d?raw)
